新购绑定逻辑修改
This commit is contained in:
parent
53b3d571db
commit
71678dded4
|
|
@ -149,6 +149,11 @@ public class PurchaseBindServiceImpl implements IPurchaseBindService {
|
||||||
if (purchaseBindMapper.bindMaCodeByQrCode(purchaseDto) != 1) {
|
if (purchaseBindMapper.bindMaCodeByQrCode(purchaseDto) != 1) {
|
||||||
return AjaxResult.error(1115,"绑定maCode时SQL执行失败!");
|
return AjaxResult.error(1115,"绑定maCode时SQL执行失败!");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (dto.getTypeId() != null) {
|
||||||
|
purchaseDto.setTypeId(dto.getTypeId());
|
||||||
|
}
|
||||||
|
purchaseBindMapper.insert(purchaseDto);
|
||||||
}
|
}
|
||||||
if (purchaseStorageMapper.insertMachine(purchaseDto) != 1) {
|
if (purchaseStorageMapper.insertMachine(purchaseDto) != 1) {
|
||||||
return AjaxResult.error(1116,"插入maMachine时SQL执行失败!");
|
return AjaxResult.error(1116,"插入maMachine时SQL执行失败!");
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="typeId != null">
|
<if test="typeId != null">
|
||||||
type_id,
|
type_id,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="maCode != null">
|
||||||
|
ma_code,
|
||||||
|
</if>
|
||||||
<if test="qrUrl != null">
|
<if test="qrUrl != null">
|
||||||
qr_url,
|
qr_url,
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -71,6 +74,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="typeId != null">
|
<if test="typeId != null">
|
||||||
#{typeId},
|
#{typeId},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="maCode != null">
|
||||||
|
#{maCode},
|
||||||
|
</if>
|
||||||
<if test="qrUrl != null">
|
<if test="qrUrl != null">
|
||||||
#{qrUrl},
|
#{qrUrl},
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue