未符合项整改 导出bug修复
This commit is contained in:
+23
@@ -63,6 +63,29 @@
|
||||
ORDER BY c.STAND_ID, CONVERT(SUBSTRING(c.ITEMS_NUM,1,(SELECT LOCATE('.',CONCAT(c.ITEMS_NUM,'.')))),SIGNED) ,c.rows
|
||||
</select>
|
||||
|
||||
<select id="getSarStandUnqualifiedExcel" resultType="com.adc.da.slrs.sarStandUnqualified.entity.SarStandUnqualified">
|
||||
SELECT
|
||||
c.*
|
||||
FROM
|
||||
(
|
||||
SELECT (@i:=@i+1) as rows,sar_stand_unqualified.* ,sar_standards_info.STAND_TYPE as standType , concat(ts_user.UNAME,concat('(',concat(ts_user.USID,')'))) as dutyEngineerName , ts_institution.name as responsibleUnit FROM
|
||||
(sar_stand_unqualified,(SELECT @i:=0)j)
|
||||
left join sar_standards_info on sar_stand_unqualified.STAND_ID = sar_standards_info.id
|
||||
left join ts_user on ts_user.USID = sar_stand_unqualified.DUTY_ENGINEER
|
||||
left join ts_institution on ts_institution.id=ts_user.INSTITUTION_ID
|
||||
WHERE
|
||||
sar_stand_unqualified.close_state = '1'
|
||||
<if test="ids != null and ids.size()>0 ">
|
||||
and sar_stand_unqualified.ID in
|
||||
<foreach item="id" collection="ids" open="(" separator="," close=")" index="index">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
order by sar_stand_unqualified.ID,sar_stand_unqualified.STAND_ID ,sar_stand_unqualified.ITEMS_NUM asc
|
||||
)c
|
||||
ORDER BY c.STAND_ID, CONVERT(SUBSTRING(c.ITEMS_NUM,1,(SELECT LOCATE('.',CONCAT(c.ITEMS_NUM,'.')))),SIGNED) ,c.rows
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getSarStandUnqualifiedCount" resultType="java.lang.Integer">
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user