liujc 1 anno fa
parent
commit
e72887e8fb

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/SysMusicCompareRecordMapper.xml

@@ -142,10 +142,10 @@
 				AND smcr.feature_ = #{featureType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
 				AND smcr.feature_ = #{featureType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
 			</if>
 			</if>
 			<if test="startTime != null and startTime != ''">
 			<if test="startTime != null and startTime != ''">
-				AND DATE_FORMAT(smcr.create_time_, '%Y-%m-%d') >= CONCAT(#{startTime},' 00:00:00')
+				AND DATE_FORMAT(smcr.create_time_, '%Y-%m-%d %H:%i:%S') >= CONCAT(#{startTime},' 00:00:00')
 			</if>
 			</if>
 			<if test="endTime != null and endTime != ''">
 			<if test="endTime != null and endTime != ''">
-				AND DATE_FORMAT(smcr.create_time_, '%Y-%m-%d') &lt;= CONCAT(#{endTime},' 23:59:59')
+				AND DATE_FORMAT(smcr.create_time_, '%Y-%m-%d %H:%i:%S') &lt;= CONCAT(#{endTime},' 23:59:59')
 			</if>
 			</if>
 		</where>
 		</where>
 	</sql>
 	</sql>