Commit a19d66e3 by zhanglt

盘盈入库模块,bug修复

parent cbb65015
......@@ -93,6 +93,9 @@ public class ProfitWarehousingService extends CrudService<ProfitWarehousingMappe
ProfitWarehousingInfo profitWarehousingInfo = profitWarehousingInfoMapper.get(infoId);
// String numSeq = CodeUtil.code("WZBM", StaticNumSeq.WZBM);
Wzcode wzcode = wzcodeService.findByCode(profitWarehousingInfo.getType().getCode());
int intNum = wzcode.getIntNum();
intNum = intNum+1;
wzcode.setIntNum(intNum);
QrCode qrCode = new QrCode();
qrCode.setProfitWarehousingInfo(profitWarehousingInfo);
qrCode.setComeFlag("1");
......
......@@ -287,7 +287,14 @@ public class ProfitWarehousingController extends BaseController {
j.setMsg("二维码不存在");
return j;
}
profitWarehousingService.cleanQr(profitWarehousingInfoId);//保存
if(Objects.equals(profitWarehousingInfo1.getQrCode().getState(), "0")){
profitWarehousingService.cleanQr(profitWarehousingInfoId);//保存
}else {
j.setSuccess(false);
j.setMsg("该物资已入账不能清除二维码");
return j;
}
j.setSuccess(true);
j.setMsg("清除二维码成功");
return j;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment