| | |
| | | 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; |
| | |
| | | } |
| | | 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; |
| | | } |
| | |
| | | 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; |