|
|
@@ -123,7 +123,7 @@
|
|
123
|
123
|
<include refid="traderuleColumns" />
|
|
124
|
124
|
FROM ty_jybd bd <include refid="traderuleJoins" />
|
|
125
|
125
|
<where>
|
|
126
|
|
- and bd.bdh like '%' || #{value} || '%'
|
|
|
126
|
+ and bd.bdh like '%${value}%'
|
|
127
|
127
|
</where>
|
|
128
|
128
|
</select>
|
|
129
|
129
|
|
|
|
@@ -164,7 +164,7 @@
|
|
164
|
164
|
and instr(cc.wtfmc, #{wtfmc}) > 0
|
|
165
|
165
|
</if>
|
|
166
|
166
|
<if test="jyrq != null">
|
|
167
|
|
- and cc.jyrq = to_date(#{jyrq}, 'yyyy-mm-dd')
|
|
|
167
|
+ and cc.jyrq = DATE_FORMAT(#{jyrq}, '%Y-%m-%d')
|
|
168
|
168
|
</if>
|
|
169
|
169
|
<if test="fbzt != null">
|
|
170
|
170
|
and wt.fbzt = #{fbzt}
|
|
|
@@ -221,7 +221,7 @@
|
|
221
|
221
|
<where>
|
|
222
|
222
|
and bd.apbm = ap.apbm
|
|
223
|
223
|
<if test="dwmc != null and dwmc != ''">
|
|
224
|
|
- and ap.dwmc like '%' || #{dwmc} || '%'
|
|
|
224
|
+ and ap.dwmc like '%${dwmc}%'
|
|
225
|
225
|
</if>
|
|
226
|
226
|
<if test="pzbm != null and pzbm != ''">
|
|
227
|
227
|
and ap.pzbm = #{pzbm}
|
|
|
@@ -613,7 +613,7 @@
|
|
613
|
613
|
</if>
|
|
614
|
614
|
</select>
|
|
615
|
615
|
<select id="selectOrgCode" resultType="java.lang.String">
|
|
616
|
|
- select qyjgdm from base:tz_slqy where zzjgdm =#{value}
|
|
|
616
|
+ select qyjgdm from base.tz_slqy where zzjgdm =#{value}
|
|
617
|
617
|
</select>
|
|
618
|
618
|
<select id="selectContractHtByDwbm" resultType="com.unis.transaction.common.vo.tradeplan.ContractVO">
|
|
619
|
619
|
select * from ty_jyht
|
|
|
@@ -648,18 +648,18 @@
|
|
648
|
648
|
</where>
|
|
649
|
649
|
</select>
|
|
650
|
650
|
<select id="selectGxgsList" resultType="java.lang.String">
|
|
651
|
|
- select org_code FROM usercenter:sys_orgainze where state_code='1'
|
|
|
651
|
+ select org_code FROM usercenter.sys_orgainze where state_code='1'
|
|
652
|
652
|
and org_code like '${value}%'
|
|
653
|
653
|
order by org_code
|
|
654
|
654
|
</select>
|
|
655
|
655
|
<select id="getKqdmByQyjgdm" resultType="java.lang.String">
|
|
656
|
656
|
select
|
|
657
|
657
|
kd.kqdm
|
|
658
|
|
- from base:d_kdxxsjy kd
|
|
|
658
|
+ from base.d_kdxxsjy kd
|
|
659
|
659
|
where kd.tyshxydm=
|
|
660
|
660
|
(select
|
|
661
|
661
|
qy.tyshxydm
|
|
662
|
|
- from base:tz_slqy qy
|
|
|
662
|
+ from base.tz_slqy qy
|
|
663
|
663
|
where qyjgdm=#{cckdm})
|
|
664
|
664
|
</select>
|
|
665
|
665
|
|