Finish Hotfix-100
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -458,13 +458,18 @@ public class ActivityService {
|
|||||||
|
|
||||||
public ActivityTaskDTO insSubactivity(StbActivity stbActivity) throws Exception {
|
public ActivityTaskDTO insSubactivity(StbActivity stbActivity) throws Exception {
|
||||||
try {
|
try {
|
||||||
|
String whereCond = "";
|
||||||
|
if (!UtilityString.isNullOrEmpty(stbActivity.getActivityDescription())){
|
||||||
|
whereCond = " AND stb_activity.activity_description = " + UtilityDB.valueToString(stbActivity.getActivityDescription());
|
||||||
|
}
|
||||||
String sql =
|
String sql =
|
||||||
Query.format(
|
Query.format(
|
||||||
"SELECT activity_id " +
|
"SELECT activity_id " +
|
||||||
" FROM stb_activity " +
|
" FROM stb_activity " +
|
||||||
" WHERE stb_activity.parent_activity_id = %s AND " +
|
" WHERE stb_activity.parent_activity_id = %s AND " +
|
||||||
"stb_activity.user_name = %s AND " +
|
"stb_activity.user_name = %s AND " +
|
||||||
"( stb_activity.estimated_time = %s OR (stb_activity.effective_date is null AND stb_activity.activity_result_id = 'DA FARE'))",
|
"( stb_activity.estimated_time = %s OR (stb_activity.effective_date is null AND stb_activity.activity_result_id = 'DA FARE'))\n"+
|
||||||
|
whereCond,
|
||||||
stbActivity.getParentActivityId(),
|
stbActivity.getParentActivityId(),
|
||||||
stbActivity.getUserName(),
|
stbActivity.getUserName(),
|
||||||
stbActivity.getEstimatedTime());
|
stbActivity.getEstimatedTime());
|
||||||
|
|||||||
Reference in New Issue
Block a user