[修改] 申请权限流程userId
This commit is contained in:
+3
@@ -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);
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user