|
@@ -106,7 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
getxzqhmcbycode(a.ssxzqh) ssxzqh_name,
|
|
|
a.*
|
|
|
FROM zwyw_jg_bn a
|
|
|
- RIGHT JOIN ( SELECT id,MAX(create_time_str) str FROM zwyw_jg_bn GROUP BY jg_id ) b
|
|
|
+ RIGHT JOIN ( SELECT MAX(create_time_str) str FROM zwyw_jg_bn GROUP BY jg_id ) b
|
|
|
ON a.create_time_str = b.str
|
|
|
<where>
|
|
|
<if test="tyshxydm != null and tyshxydm != ''"> and a.tyshxydm = #{tyshxydm}</if>
|
|
@@ -184,7 +184,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
-- a.create_time_str, a.create_user_id, a.create_by, a.create_unit, a.create_unit_name,
|
|
|
-- a.update_time_str, a.update_user_id, a.update_by, a.update_unit, a.update_unit_name
|
|
|
FROM zwyw_jg_bn a
|
|
|
- RIGHT JOIN ( SELECT id,MAX(create_time_str) str FROM zwyw_jg_bn GROUP BY jg_id ) b
|
|
|
+ RIGHT JOIN ( SELECT MAX(create_time_str) str FROM zwyw_jg_bn GROUP BY jg_id ) b
|
|
|
ON a.create_time_str = b.str
|
|
|
<where>
|
|
|
<if test="tyshxydm != null and tyshxydm != ''"> and a.tyshxydm = #{tyshxydm}</if>
|