app报名相关接口修改

This commit is contained in:
ly19960718 2021-05-07 13:45:13 +08:00
parent cb46ff719c
commit c4205186fd
5 changed files with 42 additions and 7 deletions

View File

@ -84,7 +84,8 @@ public class ApplyAuditLogAppController extends DefaultBaseController {
@ApiOperation(value = "报名信息审核日志列表", notes = "报名信息审核日志列表接口") @ApiOperation(value = "报名信息审核日志列表", notes = "报名信息审核日志列表接口")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "token", value = "token", paramType = "header") @ApiImplicitParam(name = "token", value = "token", paramType = "header"),
@ApiImplicitParam(name = "applyId", value = "applyId", paramType = "applyId")
}) })
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("list") @GetMapping("list")

View File

@ -20,6 +20,8 @@ public class ApplyAuditLogDTO {
private String applyId; private String applyId;
@ApiModelProperty(name = "applyAuditState", value = "审核结果 2审核通过 4报名完成-1审核不通过") @ApiModelProperty(name = "applyAuditState", value = "审核结果 2审核通过 4报名完成-1审核不通过")
private Integer applyAuditState; private Integer applyAuditState;
@ApiModelProperty(name = "applyAuditStateName", value = "审核结果中文名称")
private String applyAuditStateName;
@ApiModelProperty(name = "applyAuditExplain", value = "审核说明") @ApiModelProperty(name = "applyAuditExplain", value = "审核说明")
private String applyAuditExplain; private String applyAuditExplain;
@ApiModelProperty(name = "applyAuditUserId", value = "审核人ID") @ApiModelProperty(name = "applyAuditUserId", value = "审核人ID")
@ -95,5 +97,11 @@ public class ApplyAuditLogDTO {
this.isDelete = isDelete; this.isDelete = isDelete;
} }
public String getApplyAuditStateName() {
return applyAuditStateName;
}
public void setApplyAuditStateName(String applyAuditStateName) {
this.applyAuditStateName = applyAuditStateName;
}
} }

View File

@ -162,7 +162,9 @@ public class ApplyAuditLogServiceImpl extends DefaultBaseService implements IApp
@Override @Override
public List<ApplyAuditLogDTO> list(Map<String, Object> params) { public List<ApplyAuditLogDTO> list(Map<String, Object> params) {
return applyAuditLogDao.list(params); List<ApplyAuditLogDTO> list = applyAuditLogDao.list(params);
setStateName(list);
return list;
} }
@Override @Override
@ -189,4 +191,28 @@ public class ApplyAuditLogServiceImpl extends DefaultBaseService implements IApp
return count == null ? 0 : count; return count == null ? 0 : count;
} }
public void setStateName(List<ApplyAuditLogDTO> list){
for (ApplyAuditLogDTO applyAuditLogDTO : list) {
if(applyAuditLogDTO.getApplyAuditState() == 0){
applyAuditLogDTO.setApplyAuditStateName("用户申请报名");
}
if(applyAuditLogDTO.getApplyAuditState() == 1){
applyAuditLogDTO.setApplyAuditStateName("用户撤回报名");
}
if(applyAuditLogDTO.getApplyAuditState() == 2){
applyAuditLogDTO.setApplyAuditStateName("审核通过");
}
if(applyAuditLogDTO.getApplyAuditState() == -1){
applyAuditLogDTO.setApplyAuditStateName("审核不通过");
}
if(applyAuditLogDTO.getApplyAuditState() == 3){
applyAuditLogDTO.setApplyAuditStateName("用户以报道");
}
if(applyAuditLogDTO.getApplyAuditState() == 4){
applyAuditLogDTO.setApplyAuditStateName("报名完成");
}
}
}
} }

View File

@ -65,7 +65,7 @@
<div class="layui-col-md4"> <div class="layui-col-md4">
<label class="layui-form-label">出生日期</label> <label class="layui-form-label">出生日期</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" id="applyDataBirth" name="applyDataBirth" class="layui-input" value="" placeholder="无" lay-verify="required" readonly style="cursor: pointer;"> <input type="text" id="applyDataBirth" name="applyDataBirth" class="layui-input" value="" placeholder="无" readonly style="cursor: pointer;">
</div> </div>
</div> </div>
</div> </div>
@ -73,7 +73,7 @@
<div class="layui-col-md4"> <div class="layui-col-md4">
<label class="layui-form-label">职务</label> <label class="layui-form-label">职务</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" id="applyPosition" name="applyPosition" class="layui-input" value="" placeholder="无" lay-verify="required" readonly style="cursor: pointer;"> <input type="text" id="applyPosition" name="applyPosition" class="layui-input" value="" placeholder="无" readonly style="cursor: pointer;">
</div> </div>
</div> </div>
<div class="layui-col-md4"> <div class="layui-col-md4">
@ -93,7 +93,7 @@
<div class="layui-col-md4"> <div class="layui-col-md4">
<label class="layui-form-label">证件类型</label> <label class="layui-form-label">证件类型</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" id="applyCardTypeName" name="applyCardTypeName" class="layui-input" value="" placeholder="无" lay-verify="required" readonly style="cursor: pointer;"> <input type="text" id="applyCardTypeName" name="applyCardTypeName" class="layui-input" value="" placeholder="无" readonly style="cursor: pointer;">
</div> </div>
</div> </div>
<div class="layui-col-md4"> <div class="layui-col-md4">
@ -145,7 +145,7 @@
<div class="layui-col-md6"> <div class="layui-col-md6">
<label class="layui-form-label">单位电话</label> <label class="layui-form-label">单位电话</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="number" id="applyUnitPhone" name="applyUnitPhone" class="layui-input" value="" placeholder="无" lay-verify="required" readonly="readonly"> <input type="text" id="applyUnitPhone" name="applyUnitPhone" class="layui-input" value="" placeholder="无" readonly="readonly">
</div> </div>
</div> </div>
</div> </div>

View File

@ -148,7 +148,7 @@
<div class="layui-col-md6"> <div class="layui-col-md6">
<label class="layui-form-label">单位电话</label> <label class="layui-form-label">单位电话</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="number" id="applyUnitPhone" name="applyUnitPhone" class="layui-input" value="" placeholder="无" lay-verify="required" readonly="readonly"> <input type="text" id="applyUnitPhone" name="applyUnitPhone" class="layui-input" value="" placeholder="无" lay-verify="required" readonly="readonly">
</div> </div>
</div> </div>
</div> </div>