~
This commit is contained in:
+12
-11
@@ -15,13 +15,13 @@ import com.adc.da.base.web.BaseController;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 标准制修订补助资金收支统计支出表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-11-12
|
||||
*/
|
||||
* <p>
|
||||
* 标准制修订补助资金收支统计支出表 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-11-12
|
||||
*/
|
||||
@RestController
|
||||
@Api(description = "|WgdZcb|")
|
||||
@RequestMapping("api/wgdCensusLeo/wgd-zcb")
|
||||
@@ -30,13 +30,14 @@ public class WgdZcbController extends BaseController<WgdZcb> {
|
||||
IWgdZcbService iWgdZcbService;
|
||||
|
||||
@GetMapping("/getAllZcbs")
|
||||
public ResponseMessage<Object> getAllWgdZcbs(){//查询所有
|
||||
public ResponseMessage<Object> getAllWgdZcbs() {//查询所有
|
||||
return Result.success(iWgdZcbService.getAllWgdZcbs());
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("查询")
|
||||
@GetMapping("/queryAllZcbs")
|
||||
public ResponseMessage<Object> queryAllWgdZcbs(WgdZcb wgdZcb){//多条件查询
|
||||
public ResponseMessage<Object> queryAllWgdZcbs(WgdZcb wgdZcb) {//多条件查询
|
||||
List<WgdZcb> wgdZcbs = iWgdZcbService.queryAllWgdZcbs(wgdZcb);
|
||||
PageInfo pageInfo = getPageInfo(wgdZcb.getPager(),wgdZcbs);
|
||||
return Result.success(pageInfo);
|
||||
@@ -60,13 +61,13 @@ public class WgdZcbController extends BaseController<WgdZcb> {
|
||||
}
|
||||
|
||||
@PostMapping("/delZcb")
|
||||
ResponseMessage<Object> deleteWgdZcb(String id){//删除
|
||||
ResponseMessage<Object> deleteWgdZcb(String id) {//删除
|
||||
return Result.success(iWgdZcbService.deleteWgdZcb(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@PostMapping("/delZcbs")
|
||||
ResponseMessage<Object> deleteWgdZcbs(String ids){//批量删除
|
||||
ResponseMessage<Object> deleteWgdZcbs(String ids) {//批量删除
|
||||
return Result.success(iWgdZcbService.deleteWgdZcbs(ids));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,10 +35,9 @@ public class WgdZcb extends BasePage {
|
||||
private String cost;
|
||||
|
||||
@ApiModelProperty(value = "用途")
|
||||
private String use;
|
||||
private String purposes;
|
||||
|
||||
@ApiModelProperty(value = "详细附件")
|
||||
private String annex;
|
||||
|
||||
private String annexs;
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<mapper namespace="com.adc.da.slrs.wgdCensusLeo.dao.WgdZcbDao">
|
||||
<!-- 基础信息-->
|
||||
<sql id="BaseInfo">
|
||||
id,name,cost,use,annex
|
||||
id,name,cost,purposes,annexs
|
||||
</sql>
|
||||
<!-- 查询条件-->
|
||||
<sql id="Conditions">
|
||||
@@ -12,18 +12,17 @@
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
and name like concat('%',#{name},'%')
|
||||
and name = #{name}
|
||||
</if>
|
||||
<if test="cost != null and cost != ''">
|
||||
and cost like concat('%',#{cost},'%')
|
||||
and cost = #{cost}
|
||||
</if>
|
||||
<if test="use != null and use != ''">
|
||||
and use like concat('%',#{use},'%')
|
||||
<if test="purposes != null and purposes != ''">
|
||||
and purposes = #{purposes}
|
||||
</if>
|
||||
<if test="annex != null and annex != ''">
|
||||
and annex = #{annex}
|
||||
<if test="annexs != null and annexs != ''">
|
||||
and annexs = #{annexs}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
</sql>
|
||||
<select id="getTotal" resultType="java.lang.Integer">
|
||||
@@ -57,13 +56,13 @@
|
||||
<if test="cost != null and cost != ''">
|
||||
cost = #{cost},
|
||||
</if>
|
||||
<if test="use != null and use != ''">
|
||||
use = #{use},
|
||||
<if test="purposes != null and purposes != ''">
|
||||
purposes = #{purposes},
|
||||
</if>
|
||||
<if test="annex != null and annex != ''">
|
||||
annex = #{annex},
|
||||
<if test="annexs != null and annexs != ''">
|
||||
annexs = #{annexs},
|
||||
</if>
|
||||
|
||||
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@@ -80,13 +79,13 @@
|
||||
<if test="cost != null and cost != ''">
|
||||
cost,
|
||||
</if>
|
||||
<if test="use != null and use != ''">
|
||||
use,
|
||||
<if test="purposes != null and purposes != ''">
|
||||
purposes,
|
||||
</if>
|
||||
<if test="annex != null and annex != ''">
|
||||
annex,
|
||||
<if test="annexs != null and annexs != ''">
|
||||
annexs,
|
||||
</if>
|
||||
|
||||
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -99,11 +98,11 @@
|
||||
<if test="cost != null and cost != ''">
|
||||
#{cost},
|
||||
</if>
|
||||
<if test="use != null and use != ''">
|
||||
#{use},
|
||||
<if test="purposes != null and purposes != ''">
|
||||
#{purposes},
|
||||
</if>
|
||||
<if test="annex != null and annex != ''">
|
||||
#{annex},
|
||||
<if test="annexs != null and annexs != ''">
|
||||
#{annexs},
|
||||
</if>
|
||||
|
||||
</trim>
|
||||
|
||||
Reference in New Issue
Block a user