| | |
| | | @PostMapping("/addRawInspects") |
| | | public Result addRawInspects(@RequestHeader("token") String token,@Validated @RequestBody RawInspectVo rawInspectVo) throws Exception { |
| | | Map<String, String> data = JackSonUtil.unmarshal(jwt.readJWT(token).get("data"), Map.class); |
| | | return Result.success(rawInspectService.addRawInspects(data.get("id").replaceAll("\"", ""), rawInspectVo)); |
| | | return Result.success("提交成功!",rawInspectService.addRawInspects(data.get("id").replaceAll("\"", ""), rawInspectVo)); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询原材料检验单列表") |
| | |
| | | IPage<Map<String, Object>> selectRawInspectsList(Page<Object> page, String formTime, String code, Integer insState, String name); |
| | | |
| | | //根据原材料检验单id查看详情 |
| | | List<Map<String, Object>> selectRawInspectsListById(Integer id); |
| | | Map<String, Object> selectRawInspectsListById(Integer id); |
| | | |
| | | } |
| | | |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | List<Map<String,Object>> selectRawInspectsListById(Integer id); |
| | | Map<String, Object> selectRawInspectsListById(Integer id); |
| | | |
| | | /** |
| | | * 更新检验状态 |
| | |
| | | }).collect(Collectors.toList()); |
| | | //检验项目批量添加 |
| | | rawInsProductService.saveBatch(rawInsProductList); |
| | | return "新增检验单成功!"; |
| | | return rawInspect.getId().toString(); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | //根据检验单id查询原材料检验单详情 |
| | | @Override |
| | | public List<Map<String, Object>> selectRawInspectsListById(Integer id) { |
| | | public Map<String, Object> selectRawInspectsListById(Integer id) { |
| | | return rawInspectMapper.selectRawInspectsListById(id); |
| | | } |
| | | |