This commit is contained in:
liao
2021-11-23 09:11:03 +08:00
parent 5abbc7edd9
commit 3689771c29
3 changed files with 35 additions and 36 deletions
@@ -15,13 +15,13 @@ import com.adc.da.base.web.BaseController;
import java.util.List; import java.util.List;
/** /**
* <p> * <p>
* 标准制修订补助资金收支统计支出表 前端控制器 * 标准制修订补助资金收支统计支出表 前端控制器
* </p> * </p>
* *
* @author super_liu * @author super_liu
* @since 2021-11-12 * @since 2021-11-12
*/ */
@RestController @RestController
@Api(description = "|WgdZcb|") @Api(description = "|WgdZcb|")
@RequestMapping("api/wgdCensusLeo/wgd-zcb") @RequestMapping("api/wgdCensusLeo/wgd-zcb")
@@ -30,13 +30,14 @@ public class WgdZcbController extends BaseController<WgdZcb> {
IWgdZcbService iWgdZcbService; IWgdZcbService iWgdZcbService;
@GetMapping("/getAllZcbs") @GetMapping("/getAllZcbs")
public ResponseMessage<Object> getAllWgdZcbs(){//查询所有 public ResponseMessage<Object> getAllWgdZcbs() {//查询所有
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) {//多条件查询
List<WgdZcb> wgdZcbs = iWgdZcbService.queryAllWgdZcbs(wgdZcb); List<WgdZcb> wgdZcbs = iWgdZcbService.queryAllWgdZcbs(wgdZcb);
PageInfo pageInfo = getPageInfo(wgdZcb.getPager(),wgdZcbs); PageInfo pageInfo = getPageInfo(wgdZcb.getPager(),wgdZcbs);
return Result.success(pageInfo); return Result.success(pageInfo);
@@ -60,13 +61,13 @@ public class WgdZcbController extends BaseController<WgdZcb> {
} }
@PostMapping("/delZcb") @PostMapping("/delZcb")
ResponseMessage<Object> deleteWgdZcb(String id){//删除 ResponseMessage<Object> deleteWgdZcb(String id) {//删除
return Result.success(iWgdZcbService.deleteWgdZcb(id)); return Result.success(iWgdZcbService.deleteWgdZcb(id));
} }
@ApiOperation("删除") @ApiOperation("删除")
@PostMapping("/delZcbs") @PostMapping("/delZcbs")
ResponseMessage<Object> deleteWgdZcbs(String ids){//批量删除 ResponseMessage<Object> deleteWgdZcbs(String ids) {//批量删除
return Result.success(iWgdZcbService.deleteWgdZcbs(ids)); return Result.success(iWgdZcbService.deleteWgdZcbs(ids));
} }
} }
@@ -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>