Commit a59abcd9 by yyq1988

Merge remote-tracking branch 'origin/master'

parents 8718313b a19d66e3
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
a.name AS "name", a.name AS "name",
a.type AS "type.id", a.type AS "type.id",
type.name AS "type.name", type.name AS "type.name",
type.code AS "type.code",
a.marking AS "marking", a.marking AS "marking",
a.shelves_id AS "shelves.id", a.shelves_id AS "shelves.id",
shelves.name AS "shelves.name", shelves.name AS "shelves.name",
......
...@@ -93,6 +93,9 @@ public class ProfitWarehousingService extends CrudService<ProfitWarehousingMappe ...@@ -93,6 +93,9 @@ public class ProfitWarehousingService extends CrudService<ProfitWarehousingMappe
ProfitWarehousingInfo profitWarehousingInfo = profitWarehousingInfoMapper.get(infoId); ProfitWarehousingInfo profitWarehousingInfo = profitWarehousingInfoMapper.get(infoId);
// String numSeq = CodeUtil.code("WZBM", StaticNumSeq.WZBM); // String numSeq = CodeUtil.code("WZBM", StaticNumSeq.WZBM);
Wzcode wzcode = wzcodeService.findByCode(profitWarehousingInfo.getType().getCode()); Wzcode wzcode = wzcodeService.findByCode(profitWarehousingInfo.getType().getCode());
int intNum = wzcode.getIntNum();
intNum = intNum+1;
wzcode.setIntNum(intNum);
QrCode qrCode = new QrCode(); QrCode qrCode = new QrCode();
qrCode.setProfitWarehousingInfo(profitWarehousingInfo); qrCode.setProfitWarehousingInfo(profitWarehousingInfo);
qrCode.setComeFlag("1"); qrCode.setComeFlag("1");
......
...@@ -287,7 +287,14 @@ public class ProfitWarehousingController extends BaseController { ...@@ -287,7 +287,14 @@ public class ProfitWarehousingController extends BaseController {
j.setMsg("二维码不存在"); j.setMsg("二维码不存在");
return j; return j;
} }
if(Objects.equals(profitWarehousingInfo1.getQrCode().getState(), "0")){
profitWarehousingService.cleanQr(profitWarehousingInfoId);//保存 profitWarehousingService.cleanQr(profitWarehousingInfoId);//保存
}else {
j.setSuccess(false);
j.setMsg("该物资已入账不能清除二维码");
return j;
}
j.setSuccess(true); j.setSuccess(true);
j.setMsg("清除二维码成功"); j.setMsg("清除二维码成功");
return j; 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