yangys
2024-01-15 f75dba1a98ce57072c056891c2ef5064b3c33e94
台账增加规格参数
已修改2个文件
28 ■■■■ 文件已修改
mdc-parent/mdc-show/src/main/java/com/qianwen/mdc/dto/account/MachineAccountQueryDTO.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/MachineAccountMapper.xml 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
mdc-parent/mdc-show/src/main/java/com/qianwen/mdc/dto/account/MachineAccountQueryDTO.java
@@ -19,7 +19,10 @@
     */
    private String category;
    /**
     * 规格
     */
    private String specification;
    /**
     * 账务属性(帐内/帐外)
     */
@@ -141,6 +144,14 @@
    public void setManageType(String manageType) {
        this.manageType = manageType;
    }
    public String getSpecification() {
        return specification;
    }
    public void setSpecification(String specification) {
        this.specification = specification;
    }
    
    
mdc-parent/mdc-showdb-mysql/src/main/resources/mapper/MachineAccountMapper.xml
@@ -62,23 +62,28 @@
        <where>
         <if test="dto.uuid != null and dto.uuid != ''">
             <bind name="uuid" value="'%' + dto.uuid + '%'" />
            and a.uuid like '#{uuid}'
            and a.uuid like #{uuid}
         </if>
         <if test="dto.type != null and dto.type != ''">
             <bind name="type" value="'%' + dto.type + '%'" />
            and a.type like '#{type}'
            and a.type like #{type}
         </if>
         <if test="dto.specification != null and dto.specification != ''">
             <bind name="specification" value="'%' + dto.specification + '%'" />
            and a.specification like #{specification}
         </if>
         <if test="dto.manufacturer != null and dto.manufacturer != ''">
             <bind name="manufacturer" value="'%' + dto.manufacturer + '%'" />
            and a.manufacturer like '#{manufacturer}'
            and a.manufacturer like #{manufacturer}
         </if>
         <if test="dto.country != null and dto.country != ''">
             <bind name="country" value="'%' + dto.country + '%'" />
            and a.country like '#{country}'
            and a.country like #{country}
         </if>
         <if test="dto.remark != null and dto.remark != ''">
             <bind name="remark" value="'%' + dto.remark + '%'" />
            and a.remark like '#{remark}'
            and a.remark like #{remark}
         </if>
         <if test="dto.category != null and dto.category != ''">
            and a.category = #{dto.category}