|
|
@ -36,15 +36,12 @@ public class SysFlowableConfigService extends MybatisBaseService<SysFlowableConf |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
//查询是否包含该用户的数据
|
|
|
|
SysFlowableConfig sysFlowableConfig = baseMapper.selectByUserSids(dto.getUserSid()); |
|
|
|
if(sysFlowableConfig == null){ |
|
|
|
sysFlowableConfig = new SysFlowableConfig(); |
|
|
|
BeanUtil.copyProperties(dto,sysFlowableConfig,"sid"); |
|
|
|
baseMapper.insert(sysFlowableConfig); |
|
|
|
}else{ |
|
|
|
BeanUtil.copyProperties(dto,sysFlowableConfig,"sid"); |
|
|
|
baseMapper.insert(sysFlowableConfig); |
|
|
|
baseMapper.updateById(sysFlowableConfig); |
|
|
|
if(sysFlowableConfig != null){ |
|
|
|
baseMapper.deleteBySid(dto.getUserSid()); |
|
|
|
} |
|
|
|
sysFlowableConfig = new SysFlowableConfig(); |
|
|
|
BeanUtil.copyProperties(dto,sysFlowableConfig,"sid"); |
|
|
|
baseMapper.insert(sysFlowableConfig); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
} |
|
|
|