Commit 43873a2b authored by tangwei's avatar tangwei

修改bug

parent cf104b3a
......@@ -23,15 +23,15 @@ public interface FireStationMapper extends BaseMapper<FireStation> {
@Select("<script>"
+ "select * from cb_fire_station where cb_fire_station.is_delete=0 "
+ "<if test='par.name!=null'> and cb_fire_station.name like '%'{par.name}'%' </if>"
+ "<if test='par.bizCompanyId!=null'> and cb_fire_station.biz_company_id = {par.bizCompanyId} </if>"
+ "<if test='par.name!=null'> and cb_fire_station.name like '%'#{par.name}'%' </if>"
+ "<if test='par.bizCompanyId!=null'> and cb_fire_station.biz_company_id = #{par.bizCompanyId} </if>"
+"limit #{pageNum},#{pageSize}"
+ "</script>")
List<FireStationDto>getFireStation(@Param("pageNum")int pageNum,@Param("pageSize")int pageSize,@Param("par")FireStationDto par);
@Select("<script>"
+ "select COUNT(cb_fire_station.sequence_nbr) num from cb_fire_station where cb_fire_station.is_delete=0 "
+ "<if test='par.name!=null'> and cb_fire_station.name like '%'{par.name}'%' </if>"
+ "<if test='par.bizCompanyId!=null'> and cb_fire_station.biz_company_id = {par.bizCompanyId} </if>"
+ "<if test='par.name!=null'> and cb_fire_station.name like '%'#{par.name}'%' </if>"
+ "<if test='par.bizCompanyId!=null'> and cb_fire_station.biz_company_id = #{par.bizCompanyId} </if>"
+ "</script>")
Map<String, Long> getFireStationCount(@Param("pageNum")int pageNum,@Param("pageSize")int pageSize,@Param("par")FireStationDto par);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment