丽知:自定义档案,自定义档案列表删除sort字段
This commit is contained in:
parent
394c7efd7b
commit
9e89baa1ee
|
@ -50,8 +50,6 @@
|
|||
<if test="shortname != null and shortname != ''"> and shortname = #{shortname} </if>
|
||||
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
|
||||
</trim>
|
||||
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
|
@ -71,8 +69,6 @@
|
|||
<if test="shortname != null and shortname != ''"> and shortname = #{shortname} </if>
|
||||
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
|
@ -94,8 +90,6 @@
|
|||
<if test="shortname != null and shortname != ''"> and shortname like concat('%',#{shortname},'%') </if>
|
||||
<if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
|
@ -117,8 +111,6 @@
|
|||
<if test="shortname != null and shortname != ''"> or shortname = #{shortname} </if>
|
||||
<if test="ts != null and ts != ''"> or ts = #{ts} </if>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
|
@ -137,7 +129,6 @@
|
|||
<if test="sealflag != null and sealflag != ''"> sealflag , </if>
|
||||
<if test="shortname != null and shortname != ''"> shortname , </if>
|
||||
<if test="ts != null and ts != ''"> ts , </if>
|
||||
<if test="sorts == null ">sorts,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
|
@ -154,7 +145,6 @@
|
|||
<if test="sealflag != null and sealflag != ''"> #{sealflag} ,</if>
|
||||
<if test="shortname != null and shortname != ''"> #{shortname} ,</if>
|
||||
<if test="ts != null and ts != ''"> #{ts} ,</if>
|
||||
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_defdoc a WHERE a.sts = 'Y' ),</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
<if test="pkDefdoclist != null and pkDefdoclist != ''"> and pk_defdoclist = #{pkDefdoclist} </if>
|
||||
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
|
@ -55,8 +55,7 @@
|
|||
<if test="pkDefdoclist != null and pkDefdoclist != ''"> and pk_defdoclist = #{pkDefdoclist} </if>
|
||||
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
|
@ -74,8 +73,8 @@
|
|||
<if test="pkDefdoclist != null and pkDefdoclist != ''"> and pk_defdoclist like concat('%',#{pkDefdoclist},'%') </if>
|
||||
<if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
|
@ -93,8 +92,7 @@
|
|||
<if test="pkDefdoclist != null and pkDefdoclist != ''"> or pk_defdoclist = #{pkDefdoclist} </if>
|
||||
<if test="ts != null and ts != ''"> or ts = #{ts} </if>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
|
@ -109,7 +107,6 @@
|
|||
<if test="iscorpcanchg != null and iscorpcanchg != ''"> iscorpcanchg , </if>
|
||||
<if test="pkDefdoclist != null and pkDefdoclist != ''"> pk_defdoclist , </if>
|
||||
<if test="ts != null and ts != ''"> ts , </if>
|
||||
<if test="sorts == null ">sorts,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
|
@ -122,7 +119,6 @@
|
|||
<if test="iscorpcanchg != null and iscorpcanchg != ''"> #{iscorpcanchg} ,</if>
|
||||
<if test="pkDefdoclist != null and pkDefdoclist != ''"> #{pkDefdoclist} ,</if>
|
||||
<if test="ts != null and ts != ''"> #{ts} ,</if>
|
||||
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_defdoclist a WHERE a.sts = 'Y' ),</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue