Fancy
2025-01-09 e54a03e1c3fefef7ec84df6168ff5cf26e53f8cb
pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/tstCommand/TstCommandSv.java
@@ -1,7 +1,9 @@
package com.dy.pmsPlatform.tstCommand;
import com.dy.common.webFilter.UserTokenContext;
import com.dy.common.webUtil.QueryResultVo;
import com.dy.pmsGlobal.daoTst.TstCommandMapper;
import com.dy.pmsGlobal.pojoBa.BaUser;
import com.dy.pmsGlobal.pojoTst.TstCommand;
import com.dy.pmsGlobal.util.UserUtil;
import lombok.extern.slf4j.Slf4j;
@@ -36,11 +38,11 @@
        }
        command.disabled = false;
        command.deleted = false;
     /*   BaUser loginUser = userUtil.getUser(UserTokenContext.get());
        BaUser loginUser = userUtil.getUser(UserTokenContext.get());
        if (loginUser != null) {
            command.createBy = loginUser.id;
        }*/
        command.createDate = new Date();
            command.creator = loginUser.id;
        }
        command.dt = new Date();
        int count = dao.insertSelective(command);
        return count;
    }
@@ -61,10 +63,10 @@
        if(dao.selectByNameId(command.id,command.proId,command.name)>0){
            throw new RuntimeException("指令名称已存在");
        }
        /*   BaUser loginUser = userUtil.getUser(UserTokenContext.get());
        BaUser loginUser = userUtil.getUser(UserTokenContext.get());
        if (loginUser != null) {
            command.updatedBy = loginUser.id;
        }*/
        }
        command.updatedDate = new Date();
        int count = dao.updateByPrimaryKeySelective(command);
        return count;