修复基础协议单引号查询时报错,替换后台的like查询方法
This commit is contained in:
@@ -63,16 +63,16 @@
|
||||
SELECT * FROM specific_service_cfg s WHERE s.is_valid=1
|
||||
|
||||
<if test="specServiceId != null">
|
||||
AND s.spec_service_id like '%${specServiceId}%'
|
||||
AND s.spec_service_id like concat(concat('%',#{specServiceId,jdbcType=INTEGER}),'%')
|
||||
</if>
|
||||
<if test="specServiceName != null and specServiceName != '' ">
|
||||
AND s.spec_service_name like '%${specServiceName}%'
|
||||
AND s.spec_service_name like concat(concat('%',#{specServiceName,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="specServiceDesc != null and specServiceDesc != '' ">
|
||||
AND s.spec_service_desc like '%${specServiceDesc}%'
|
||||
AND s.spec_service_desc like concat(concat('%',#{specServiceDesc,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="groupId != null and groupId != '' ">
|
||||
AND group_id like '%${groupId}%'
|
||||
AND group_id like concat(concat('%',#{groupId,jdbcType=INTEGER}),'%')
|
||||
</if>
|
||||
<if test="cfgType != null and cfgType != '' ">
|
||||
AND cfg_type =#{cfgType,jdbcType=INTEGER}
|
||||
@@ -89,19 +89,19 @@
|
||||
AND s.parent_id not in (
|
||||
SELECT s2.spec_service_id FROM specific_service_cfg s2 WHERE s2.is_valid=1
|
||||
<if test="specServiceId != null">
|
||||
AND s2.spec_service_id like '%${specServiceId}%'
|
||||
AND s2.spec_service_id like concat(concat('%',#{specServiceId,jdbcType=INTEGER}),'%')
|
||||
</if>
|
||||
<if test="specServiceCode != null">
|
||||
AND spec_service_code = #{specServiceCode}
|
||||
</if>
|
||||
<if test="specServiceName != null and specServiceName != '' ">
|
||||
AND s2.spec_service_name like '%${specServiceName}%'
|
||||
AND s2.spec_service_name like concat(concat('%',#{specServiceName,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="specServiceDesc != null and specServiceDesc != '' ">
|
||||
AND s2.spec_service_desc like '%${specServiceDesc}%'
|
||||
AND s2.spec_service_desc like concat(concat('%',#{specServiceDesc,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="groupId != null and groupId != '' ">
|
||||
AND group_id like '%${groupId}%'
|
||||
AND group_id like concat(concat('%',#{groupId,jdbcType=INTEGER}),'%')
|
||||
</if>
|
||||
<if test="beginDate != null" >
|
||||
AND s2.op_time >= #{beginDate,jdbcType=TIMESTAMP}
|
||||
@@ -131,13 +131,13 @@
|
||||
AND spec_service_code =#{specificServiceCfg.specServiceCode}
|
||||
</if>
|
||||
<if test="specificServiceCfg.specServiceName != null and specificServiceCfg.specServiceName != '' ">
|
||||
AND spec_service_name like '%${specificServiceCfg.specServiceName}%'
|
||||
AND spec_service_name like concat(concat('%',#{specificServiceCfg.specServiceName,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="specificServiceCfg.specServiceDesc != null and specificServiceCfg.specServiceDesc != '' ">
|
||||
AND spec_service_desc like '%${specificServiceCfg.specServiceDesc}%'
|
||||
AND spec_service_desc like concat(concat('%',#{specificServiceCfg.specServiceDesc,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="specificServiceCfg.groupId != null and specificServiceCfg.groupId != '' ">
|
||||
AND group_id like '%${specificServiceCfg.groupId}%'
|
||||
AND group_id like concat(concat('%',#{specificServiceCfg.groupId,jdbcType=INTEGER}),'%')
|
||||
</if>
|
||||
<if test="specificServiceCfg.cfgType != null and specificServiceCfg.cfgType != '' ">
|
||||
AND cfg_type = #{specificServiceCfg.cfgType}
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
//条件回传
|
||||
$("#seltype").find("option[value=${searchType==null?11:searchType}]").attr("selected",true);
|
||||
$("#intype").attr("name",$("#seltype").find("option:selected").val());
|
||||
$("#intype").val('${searchContent}');
|
||||
$("#intype").val("${searchContent}");
|
||||
//筛选功能初始化
|
||||
filterActionInit();
|
||||
$("#seltype").change(function(){
|
||||
|
||||
Reference in New Issue
Block a user