|
|
@ -3,9 +3,12 @@ package com.yxt.anrui.portal.biz.sysflowableconfig; |
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.yxt.anrui.portal.api.sysflowableconfig.*; |
|
|
|
import com.yxt.common.base.service.MybatisBaseService; |
|
|
|
import com.yxt.common.base.utils.StringUtils; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
/** |
|
|
@ -26,9 +29,19 @@ public class SysFlowableConfigService extends MybatisBaseService<SysFlowableConf |
|
|
|
return rb.success().setData(sysFlowableConfigVvo); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<SysFlowableConfigVo> initDetails(String userSid) { |
|
|
|
public ResultBean<SysFlowableConfigVo> initDetails(String userSid){ |
|
|
|
ResultBean<SysFlowableConfigVo> rb = ResultBean.fireFail(); |
|
|
|
SysFlowableConfigVo sysFlowableConfigVo = baseMapper.initDetails(userSid); |
|
|
|
if(sysFlowableConfigVo != null){ |
|
|
|
if(StringUtils.isNotBlank(sysFlowableConfigVo.getStartDate())){ |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm"); |
|
|
|
try { |
|
|
|
sysFlowableConfigVo.setStartDateLong(sdf.parse(sysFlowableConfigVo.getStartDate()).getTime()); |
|
|
|
} catch (ParseException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return rb.success().setData(sysFlowableConfigVo); |
|
|
|
} |
|
|
|
|
|
|
|