Explorar o código

标准化修改

anderx hai 1 ano
pai
achega
1beb50662f

+ 3 - 0
src/main/java/com/goafanti/common/mapper/StandardDocumentMapper.xml

@@ -171,6 +171,9 @@
         <if test="name !=null">
             and a.name like concat('%',#{name,jdbcType=VARCHAR},'%')
         </if>
+        <if test="type !=null">
+            and a.type = #{type,jdbcType=INTEGER}
+        </if>
     </sql>
 
     <select id="standardCount"  resultType="java.lang.Integer">

+ 13 - 0
src/main/java/com/goafanti/standard/bo/InputStandardList.java

@@ -30,6 +30,19 @@ public class InputStandardList {
      */
     private String endTime;
 
+    /**
+     * 0=国家标准,1=行业标准,2=地方标准,3=团体标准,4=国际标准,5=企业标准
+     */
+    private Integer type;
+
+    public Integer getType() {
+        return type;
+    }
+
+    public void setType(Integer type) {
+        this.type = type;
+    }
+
     public String getName() {
         return name;
     }

+ 1 - 0
src/main/java/com/goafanti/standard/service/impl/StandardServiceImpl.java

@@ -97,6 +97,7 @@ public class StandardServiceImpl extends BaseMybatisDao<StandardDocumentMapper>
         if (in.getEndTime()!=null)params.put("endTime",in.getEndTime()+" 23:59:59");
         if (in.getDepId()!=null)params.put("depId",in.getDepId());
         if (in.getName()!=null)params.put("name",in.getName());
+        if (in.getType()!=null)params.put("type",in.getType());
         return (Pagination<OutStandardDocument>) findPage("standardList","standardCount",params,in.getPageNo(),in.getPageSize());
     }