| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | |
| | | import com.core.common.R; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.CombParam; |
| | | import com.zy.asrs.entity.param.MobileAdjustNewParam; |
| | | import com.zy.asrs.entity.param.MobileAdjustParam; |
| | | import com.zy.asrs.entity.param.OffSaleParam; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.entity.result.MobileAdjustResult; |
| | | import com.zy.asrs.mapper.ManLocDetlMapper; |
| | | import com.zy.asrs.service.*; |
| | |
| | | |
| | | |
| | | @RequestMapping("/plaDetl/check/v1") |
| | | // @ManagerAuth(memo="pla出库") |
| | | public R plaDetlCheck(@RequestBody JSONObject json){ |
| | | String batch = json.get("batch").toString(); |
| | | String packageNo = json.get("packageNo").toString(); |
| | |
| | | if ((Cools.isEmpty(pla))){ |
| | | return R.error("该包物料未录入,无法查询到相关信息"); |
| | | } |
| | | if(!Cools.eq(pla.getStatus(), GlobleParameter.PLA_STATUS_0)){ |
| | | return R.error("该包物料不为待入库状态,无法进行入库操作"); |
| | | } |
| | | return R.ok(pla); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String aa = "[{\"batch\":\"2023090304\",\"packageNo\":\"8\"},{\"batch\":\"2023090304\",\"packageNo\":\"8\"}]"; |
| | | JSONArray jsonArray = JSON.parseArray(aa); |
| | | Object o = jsonArray.get(0); |
| | | System.out.println(o.toString()); |
| | | JSONObject jsonObject = (JSONObject)o; |
| | | System.out.println(jsonObject); |
| | | // String aa = "[{\"batch\":\"2023090304\",\"packageNo\":\"8\"},{\"batch\":\"2023090304\",\"packageNo\":\"8\"}]"; |
| | | // JSONArray jsonArray = JSON.parseArray(aa); |
| | | // Object o = jsonArray.get(0); |
| | | // System.out.println(o.toString()); |
| | | // JSONObject jsonObject = (JSONObject)o; |
| | | // System.out.println(jsonObject); |
| | | |
| | | String s = "2024010502"; |
| | | System.out.println(s.substring(8,10)); |
| | | } |
| | | |
| | | } |