Commit e11a8699 authored by fangxinjiang's avatar fangxinjiang

是否仅使用自动化入口配置-fxj

parent ee676d58
......@@ -40,6 +40,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser;
import com.yifu.cloud.plus.v1.yifu.common.dapr.util.ArchivesDaprUtil;
import com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -1353,8 +1354,20 @@ private R<Boolean> checkItemRepeat(List<SysAutoDictItem> autoDictItems, Map<Stri
if (null == autoMainRel){
return R.failed(CommonConstants.PARAM_INFO_ERROR);
}
autoMainRel.setAutoFlag(autoFlag);
if (baseMapper.updateById(autoMainRel) >=0){
TAutoMainRel autoMainRelNew = new TAutoMainRel();
BeanUtils.copyProperties(autoMainRel,autoMainRelNew);
autoMainRelNew.setAutoFlag(autoFlag);
if (baseMapper.updateById(autoMainRelNew) >=0){
if (!autoMainRelNew.getAutoFlag().equals(autoMainRel.getAutoFlag())){
Map<String,String> diffKeyMap = new HashMap<>();
Map<String,Object> oldMap = new HashMap<>();
Map<String,Object> newMap = new HashMap<>();
diffKeyMap.put("autoMailRel","autoMailRel");
oldMap.put("oldAutoMailRel",autoMainRel);
newMap.put("newAutoMailRel",autoMainRelNew);
insertLog(autoMainRel, diffKeyMap, oldMap, newMap);
}
return R.ok();
}
return R.failed();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment