update
This commit is contained in:
parent
4f0b6463d5
commit
669e023adf
|
@ -58,6 +58,9 @@ public class Organization extends BaseEntity{
|
||||||
@ApiModelProperty(value = "类型")
|
@ApiModelProperty(value = "类型")
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "单据状态")
|
||||||
|
private String documentStatus;
|
||||||
|
|
||||||
@ApiModelProperty(value = "修改人")
|
@ApiModelProperty(value = "修改人")
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String updatedName;
|
private String updatedName;
|
||||||
|
|
|
@ -52,4 +52,6 @@ public class PersonnelIndicators extends BaseEntity {
|
||||||
@ApiModelProperty(value = "编办意见")
|
@ApiModelProperty(value = "编办意见")
|
||||||
private String arrangeFor;
|
private String arrangeFor;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "单据状态")
|
||||||
|
private String documentStatus;
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,9 @@ public class Recruitment extends BaseEntity {
|
||||||
@ApiModelProperty(value = "终审意见")
|
@ApiModelProperty(value = "终审意见")
|
||||||
private String lastInstance;
|
private String lastInstance;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "单据状态")
|
||||||
|
private String documentStatus;
|
||||||
|
|
||||||
@ApiModelProperty(value = "企业名称")
|
@ApiModelProperty(value = "企业名称")
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String companyName;
|
private String companyName;
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.ydool.staff.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.collection.CollectionUtil;
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
|
import cn.hutool.core.util.IdcardUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
@ -66,6 +67,9 @@ public class DirectorsSupervisorsServiceImpl extends BaseService<DirectorsSuperv
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public AjaxResult saveDirectorsSupervisors(DirectorsSupervisors directorsSupervisors) {
|
public AjaxResult saveDirectorsSupervisors(DirectorsSupervisors directorsSupervisors) {
|
||||||
|
if (!IdcardUtil.isValidCard(directorsSupervisors.getIdentityCard())) {
|
||||||
|
return AjaxResult.fail().msg("身份证号格式不正确!");
|
||||||
|
}
|
||||||
List<String> list = new ArrayList<>();
|
List<String> list = new ArrayList<>();
|
||||||
List<AttachmentDto> attachmentList = directorsSupervisors.getAttachmentDtoList();
|
List<AttachmentDto> attachmentList = directorsSupervisors.getAttachmentDtoList();
|
||||||
for (AttachmentDto attachment : attachmentList) {
|
for (AttachmentDto attachment : attachmentList) {
|
||||||
|
|
|
@ -34,6 +34,8 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
|
||||||
OrganizationMapper organizationMapper;
|
OrganizationMapper organizationMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
UserMapper userMapper;
|
UserMapper userMapper;
|
||||||
|
@Autowired
|
||||||
|
CompanyNameMapper companyNameMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult selectOrganizationList(Page<Organization> page, OrganizationSearch organizationSearch) {
|
public AjaxResult selectOrganizationList(Page<Organization> page, OrganizationSearch organizationSearch) {
|
||||||
|
@ -44,6 +46,7 @@ public class OrganizationServiceImpl extends BaseService<OrganizationMapper, Org
|
||||||
Page<Organization> selectPage = organizationMapper.selectPage(page, organizationLambdaQueryWrapper);
|
Page<Organization> selectPage = organizationMapper.selectPage(page, organizationLambdaQueryWrapper);
|
||||||
for (Organization record : selectPage.getRecords()) {
|
for (Organization record : selectPage.getRecords()) {
|
||||||
record.setUpdatedName(userMapper.selectById(record.getUpdatedId()).getUserName());
|
record.setUpdatedName(userMapper.selectById(record.getUpdatedId()).getUserName());
|
||||||
|
record.setCompanyId(companyNameMapper.selectById(record.getCompanyId()).getCompanyName());
|
||||||
}
|
}
|
||||||
return AjaxResult.ok().data(selectPage);
|
return AjaxResult.ok().data(selectPage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue