[修改] 申请权限流程userId

This commit is contained in:
bupengxiang
2023-05-15 14:50:05 +08:00
parent 6f7b48b351
commit 2a166475f8
2 changed files with 3 additions and 0 deletions
@@ -1,6 +1,7 @@
package com.adc.da.report.service.impl;
import com.adc.da.login.util.UserUtils;
import com.adc.da.report.dao.mysql.PowerApplyActDao;
import com.adc.da.report.eo.PowerApplyAct;
import com.adc.da.report.service.IPowerApplyActService;
@@ -71,6 +72,8 @@ public class IpowerApplyActServiceImpl extends ServiceImpl<PowerApplyActDao, Pow
*/
public void saveOrUpdateSingle(PowerApplyAct powerApplyAct) {
if (StringUtils.isEmpty(powerApplyAct.getId())) {
powerApplyAct.setCreateUserId(UserUtils.getUserId());
powerApplyAct.setUserId(UserUtils.getUserId());
baseMapper.insert(powerApplyAct);
} else {
baseMapper.updateById(powerApplyAct);