代表联系选民

常委会联系选民
This commit is contained in:
lijiaqi 2022-11-24 10:58:53 +08:00
parent 917dd21716
commit 5fcd8e3140
2 changed files with 3 additions and 3 deletions

View File

@ -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("类型不支持"));

View File

@ -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);