| | |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | hostEq(wrapper); |
| | | wrapper.orderBy("status",true); |
| | | // wrapper.orderBy("status",true); |
| | | wrapper.orderBy("id",false); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | return R.ok(itemService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | |
| | | 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>() |