Fancy
2024-08-14 2d35acb93b1654c660153edaddd55a50bf447fe4
pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderSv.java
@@ -307,6 +307,8 @@
        //查询到当前的信息 如果登录信息一模一样,不会更新
        if (checkResult.getId() != null) {
            BeanUtils.copyProperties(checkResult, result);//checkResult拷贝到result
            result.setDt(new Date());
            assemblyWorkLastDao.updateByPrimaryKeySelective(result);
        }else{
            //逐个封装保存
            BeanUtils.copyProperties(vo, result);//vo拷贝到result
@@ -385,7 +387,7 @@
        }
        BaUser userInfo = getUserInfo(assistant);
        //当前登录人不能是辅助人员
        if (workLast.getUserId() == userInfo.getId()) {
        if (workLast.getUserId().intValue() == userInfo.getId().intValue()) {
            throw new RuntimeException(userInfo.getName() + "是当前登录人员,不必添加为辅助人员.");
        }
        String userId = userInfo.getId().toString();