| | |
| | | if (Cools.isEmpty(item)) { |
| | | return R.error("参数为空,请联系管理员"); |
| | | } |
| | | |
| | | item.setType("1"); |
| | | if (!item.getType().equals("1")) { |
| | | throw new CoolException("目前仅支持集成项目"); |
| | | } |
| | |
| | | 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>() |