feature:修改物料规格型号、单位、单价、开票名称修改为空

release
gaorl 2 years ago
parent fdf61aa813
commit 86c8b02bdf
  1. 13
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/commodity/controller/CommodityController.java
  2. 8
      order-management-base-service/src/main/resources/mybatis/mapper/CommodityMapper.xml

@ -167,6 +167,19 @@ public class CommodityController {
if(StringUtils.isBlank(commodityCodeEntity.getZxbm())||"000000000000000000".equals(commodityCodeEntity.getZxbm())){
commodityCodeEntity.setZxbm(commodityCodeEntity.getId());
}
if(StringUtils.isBlank(commodityCodeEntity.getGgxh())){
commodityCodeEntity.setGgxh("");
}
if(StringUtils.isBlank(commodityCodeEntity.getXmdw())){
commodityCodeEntity.setXmdw("");
}
if(StringUtils.isBlank(commodityCodeEntity.getXmdj())){
commodityCodeEntity.setXmdj("");
}
if(StringUtils.isBlank(commodityCodeEntity.getInvoiceName())){
commodityCodeEntity.setInvoiceName("");
}
/**
* 添加校验
*/

@ -266,13 +266,13 @@
<if test="commodityCode.sl != null and commodityCode.sl != ''">
tax_rate = #{commodityCode.sl,jdbcType=VARCHAR},
</if>
<if test="commodityCode.ggxh != null and commodityCode.ggxh != ''">
<if test="commodityCode.ggxh != null">
specification_model = #{commodityCode.ggxh,jdbcType=VARCHAR},
</if>
<if test="commodityCode.xmdw != null and commodityCode.xmdw != ''">
<if test="commodityCode.xmdw != null">
metering_unit = #{commodityCode.xmdw,jdbcType=VARCHAR},
</if>
<if test="commodityCode.xmdj != null and commodityCode.xmdj != ''">
<if test="commodityCode.xmdj != null">
unit_price = #{commodityCode.xmdj,jdbcType=VARCHAR},
</if>
<if test="commodityCode.hsbz != null and commodityCode.hsbz != ''">
@ -356,7 +356,7 @@
<if test="commodityCode.tswl != null and commodityCode.tswl != ''">
tswl = #{commodityCode.tswl,jdbcType=VARCHAR},
</if>
<if test="commodityCode.invoiceName != null and commodityCode.invoiceName != ''">
<if test="commodityCode.invoiceName != null">
invoice_name = #{commodityCode.invoiceName,jdbcType=VARCHAR},
</if>

Loading…
Cancel
Save