学生表修改

This commit is contained in:
ly19960718 2021-05-15 18:53:15 +08:00
parent 3c46ab1cb5
commit e374a9dc56
5 changed files with 26 additions and 11 deletions

View File

@ -29,11 +29,9 @@ public class ApplyPO {
private String applyUnitPhone; private String applyUnitPhone;
private String applyUnitAddress; private String applyUnitAddress;
private String applyUserCardPhoto; private String applyUserCardPhoto;
private String applyPosition; private String applyPosition;
private String applyMajorYear; private String applyMajorYear;
private String applyTechnicalTitles; private String applyTechnicalTitles;
private Integer applyAuditState; private Integer applyAuditState;
private String creator; private String creator;
private String gmtCreate; private String gmtCreate;

View File

@ -35,7 +35,7 @@ public interface IApplyService {
* @param workTypeId * @param workTypeId
* @return * @return
*/ */
List<ApplyDTO> listByInstitutionIdAndWorkTypeId(String institutionId,String workTypeId); List<ApplyPO> listByInstitutionIdAndWorkTypeId(String institutionId,String workTypeId);
/** /**
* 工种培训机构分页列表 * 工种培训机构分页列表

View File

@ -123,14 +123,14 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic
public List<ApplyDTO> listByInstitutionIdAndWorkTypeId(String institutionId,String workTypeId){ public List<ApplyPO> listByInstitutionIdAndWorkTypeId(String institutionId,String workTypeId){
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("applyInstitutionId",institutionId); params.put("applyInstitutionId",institutionId);
params.put("applyWorkTypeId",workTypeId); params.put("applyWorkTypeId",workTypeId);
List<Integer> applyAuditStates = new ArrayList<>(); List<Integer> applyAuditStates = new ArrayList<>();
applyAuditStates.add(2); applyAuditStates.add(2);
params.put("applyAuditStates",applyAuditStates); params.put("applyAuditStates",applyAuditStates);
return this.list(params); return this.listPO(params);
} }
@ -311,7 +311,6 @@ public class ApplyServiceImpl extends DefaultBaseService implements IApplyServic
auditLogVO.setApplyAuditState(0); auditLogVO.setApplyAuditState(0);
auditLogVO.setApplyAuditExplain("用户申请报名"); auditLogVO.setApplyAuditExplain("用户申请报名");
applyAuditLogService.save(token,auditLogVO); applyAuditLogService.save(token,auditLogVO);
return applyId; return applyId;
} }

View File

@ -1,6 +1,7 @@
package cn.com.tenlion.service.applystudents.impl; package cn.com.tenlion.service.applystudents.impl;
import cn.com.tenlion.pojo.dtos.apply.ApplyDTO; import cn.com.tenlion.pojo.dtos.apply.ApplyDTO;
import cn.com.tenlion.pojo.pos.apply.ApplyPO;
import cn.com.tenlion.service.apply.IApplyService; import cn.com.tenlion.service.apply.IApplyService;
import ink.wgink.common.base.DefaultBaseService; import ink.wgink.common.base.DefaultBaseService;
import ink.wgink.exceptions.ParamsException; import ink.wgink.exceptions.ParamsException;
@ -58,13 +59,14 @@ public class ApplyStudentsServiceImpl extends DefaultBaseService implements IApp
throw new ParamsException("参数错误"); throw new ParamsException("参数错误");
} }
List<String> deleteIdList = new ArrayList<>(); List<String> deleteIdList = new ArrayList<>();
List<ApplyDTO> applyDTOList = applyService.listByInstitutionIdAndWorkTypeId(institutionId,workTypeId); List<ApplyPO> applyPOList = applyService.listByInstitutionIdAndWorkTypeId(institutionId,workTypeId);
for (ApplyDTO applyDTO : applyDTOList) { for (ApplyPO applyPO : applyPOList) {
ApplyStudentsVO vo = new ApplyStudentsVO(); ApplyStudentsVO vo = new ApplyStudentsVO();
BeanUtils.copyProperties(vo,applyDTO); BeanUtils.copyProperties(vo,applyPO);
vo.setApplyClassId(classId); vo.setApplyClassId(classId);
this.save(vo); Map<String, Object> params = HashMapUtil.beanToMap(vo);
deleteIdList.add(applyDTO.getApplyId()); applyStudentsDao.save(params);;
deleteIdList.add(applyPO.getApplyId());
} }
applyService.delete(deleteIdList); applyService.delete(deleteIdList);
} }

View File

@ -618,6 +618,22 @@
#{applyIds[${index}]} #{applyIds[${index}]}
</foreach> </foreach>
</if> </if>
<if test="applyInstitutionId != null and applyInstitutionId != ''">
AND
t1.apply_institution_id = #{applyInstitutionId}
</if>
<if test="applyWorkTypeId != null and applyWorkTypeId != ''">
AND
t1.apply_work_type_id = #{applyWorkTypeId}
</if>
<if test="applyAuditStates != null and applyAuditStates.size > 0">
AND
t1.apply_audit_state IN
<foreach collection="applyAuditStates" index="index" open="(" separator="," close=")">
#{applyAuditStates[${index}]}
</foreach>
</if>
ORDER BY t1.gmt_create DESC
</select> </select>
<!-- 报名信息统计 --> <!-- 报名信息统计 -->