标准查询 标准号/标准姓名 !!!
This commit is contained in:
+2
-1
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="selectLawsId" resultType="string">
|
<select id="selectLawsId" resultType="string">
|
||||||
select stand_id from sar_laws_attr_detailed_list
|
select distinct stand_id from sar_laws_attr_detailed_list
|
||||||
LEFT JOIN sar_standards_info si ON sar_laws_attr_detailed_list.stand_id = si.ID
|
LEFT JOIN sar_standards_info si ON sar_laws_attr_detailed_list.stand_id = si.ID
|
||||||
<where>
|
<where>
|
||||||
<if test="standId != null">
|
<if test="standId != null">
|
||||||
@@ -78,6 +78,7 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="sar.standNumber != null">
|
<if test="sar.standNumber != null">
|
||||||
and concat(concat(concat(concat(si.STAND_SORT,' '),si.STAND_NUMBER),'-'),si.STAND_YEAR) like concat(concat('%', #{sar.standNumber}),'%')
|
and concat(concat(concat(concat(si.STAND_SORT,' '),si.STAND_NUMBER),'-'),si.STAND_YEAR) like concat(concat('%', #{sar.standNumber}),'%')
|
||||||
|
or si.STAND_NAME like concat(concat('%', #{sar.standNumber}),'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="sar.standName != null">
|
<if test="sar.standName != null">
|
||||||
and si.STAND_NAME like concat(concat('%', #{sar.standName}),'%')
|
and si.STAND_NAME like concat(concat('%', #{sar.standName}),'%')
|
||||||
|
|||||||
Reference in New Issue
Block a user