Browse Source

修BUG

mssql
07 3 years ago
parent
commit
ca7b4d7324
  1. 12
      src/main/java/com/qs/serve/modules/bms/entity/vo/BmsCostCenterTreeVo.java
  2. 2
      src/main/resources/mapper/bms/BmsSupplierChannelMapper.xml

12
src/main/java/com/qs/serve/modules/bms/entity/vo/BmsCostCenterTreeVo.java

@ -17,14 +17,14 @@ import javax.validation.constraints.NotNull;
public class BmsCostCenterTreeVo extends TreeNode { public class BmsCostCenterTreeVo extends TreeNode {
/** 科目名称 */ /** 科目名称 */
@NotBlank(message = "科目名称不能为空") @NotBlank(message = "成本中心名称不能为空")
@Length(max = 50,message = "科目名称长度不能超过50字") @Length(max = 50,message = "成本中心名称长度不能超过50字")
private String subjectName; private String name;
/** 科目编码 */ /** 科目编码 */
@NotBlank(message = "科目编码不能为空") @NotBlank(message = "成本中心编码不能为空")
@Length(max = 50,message = "科目编码长度不能超过50字") @Length(max = 50,message = "成本中心编码长度不能超过50字")
private String subjectCode; private String code;
/** 父级id */ /** 父级id */
@NotNull(message = "父级id不能为空") @NotNull(message = "父级id不能为空")

2
src/main/resources/mapper/bms/BmsSupplierChannelMapper.xml

@ -55,6 +55,8 @@
<if test="query.supplierName != null and query.supplierName != ''"> and `bms_supplier`.`name` LIKE CONCAT('%',#{query.supplierName},'%') </if> <if test="query.supplierName != null and query.supplierName != ''"> and `bms_supplier`.`name` LIKE CONCAT('%',#{query.supplierName},'%') </if>
<if test="query.supplierCode != null and query.supplierCode != ''"> and `bms_supplier`.`code` LIKE CONCAT('%',#{query.supplierCode},'%')</if> <if test="query.supplierCode != null and query.supplierCode != ''"> and `bms_supplier`.`code` LIKE CONCAT('%',#{query.supplierCode},'%')</if>
and `bms_supplier_channel`.`del_flag` = '0' and `bms_supplier_channel`.`del_flag` = '0'
and `bms_channel`.`del_flag` = '0'
and `bms_supplier`.`del_flag` = '0'
</where> </where>
</select> </select>

Loading…
Cancel
Save