|
@@ -2,6 +2,15 @@
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.rongwei.bscommon.system.dao.StudyFileRecordDao">
|
|
<mapper namespace="com.rongwei.bscommon.system.dao.StudyFileRecordDao">
|
|
<select id="selectLatestRecordByMainId" resultType="com.rongwei.bsentity.domain.StudyFileRecordDo">
|
|
<select id="selectLatestRecordByMainId" resultType="com.rongwei.bsentity.domain.StudyFileRecordDo">
|
|
- SELECT * FROM qhse_study_file_record WHERE MAINID= #{ mainId } ORDER BY CREATEDATE DESC LIMIT 1
|
|
|
|
|
|
+ SELECT
|
|
|
|
+ *
|
|
|
|
+ FROM
|
|
|
|
+ qhse_study_file_record
|
|
|
|
+ WHERE
|
|
|
|
+ MAINID = #{ mainId }
|
|
|
|
+ AND PROCESSINSTSTATUS = '20'
|
|
|
|
+ ORDER BY
|
|
|
|
+ CREATEDATE DESC
|
|
|
|
+ LIMIT 1
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|