whj 1 ano atrás
pai
commit
3eb740a79e

+ 9 - 0
platform-dao/src/main/java/com/platform/dao/dto/preparation/PreparationRecordDTO.java

@@ -42,4 +42,13 @@ public class PreparationRecordDTO extends BaseDTO implements Serializable {
      */
     private Integer type;
 
+    /**
+     * 创建时间开始
+     */
+    private String createdTimeStart;
+    /**
+     * 创建时间结束
+     */
+    private String createdTimeEnd;
+
 }

+ 6 - 0
platform-dao/src/main/resources/mapper/preparation/PreparationRecordMapper.xml

@@ -50,6 +50,12 @@
         <if test="keyword != null and keyword != ''">
             and record.id like concat(concat('%',#{keyword}),'%')
         </if>
+        <if test="createdTimeStart != null">
+            and record.created_time <![CDATA[>=]]>; #{createdTimeStart}
+        </if>
+        <if test="createdTimeEnd != null">
+            and record.created_time <![CDATA[<=]]> #{createdTimeEnd}
+        </if>
     </sql>
     <select id="selectList" parameterType="com.platform.dao.dto.preparation.PreparationRecordDTO"
             resultType="com.platform.dao.vo.query.preparation.PreparationRecordVO">