whycq
2022-03-09 21aa738d9044f2fb2dd817e0f30fb96b598ef9b1
src/main/java/zy/cloud/wms/manager/controller/ItemController.java
@@ -79,7 +79,7 @@
        if (Cools.isEmpty(item)) {
            return R.error("参数为空,请联系管理员");
        }
        item.setType("1");
        if (!item.getType().equals("1")) {
            throw new CoolException("目前仅支持集成项目");
        }
@@ -108,13 +108,14 @@
        if (Cools.isEmpty(item)) {
            return R.error("参数为空,请联系管理员");
        }
        item.setType("1");
        if (!item.getType().equals("1")) {
            throw new CoolException("目前仅支持集成项目");
        }
        if (item.getRealMonth() < 0){
            throw new CoolException("实施周期不可为负数");
        }
//        item.setRealMonth(1);
//        if (item.getRealMonth() < 0){
//            throw new CoolException("实施周期不可为负数");
//        }
        item.setUpdateBy(getUserId());
        item.setUpdateTime(new Date());
        itemService.update(item,new EntityWrapper<Item>()