| | |
| | | @ManagerAuth |
| | | public R edit(BasWrkIotype basWrkIotype) { |
| | | if (Cools.isEmpty(basWrkIotype)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | if (null == basWrkIotype.getIoType()){ |
| | | basWrkIotypeService.insert(basWrkIotype); |
| | |
| | | @ManagerAuth(memo = "入出库类型修改") |
| | | public R update(BasWrkIotype basWrkIotype){ |
| | | if (Cools.isEmpty(basWrkIotype) || null==basWrkIotype.getIoType()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | basWrkIotype.setModiUser(getUserId()); |
| | | basWrkIotype.setModiTime(new Date()); |
| | |
| | | public R delete(@RequestParam String param){ |
| | | List<BasWrkIotype> list = JSONArray.parseArray(param, BasWrkIotype.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | for (BasWrkIotype entity : list){ |
| | | basWrkIotypeService.delete(new EntityWrapper<>(entity)); |