修改出租房、房屋管理APP接口根据登录人查询数据
This commit is contained in:
parent
82007e40c2
commit
4596f92039
@ -8,6 +8,8 @@ import com.cm.common.result.ErrorResult;
|
||||
import com.cm.common.result.SuccessResult;
|
||||
import com.cm.common.result.SuccessResultData;
|
||||
import com.cm.common.result.SuccessResultList;
|
||||
import com.cm.common.token.app.AppTokenManager;
|
||||
import com.cm.common.token.app.entity.AppTokenUser;
|
||||
import com.cm.population.pojo.dtos.buildinghouse.BuildingHouseDTO;
|
||||
import com.cm.population.pojo.vos.buildinghouse.BuildingHouseVO;
|
||||
import com.cm.population.service.buildinghouse.IBuildingHouseService;
|
||||
@ -106,6 +108,8 @@ public class BuildingHouseAppController extends AbstractController {
|
||||
@GetMapping("listpagebuildinghouse")
|
||||
public SuccessResultList<List<BuildingHouseDTO>> listPage(@RequestHeader("token") String token, ListPage page) {
|
||||
Map<String, Object> params = requestParams();
|
||||
AppTokenUser appTokenUser = AppTokenManager.getInstance().getToken(token).getAppTokenUser();
|
||||
params.put("creator",appTokenUser.getId());
|
||||
page.setParams(params);
|
||||
return buildingHouseService.listPage(page);
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ import com.cm.common.result.ErrorResult;
|
||||
import com.cm.common.result.SuccessResult;
|
||||
import com.cm.common.result.SuccessResultData;
|
||||
import com.cm.common.result.SuccessResultList;
|
||||
import com.cm.common.token.app.AppTokenManager;
|
||||
import com.cm.common.token.app.entity.AppTokenUser;
|
||||
import com.cm.population.pojo.dtos.citybuilding.CityBuildingDTO;
|
||||
import com.cm.population.pojo.vos.citybuilding.CityBuildingVO;
|
||||
import com.cm.population.service.citybuilding.ICityBuildingService;
|
||||
@ -104,6 +106,8 @@ public class CityBuildingAppController extends AbstractController {
|
||||
@GetMapping("listpagecitybuilding")
|
||||
public SuccessResultList<List<CityBuildingDTO>> listPageCityBuilding(@RequestHeader("token") String token, ListPage page) throws SearchException {
|
||||
Map<String, Object> params = requestParams();
|
||||
AppTokenUser appTokenUser = AppTokenManager.getInstance().getToken(token).getAppTokenUser();
|
||||
params.put("creator",appTokenUser.getId());
|
||||
page.setParams(params);
|
||||
return cityBuildingService.listPageCityBuilding(page);
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ import com.cm.common.result.ErrorResult;
|
||||
import com.cm.common.result.SuccessResult;
|
||||
import com.cm.common.result.SuccessResultData;
|
||||
import com.cm.common.result.SuccessResultList;
|
||||
import com.cm.common.token.app.AppTokenManager;
|
||||
import com.cm.common.token.app.entity.AppTokenUser;
|
||||
import com.cm.population.pojo.dtos.rentalhousing.RentalHousingDTO;
|
||||
import com.cm.population.pojo.vos.rentalhousing.RentalHousingVO;
|
||||
import com.cm.population.service.rentalhousing.IRentalHousingService;
|
||||
@ -105,6 +107,8 @@ public class RentalHousingAppController extends AbstractController {
|
||||
@GetMapping("listpagerentalhousing")
|
||||
public SuccessResultList<List<RentalHousingDTO>> listPageRentalHousing(@RequestHeader("token") String token, ListPage page) throws SearchException {
|
||||
Map<String, Object> params = requestParams();
|
||||
AppTokenUser appTokenUser = AppTokenManager.getInstance().getToken(token).getAppTokenUser();
|
||||
params.put("creator",appTokenUser.getId());
|
||||
page.setParams(params);
|
||||
return rentalHousingService.listPageRentalHousing(page);
|
||||
}
|
||||
|
@ -259,6 +259,9 @@
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
||||
</if>
|
||||
<if test="creator != null and creator != ''">
|
||||
AND FIND_IN_SET(t1.creator, #{creator})
|
||||
</if>
|
||||
<if test="buildingHouseIds != null and buildingHouseIds.size > 0">
|
||||
AND
|
||||
t1.building_house_id IN
|
||||
|
@ -172,13 +172,8 @@
|
||||
t1.district_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
||||
<if test="creator != null and creator != ''">
|
||||
AND FIND_IN_SET(t1.creator, #{creator})
|
||||
</if>
|
||||
<if test="cityBuildingIds != null and cityBuildingIds.size > 0">
|
||||
AND
|
||||
|
@ -301,13 +301,8 @@
|
||||
t1.card_number LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="startTime != null and startTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ >= ]]> #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND
|
||||
LEFT(t1.gmt_create, 10) <![CDATA[ <= ]]> #{endTime}
|
||||
<if test="creator != null and creator != ''">
|
||||
AND FIND_IN_SET(t1.creator, #{creator})
|
||||
</if>
|
||||
<if test="rentalHousingIds != null and rentalHousingIds.size > 0">
|
||||
AND
|
||||
|
Loading…
Reference in New Issue
Block a user