Commit fb5a7d88 authored by 徐俊's avatar 徐俊

xujun

parent 19e3d639
...@@ -82,9 +82,6 @@ public class ComTalentApplyController extends BaseController<ComTalentApplyServi ...@@ -82,9 +82,6 @@ public class ComTalentApplyController extends BaseController<ComTalentApplyServi
@PreAuthorize("hasAnyRole('REPORT','GOV','ADMIN')") @PreAuthorize("hasAnyRole('REPORT','GOV','ADMIN')")
@Logs(value = CommonEnum.logType.talentApply) @Logs(value = CommonEnum.logType.talentApply)
public ResponseDataModel<String> save(@RequestBody ComTalentApplyDTO comTalentApplyDTO, BindingResult bindingResult) { public ResponseDataModel<String> save(@RequestBody ComTalentApplyDTO comTalentApplyDTO, BindingResult bindingResult) {
comTalentApplyDTO.setAppPersonId(SecurityUserHolder.getPersonId());
comTalentApplyDTO.setAppUnitId(SecurityUserHolder.getUnitId());
return ResponseDataModel.ok(comTalentApplyService.save(comTalentApplyDTO)); return ResponseDataModel.ok(comTalentApplyService.save(comTalentApplyDTO));
} }
} }
...@@ -513,8 +513,7 @@ public class ComPersonServiceImpl extends BaseServiceImpl<ComPersonDAO, ComPerso ...@@ -513,8 +513,7 @@ public class ComPersonServiceImpl extends BaseServiceImpl<ComPersonDAO, ComPerso
public String insertOrUpdate(ComTalentApplyDTO dto) { public String insertOrUpdate(ComTalentApplyDTO dto) {
ComPerson model = new ComPerson(); ComPerson model = new ComPerson();
if (Objects.nonNull(dto.getPersonId())) { if (Objects.nonNull(dto.getPersonId())) {
model.setId(dto.getPersonId()); model = this.getById(dto.getPersonId());
model = this.getEntity(model);
} }
String id = ""; String id = "";
if (null == model) { if (null == model) {
......
...@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yiboshi.arch.exception.BusinessException; import com.yiboshi.arch.exception.BusinessException;
import com.yiboshi.science.base.BaseServiceImpl; import com.yiboshi.science.base.BaseServiceImpl;
import com.yiboshi.science.base.Pagination; import com.yiboshi.science.base.Pagination;
import com.yiboshi.science.config.security.SecurityUserHolder;
import com.yiboshi.science.dao.ComTalentApplyDAO; import com.yiboshi.science.dao.ComTalentApplyDAO;
import com.yiboshi.science.entity.ComTalentApply; import com.yiboshi.science.entity.ComTalentApply;
import com.yiboshi.science.entity.SystemParameter; import com.yiboshi.science.entity.SystemParameter;
...@@ -128,12 +129,16 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO ...@@ -128,12 +129,16 @@ public class ComTalentApplyServiceImpl extends BaseServiceImpl<ComTalentApplyDAO
public ComTalentApplyDTO getNewTalentApply() { public ComTalentApplyDTO getNewTalentApply() {
ComTalentApplyDTO dto = new ComTalentApplyDTO(); ComTalentApplyDTO dto = new ComTalentApplyDTO();
dto.setReportYear(comBatchService.getReportYear(null, CommonEnum.timeType.talentApply.getCode()));
dto.setCompleteStatus("0,0,0,0,0,0");
List<ComTalentBudgetDTO> bugetList = comTalentBudgetService.getList(); List<ComTalentBudgetDTO> bugetList = comTalentBudgetService.getList();
dto.setBudgetList(bugetList); dto.setBudgetList(bugetList);
dto.setReportYear(comBatchService.getReportYear(null, CommonEnum.timeType.talentApply.getCode()));
dto.setCompleteStatus("0,0,0,0,0,0");
dto.setTalentState(CommonEnum.projState.draft.getCode());
dto.setAppPersonId(SecurityUserHolder.getPersonId());
dto.setAppUnitId(SecurityUserHolder.getUnitId());
return dto; return dto;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment