| | |
| | | import com.ld.igds.models.Depot; |
| | | import com.ld.igds.models.DicTrigger; |
| | | import com.ld.igds.models.InoutConf; |
| | | import com.ld.igds.models.InoutPrice; |
| | | import com.ld.igds.util.ContextUtil; |
| | | import com.ld.igds.util.DateUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | @RequestMapping("/submit-handle") |
| | | @Transactional |
| | | public PageResponse<InoutData> submitHandle(@RequestBody InoutData data) throws Exception { |
| | | |
| | | return inoutManager.submitHandle(data); |
| | | } |
| | | |
| | |
| | | return inoutManager.inoutBack(data); |
| | | } |
| | | |
| | | /** |
| | | * 化验页面数据提交 |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @RequestMapping("/update-check") |
| | | public PageResponse<InoutData> updateCheck(@RequestBody InoutData data) { |
| | | try { |
| | | return inoutManager.updateCheck(data); |
| | | } catch (Exception e) { |
| | | log.error("后台异常:{}", e); |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), |
| | | "后台异常:" + e.getMessage(), null); |
| | | } |
| | | } |
| | | // /** |
| | | // * 化验页面数据提交 |
| | | // * |
| | | // * @param data |
| | | // * @return |
| | | // */ |
| | | // @RequestMapping("/update-check") |
| | | // public PageResponse<InoutData> updateCheck(@RequestBody InoutData data) { |
| | | // try { |
| | | // return inoutManager.updateCheck(data); |
| | | // } catch (Exception e) { |
| | | // log.error("后台异常:{}", e); |
| | | // return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), |
| | | // "后台异常:" + e.getMessage(), null); |
| | | // } |
| | | // } |
| | | |
| | | /** |
| | | * 根据卡号和类型,直接完成当前流程 |
| | |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @RequestMapping("/update-check1") |
| | | @RequestMapping("/update-check") |
| | | public PageResponse<InoutCheckData> updateCheck1(@RequestBody InoutCheckData data) { |
| | | |
| | | return inoutManager.updateCheckData(data); |
| | | } |
| | | |
| | | /** |
| | | * 根据粮食等级及粮食品种获取粮食定价 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | @RequestMapping("/get-price") |
| | | public PageResponse<InoutPrice> getPrice(@RequestBody InoutCheckParam param) { |
| | | |
| | | return inoutManager.getPrice(param); |
| | | } |
| | | } |