| | |
| | | package com.gkhy.safePlatform.equipment.controller; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.gkhy.safePlatform.commons.co.ContextCacheUser; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.commons.utils.PageUtils; |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.equipment.entity.MaterialReceiveRecordsBaseDO; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.MaterialReceiveRecordsBaseReq; |
| | | import com.gkhy.safePlatform.equipment.model.dto.req.MaterialReceiveRecordsQuery; |
| | | import com.gkhy.safePlatform.equipment.model.dto.resp.MaterialReceiveRecordsBaseDto; |
| | |
| | | materialReceiveRecordsService.revertMaterial(currentUser,req); |
| | | return new ResultVO(ResultCodes.OK); |
| | | } |
| | | /** |
| | | * 获取单条记录 |
| | | */ |
| | | @RequestMapping("queryById") |
| | | public ResultVO queryById(Authentication authentication, @RequestBody JSONObject jsonObject){ |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | Long id = jsonObject.getLong("id"); |
| | | MaterialReceiveRecordsBaseDto materialReceiveRecordsBaseDto = materialReceiveRecordsService.queryById(currentUser,id); |
| | | return new ResultVO(ResultCodes.OK,materialReceiveRecordsBaseDto); |
| | | } |
| | | } |