标准查询 标准号/标准姓名 !!!
This commit is contained in:
+2
-1
@@ -64,7 +64,7 @@
|
||||
|
||||
|
||||
<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
|
||||
<where>
|
||||
<if test="standId != null">
|
||||
@@ -78,6 +78,7 @@
|
||||
</if>
|
||||
<if test="sar.standNumber != null">
|
||||
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 test="sar.standName != null">
|
||||
and si.STAND_NAME like concat(concat('%', #{sar.standName}),'%')
|
||||
|
||||
Reference in New Issue
Block a user