parent
917dd21716
commit
5fcd8e3140
|
@ -53,7 +53,7 @@ public class ApiCwhContactVoterController extends ApiBaseController {
|
|||
@DynamicResponseParameters(properties = {@DynamicParameter(value = "常委会联系选民", name = "data", dataTypeClass =
|
||||
CwhContactVoterDto.class)})
|
||||
@ApiOperation("常委会联系选民列表")
|
||||
@GetMapping("cwhContactVoterCommentPage")
|
||||
@GetMapping("cwhContactVoterPage")
|
||||
public void cwhContactVoterPage(String type) {
|
||||
LambdaQueryWrapper<CwhContactVoter> qw = new LambdaQueryWrapper<CwhContactVoter>();
|
||||
if (!"underWay".equals(type) && !"public".equals(type)) throw new ResultException(Ret.fail("类型不支持"));
|
||||
|
|
|
@ -51,8 +51,8 @@ public class ApiDbContactVoterController extends ApiBaseController {
|
|||
@DynamicResponseParameters(properties = {@DynamicParameter(value = "代表联系选民", name = "data", dataTypeClass =
|
||||
DbContactVoterDto.class)})
|
||||
@ApiOperation("代表联系选民列表")
|
||||
@GetMapping("dbContactVoterCommentPage")
|
||||
public void dbContactVoterCommentPage(String type) {
|
||||
@GetMapping("dbContactVoterPage")
|
||||
public void dbContactVoterPage(String type) {
|
||||
LambdaQueryWrapper<DbContactVoter> qw = new LambdaQueryWrapper<DbContactVoter>();
|
||||
if (!"underWay".equals(type) && !"public".equals(type)) throw new ResultException(Ret.fail("类型不支持"));
|
||||
if ("underWay".equals(type)) qw.lt(DbContactVoter::getState, DbContactVoter.STATE_PUBLIC);
|
||||
|
|
Loading…
Reference in New Issue