| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.core.annotations.AppAuth; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.*; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 移动端接口控制器 |
| | |
| | | } |
| | | |
| | | @RequestMapping("/search/sign/auth/v2") |
| | | // @ManagerAuth(memo = "拆叠盘模式切换") |
| | | @ManagerAuth(memo = "拆叠盘模式切换") |
| | | public R orderSearchByBarcodeV2(@RequestParam boolean sign){ |
| | | RgvOneSign rgvOneSign = rgvOneSignService.selectOne(new EntityWrapper<RgvOneSign>().eq("rgv_one_type","oneSign")); |
| | | if (sign){ |
| | |
| | | return R.ok("出库成功"); |
| | | } |
| | | |
| | | @PostMapping("/ckfh/auth") |
| | | @ManagerAuth(memo = "出库复核确认") |
| | | public synchronized R pakoutFhqr(@RequestBody PdckqrParam param) { |
| | | // 根据工作号确认复核 |
| | | if(Cools.isEmpty(param) || Cools.isEmpty(param.getBarcode()) || Cools.isEmpty(param.getMaterials())){ |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | return mobileService.pakoutFhqr(param); |
| | | } |
| | | |
| | | @PostMapping("/pdckqr/auth") |
| | | @ManagerAuth(memo = "盘点出库确认") |
| | | public synchronized R pdckqr(@RequestBody PdckqrParam param) { |
| | | // 根据工作号确认复核 |
| | | if(Cools.isEmpty(param) || Cools.isEmpty(param.getBarcode()) || Cools.isEmpty(param.getMaterials())){ |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | return mobileService.pdckqr(param); |
| | | } |
| | | |
| | | @PostMapping("/pdtz/auth") |
| | | @ManagerAuth(memo = "盘点异常按实物调整库存信息") |
| | | public synchronized R pdtz(@RequestBody PdtzParam param) { |
| | | return mobileService.pdtz(param); |
| | | } |
| | | |
| | | @PostMapping("/pdaWarehousingNow") |
| | | @ManagerAuth(memo = "pda组托立即入库") |
| | | public synchronized R pdaWarehousingNow(@RequestBody PdaWarehousingNowParam param) { |
| | | |
| | | // 根据工作号确认复核 |
| | | if(Cools.isEmpty(param) || Cools.isEmpty(param.getBarcode()) || Cools.isEmpty(param.getSourceStaNo())){ |
| | | return R.parse(BaseRes.PARAM); |
| | | } |
| | | return mobileService.pdaWarehousingNow(param, getUserId()); |
| | | |
| | | } |
| | | |
| | | |
| | | @PostMapping("/pdaFxprk") |
| | | @ManagerAuth(memo = "pda反修品入库") |
| | | public synchronized R pdaFxprk(@RequestBody GwmsGenerateInventoryDto param) { |
| | | |
| | | return mobileService.pdaFxprk(param, getUserId()); |
| | | } |
| | | |
| | | } |