~
This commit is contained in:
+1
@@ -34,6 +34,7 @@ public class WgdZcbController extends BaseController<WgdZcb> {
|
|||||||
return Result.success(iWgdZcbService.getAllWgdZcbs());
|
return Result.success(iWgdZcbService.getAllWgdZcbs());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation("查询")
|
@ApiOperation("查询")
|
||||||
@GetMapping("/queryAllZcbs")
|
@GetMapping("/queryAllZcbs")
|
||||||
public ResponseMessage<Object> queryAllWgdZcbs(WgdZcb wgdZcb) {//多条件查询
|
public ResponseMessage<Object> queryAllWgdZcbs(WgdZcb wgdZcb) {//多条件查询
|
||||||
|
|||||||
@@ -35,10 +35,9 @@ public class WgdZcb extends BasePage {
|
|||||||
private String cost;
|
private String cost;
|
||||||
|
|
||||||
@ApiModelProperty(value = "用途")
|
@ApiModelProperty(value = "用途")
|
||||||
private String use;
|
private String purposes;
|
||||||
|
|
||||||
@ApiModelProperty(value = "详细附件")
|
@ApiModelProperty(value = "详细附件")
|
||||||
private String annex;
|
private String annexs;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<mapper namespace="com.adc.da.slrs.wgdCensusLeo.dao.WgdZcbDao">
|
<mapper namespace="com.adc.da.slrs.wgdCensusLeo.dao.WgdZcbDao">
|
||||||
<!-- 基础信息-->
|
<!-- 基础信息-->
|
||||||
<sql id="BaseInfo">
|
<sql id="BaseInfo">
|
||||||
id,name,cost,use,annex
|
id,name,cost,purposes,annexs
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 查询条件-->
|
<!-- 查询条件-->
|
||||||
<sql id="Conditions">
|
<sql id="Conditions">
|
||||||
@@ -12,18 +12,17 @@
|
|||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
and name like concat('%',#{name},'%')
|
and name = #{name}
|
||||||
</if>
|
</if>
|
||||||
<if test="cost != null and cost != ''">
|
<if test="cost != null and cost != ''">
|
||||||
and cost like concat('%',#{cost},'%')
|
and cost = #{cost}
|
||||||
</if>
|
</if>
|
||||||
<if test="use != null and use != ''">
|
<if test="purposes != null and purposes != ''">
|
||||||
and use like concat('%',#{use},'%')
|
and purposes = #{purposes}
|
||||||
</if>
|
</if>
|
||||||
<if test="annex != null and annex != ''">
|
<if test="annexs != null and annexs != ''">
|
||||||
and annex = #{annex}
|
and annexs = #{annexs}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
<select id="getTotal" resultType="java.lang.Integer">
|
<select id="getTotal" resultType="java.lang.Integer">
|
||||||
@@ -57,11 +56,11 @@
|
|||||||
<if test="cost != null and cost != ''">
|
<if test="cost != null and cost != ''">
|
||||||
cost = #{cost},
|
cost = #{cost},
|
||||||
</if>
|
</if>
|
||||||
<if test="use != null and use != ''">
|
<if test="purposes != null and purposes != ''">
|
||||||
use = #{use},
|
purposes = #{purposes},
|
||||||
</if>
|
</if>
|
||||||
<if test="annex != null and annex != ''">
|
<if test="annexs != null and annexs != ''">
|
||||||
annex = #{annex},
|
annexs = #{annexs},
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</set>
|
</set>
|
||||||
@@ -80,11 +79,11 @@
|
|||||||
<if test="cost != null and cost != ''">
|
<if test="cost != null and cost != ''">
|
||||||
cost,
|
cost,
|
||||||
</if>
|
</if>
|
||||||
<if test="use != null and use != ''">
|
<if test="purposes != null and purposes != ''">
|
||||||
use,
|
purposes,
|
||||||
</if>
|
</if>
|
||||||
<if test="annex != null and annex != ''">
|
<if test="annexs != null and annexs != ''">
|
||||||
annex,
|
annexs,
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</trim>
|
</trim>
|
||||||
@@ -99,11 +98,11 @@
|
|||||||
<if test="cost != null and cost != ''">
|
<if test="cost != null and cost != ''">
|
||||||
#{cost},
|
#{cost},
|
||||||
</if>
|
</if>
|
||||||
<if test="use != null and use != ''">
|
<if test="purposes != null and purposes != ''">
|
||||||
#{use},
|
#{purposes},
|
||||||
</if>
|
</if>
|
||||||
<if test="annex != null and annex != ''">
|
<if test="annexs != null and annexs != ''">
|
||||||
#{annex},
|
#{annexs},
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</trim>
|
</trim>
|
||||||
|
|||||||
Reference in New Issue
Block a user