| | |
| | | public synchronized R orderAccept(@RequestHeader(required = false) String appkey, |
| | | @RequestBody(required = true) OrderSyncParam param, |
| | | HttpServletRequest request){ |
| | | log.info("生成退货补货单据,{}",JSON.toJSONString(param)); |
| | | auth(appkey, param, request); |
| | | if (Cools.isEmpty(param)) { |
| | | return R.parse(BaseRes.PARAM); |
| | |
| | | public synchronized R orderPakin(@RequestHeader(required = false) String appkey, |
| | | @RequestBody(required = true) OrderSyncParam param, |
| | | HttpServletRequest request){ |
| | | log.info("生成入库单据,{}",JSON.toJSONString(param)); |
| | | auth(appkey, param, request); |
| | | if (Cools.isEmpty(param)) { |
| | | return R.parse(BaseRes.PARAM); |
| | |
| | | //@RequestBody(required = false) HashMap<String,Object> param, |
| | | @RequestBody(required = false) OrderProdSyncParam param, |
| | | HttpServletRequest request){ |
| | | |
| | | log.info("同步工单单据,{}",JSON.toJSONString(param)); |
| | | auth(appkey, param, request); |
| | | if (Cools.isEmpty(param)) { |
| | | return R.parse(BaseRes.PARAM); |
| | |
| | | public synchronized R orderDelete(@RequestHeader(required = false) String appkey, |
| | | @RequestBody(required = false) Map<String, Object> param, |
| | | HttpServletRequest request){ |
| | | log.info("单据删除审核,{}",JSON.toJSONString(param)); |
| | | auth(appkey, param, request); |
| | | if (Cools.isEmpty(param)) { |
| | | return R.parse(BaseRes.PARAM); |
| | |
| | | "loc_no," + |
| | | "crn_no," + |
| | | "barcode," + |
| | | "plt_type," + |
| | | "whs_type," + |
| | | "manu_type," + |
| | | "appe_user," + |
| | | "appe_time," + |
| | | "modi_user," + |
| | | "modi_time) " + |
| | | "VALUES(#{wrkSts},#{ioType},#{ioTime},#{ioPri},#{sourceLocNo},#{locNo},#{crnNo},#{barcode},#{whsType},#{manuType},#{appeUser},#{appeTime},#{modiUser},#{modiTime})") |
| | | "VALUES(#{wrkSts},#{ioType},#{ioTime},#{ioPri},#{sourceLocNo},#{locNo},#{crnNo},#{barcode},#{pltType},#{whsType},#{manuType},#{appeUser},#{appeTime},#{modiUser},#{modiTime})") |
| | | public int insertByIncrease(AgvWrkMast agvWrkMast); |
| | | |
| | | } |
| | |
| | | private int doHttpRequest(Object requestParam, String namespace, String url, String path, String appkey, String ip){ |
| | | String response = ""; |
| | | boolean success = false; |
| | | |
| | | try { |
| | | response = new HttpHandler.Builder() |
| | | .setUri(url) |
| | |
| | | if (pltType != null && pltType > 0) { |
| | | order.setPltType(pltType); |
| | | } |
| | | order.setInTime(DateUtils.convert(new Date(), DateUtils.yyyyMMdd)); |
| | | order.setInTime(DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F)); |
| | | super.updateById(order); |
| | | |
| | | } |