| | |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.sun.org.apache.bcel.internal.generic.NEW; |
| | | import com.zy.asrs.entity.LocDetl; |
| | | import com.zy.asrs.entity.LocNormal; |
| | | import com.zy.asrs.entity.LocNormalLog; |
| | | import com.zy.asrs.entity.LocNormalReport; |
| | |
| | | allLike(LocNormal.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)) { |
| | | wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType)); |
| | | } else { |
| | | wrapper.orderBy("appe_time", false); |
| | | } |
| | | if (Cools.isEmpty(param.get("state"))) { |
| | | wrapper.in("state", "1,2"); |
| | |
| | | Long modiUser = getUserId(); |
| | | Date modiTime = new Date(); |
| | | locNormalService.outLocNormal(param.getMatnr(), modiUser, modiTime, param.getId()); |
| | | } |
| | | |
| | | /** |
| | | * 批量修改物料状态 |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/locNormal/getAllLocDetlData") |
| | | @ManagerAuth(memo = "批量修改物料状态") |
| | | public R getAllLocDetlData(@RequestBody JSONObject param) { |
| | | List<LocNormal> list = JSONObject.parseArray(param.getJSONArray("list").toJSONString(), LocNormal.class); |
| | | Integer result = locNormalService.getAllLocDetlData(list); |
| | | return R.ok().add(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/locNormal/removeLoc/auth") |
| | |
| | | public R normalReportExport(@RequestBody JSONObject param){ |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | @SuppressWarnings("unchecked") |
| | | List<LocNormalReport> list = JSONObject.parseArray(param.getJSONArray("exportData").toJSONString(), LocNormalReport.class); |
| | | List<LocNormalLog> list = JSONObject.parseArray(param.getJSONArray("exportData").toJSONString(), LocNormalLog.class); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | } |