Browse Source

优化

master
dimengzhe 2 years ago
parent
commit
cb8a27aa6b
  1. 5
      anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/sysflowableconfig/SysFlowableConfigService.java

5
anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/sysflowableconfig/SysFlowableConfigService.java

@ -1,6 +1,7 @@
package com.yxt.anrui.portal.biz.sysflowableconfig;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import com.yxt.anrui.portal.api.sysflowableconfig.*;
import com.yxt.common.base.service.MybatisBaseService;
import com.yxt.common.core.result.ResultBean;
@ -31,6 +32,10 @@ public class SysFlowableConfigService extends MybatisBaseService<SysFlowableConf
SysFlowableConfigVo sysFlowableConfigVo = baseMapper.initDetails(userSid);
if(sysFlowableConfigVo != null){
sysFlowableConfigVo.setStartDateLong(System.currentTimeMillis());
}else{
sysFlowableConfigVo = new SysFlowableConfigVo();
sysFlowableConfigVo.setStartDate(DateUtil.format(new Date(),"yyyy-MM-dd HH:mm"));
sysFlowableConfigVo.setStartDateLong(System.currentTimeMillis());
}
return rb.success().setData(sysFlowableConfigVo);
}

Loading…
Cancel
Save