Compare commits
No commits in common. "136875d6c04b304971726d0dc4c6cc3a6817560c" and "3a4b474c1f81ba281fff31bd0eced198fa1c4611" have entirely different histories.
136875d6c0
...
3a4b474c1f
|
|
@ -343,14 +343,14 @@ public class InvoicingApi {
|
|||
@ApiOperation(value="拣货物料", notes="拣货物料")
|
||||
@AutoLog(value = "拣货物料")
|
||||
@PostMapping(value = "/pickingInfo")
|
||||
public Result<Map<String,Object>> pickingInfo(@RequestBody CgdInfoEntity cgdInfoEntityDto) {
|
||||
Map<String,Object> result = invoicingApi.pickingInfo(cgdInfoEntityDto);
|
||||
if(StringUtils.equals("2",result.get("status").toString())){
|
||||
public Result<String> pickingInfo(@RequestBody CgdInfoEntity cgdInfoEntityDto) {
|
||||
String result = invoicingApi.pickingInfo(cgdInfoEntityDto);
|
||||
if(StringUtils.equals("2",result)){
|
||||
return Result.error("入库数量错误,超过请购数量");
|
||||
}else if(StringUtils.equals("3",result.get("status").toString())){
|
||||
}else if(StringUtils.equals("3",result)){
|
||||
return Result.error("销账数量错误,超过请购数量");
|
||||
}
|
||||
return Result.OK(result);
|
||||
return Result.OK("操作成功!");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public interface IInvoicingApi {
|
|||
|
||||
String addWaringAll(CgdInfoEntity cgdInfoEntityDto, Integer maxCount);
|
||||
|
||||
Map<String,Object> pickingInfo(CgdInfoEntity cgdInfoEntityDto);
|
||||
String pickingInfo(CgdInfoEntity cgdInfoEntityDto);
|
||||
|
||||
Map<String,String> editPrice(CgdInfoEntity cgdInfoEntityDto);
|
||||
|
||||
|
|
|
|||
|
|
@ -927,9 +927,8 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
|
|||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Map<String,Object> pickingInfo(CgdInfoEntity cgdInfoEntityDto) {
|
||||
public String pickingInfo(CgdInfoEntity cgdInfoEntityDto) {
|
||||
|
||||
Map<String,Object> result = new HashMap<>();
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
QueryWrapper<NuInvoicingCgdInfo> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("id",cgdInfoEntityDto.getJhId());
|
||||
|
|
@ -972,11 +971,9 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
|
|||
|
||||
if(jhNum > cgsl - rksl - xzsl){
|
||||
if(StringUtils.equals("0",jhType)) {//入库操作
|
||||
result.put("status","2");
|
||||
return result;//入库数量错误,超过请购数量
|
||||
return "2";//入库数量错误,超过请购数量
|
||||
}else{
|
||||
result.put("status","3");
|
||||
return result;//销账数量错误,超过请购数量
|
||||
return "3";//销账数量错误,超过请购数量
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1056,10 +1053,7 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
|
|||
cgdMainMapper.updateById(cgdMain);
|
||||
}
|
||||
|
||||
result.put("status","1");
|
||||
result.put("cgdInfo",cgdMain);
|
||||
|
||||
return result;
|
||||
return "1";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue