|
|
@ -1296,32 +1296,32 @@ public class WorksService { |
|
|
int estid, |
|
|
int estid, |
|
|
int ref_id) { |
|
|
int ref_id) { |
|
|
|
|
|
|
|
|
String sql = " SELECT " |
|
|
|
|
|
+ " td.tdid, " |
|
|
|
|
|
+ " td.estid, " |
|
|
|
|
|
+ " td.ref_id, " |
|
|
|
|
|
+ " td.percentage, " |
|
|
|
|
|
+ " td.stage_file, " |
|
|
|
|
|
+ " CONCAT('" + fileBaseUrl + "/gccofficialapp/files', td.stage_file) AS view_stage_file, " |
|
|
|
|
|
+ " DATE_FORMAT(td.cdate, '%d-%m-%Y %H:%i:%s') as cdate," |
|
|
|
|
|
+ " td.cdate, " |
|
|
|
|
|
+ " td.remarks, " |
|
|
|
|
|
+ " td.tmid, " |
|
|
|
|
|
+ " tm.taskname, " |
|
|
|
|
|
+ " tm.orderby " |
|
|
|
|
|
+ " FROM erp_task_data td " |
|
|
|
|
|
+ " INNER JOIN typeofwork_task_master tm " |
|
|
|
|
|
+ " ON tm.tmid = td.tmid " |
|
|
|
|
|
+ " AND tm.isactive = 1 " |
|
|
|
|
|
+ " AND tm.isdelete = 0 " |
|
|
|
|
|
+ " " |
|
|
|
|
|
+ " WHERE td.estid = ? " |
|
|
|
|
|
+ " AND td.ref_id = ? " |
|
|
|
|
|
+ " AND td.isactive = 1 " |
|
|
|
|
|
+ " ORDER BY " |
|
|
|
|
|
+ " tm.orderby DESC, " |
|
|
|
|
|
+ " td.cdate DESC, " |
|
|
|
|
|
+ " td.tdid DESC "; |
|
|
|
|
|
|
|
|
String sql = " SELECT " |
|
|
|
|
|
+ " td.tdid, " |
|
|
|
|
|
+ " td.estid, " |
|
|
|
|
|
+ " td.ref_id, " |
|
|
|
|
|
+ " td.percentage, " |
|
|
|
|
|
+ " td.stage_file, " |
|
|
|
|
|
+ " CONCAT('" + fileBaseUrl+ "/gccofficialapp/files', td.stage_file) AS view_stage_file, " |
|
|
|
|
|
+ " DATE_FORMAT(td.cdate, '%d-%m-%Y %H:%i:%s') as cdate," |
|
|
|
|
|
+ " td.cdate, " |
|
|
|
|
|
+ " td.remarks, " |
|
|
|
|
|
+ " td.tmid, " |
|
|
|
|
|
+ " tm.stagename as taskname, " |
|
|
|
|
|
+ " tm.orderby " |
|
|
|
|
|
+ " FROM erp_task_data td " |
|
|
|
|
|
+ " INNER JOIN erp_works_stages tm " |
|
|
|
|
|
+ " ON tm.tmid = td.tmid " |
|
|
|
|
|
+ " AND tm.isactive = 1 " |
|
|
|
|
|
+ " AND tm.isdelete = 0 " |
|
|
|
|
|
+ " " |
|
|
|
|
|
+ " WHERE td.estid = ? " |
|
|
|
|
|
+ " AND td.ref_id = ? " |
|
|
|
|
|
+ " AND td.isactive = 1 " |
|
|
|
|
|
+ " ORDER BY " |
|
|
|
|
|
+ " tm.orderby DESC, " |
|
|
|
|
|
+ " td.cdate DESC, " |
|
|
|
|
|
+ " td.tdid DESC "; |
|
|
|
|
|
|
|
|
return jdbcWorksTemplate.queryForList( |
|
|
return jdbcWorksTemplate.queryForList( |
|
|
sql, |
|
|
sql, |
|
|
|