|
@@ -56,12 +56,14 @@ public class BkFirstScreenController extends BaseController {
|
56
|
56
|
public ResponseBean bkFirstScreenList(@ApiParam("客户端") @PathVariable String client,
|
57
|
57
|
@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
58
|
58
|
@ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
|
59
|
+ @ApiParam("城市") @RequestParam(value ="cityId", required = false) String cityId,
|
59
|
60
|
HttpServletRequest request) throws Exception{
|
60
|
61
|
|
61
|
62
|
IPage<BkFirstScreen> pg = new Page<>(pageNum, pageSize);
|
62
|
63
|
QueryWrapper<BkFirstScreen> queryWrapper = new QueryWrapper<>();
|
63
|
|
- queryWrapper.gt("status", CommConstant.STATUS_DELETE);
|
64
|
64
|
queryWrapper.eq("org_id", getOrgId(request));
|
|
65
|
+ queryWrapper.eq(!StringUtils.isEmpty(cityId), "city_id", cityId);
|
|
66
|
+ queryWrapper.gt("status", CommConstant.STATUS_DELETE);
|
65
|
67
|
|
66
|
68
|
if ("admin".equals(client)) {
|
67
|
69
|
List<String> institutionIds = getInstitutionIds(request);
|
|
@@ -116,9 +118,11 @@ public class BkFirstScreenController extends BaseController {
|
116
|
118
|
*/
|
117
|
119
|
@RequestMapping(value="/admin/bkFirstScreen/{id}",method= RequestMethod.PUT)
|
118
|
120
|
@ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
|
119
|
|
- public ResponseBean bkFirstScreenUpdate(@ApiParam("对象ID") @PathVariable Integer id,
|
|
121
|
+ public ResponseBean bkFirstScreenUpdate(@ApiParam("对象ID") @PathVariable String id,
|
120
|
122
|
@ApiParam("更新内容") @RequestBody BkFirstScreen bkFirstScreen) throws Exception{
|
121
|
123
|
|
|
124
|
+ bkFirstScreen.setScreenId(id);
|
|
125
|
+
|
122
|
126
|
if (iBkFirstScreenService.updateById(bkFirstScreen)){
|
123
|
127
|
return ResponseBean.success(iBkFirstScreenService.getById(id));
|
124
|
128
|
}else {
|