|
|
@@ -31,7 +31,7 @@ public class WorkflowImplDao implements WorkflowDao {
|
|
|
this.namedParameterJdbcTemplate = namedParameterJdbcTemplate;
|
|
|
}
|
|
|
|
|
|
- private String selectSql = " select a.id,a.link_id,a.type,a.title,a.status,a.remark,a.create_id,a.workflow_date,a.workflow_remark,a.workflow_name, " +
|
|
|
+ private String selectSql = " select a.id,a.link_id,a.type,a.title,a.status,a.remark,a.create_id,a.workflow_date,date_format(a.create_date, '%Y-%m-%d') as create_date,a.workflow_remark,a.workflow_name, " +
|
|
|
" case when a.type = 1 then b.hname when a.type = 2 then c.user_name else null end as createName "+
|
|
|
" from workflow a " +
|
|
|
" left join hotel b on a.type = 1 and a.create_id = b.id " +
|
|
|
@@ -49,6 +49,7 @@ public class WorkflowImplDao implements WorkflowDao {
|
|
|
sps.addValue("status",workflow.getStatus());
|
|
|
sps.addValue("remark",workflow.getRemark());
|
|
|
sps.addValue("create_id",workflow.getCreateId());
|
|
|
+ sps.addValue("create_date",UUIDUtil.getNewDate());
|
|
|
if (workflow.getId() == null) {
|
|
|
sps.addValue("id", String.valueOf(UUID.randomUUID()));
|
|
|
} else {
|