This commit is contained in:
zhuyy 2023-10-25 13:30:17 +08:00
parent bf461d7880
commit 0b1e0ebda1
4 changed files with 22 additions and 12 deletions

Binary file not shown.

View File

@ -11,6 +11,9 @@ import lombok.EqualsAndHashCode;
@TableName("t_lc_places") @TableName("t_lc_places")
public class Places extends BaseEntity { public class Places extends BaseEntity {
@ApiModelProperty(value = "企业id")
private String companyId;
@ApiModelProperty(value = "登记id") @ApiModelProperty(value = "登记id")
private String organizationId; private String organizationId;

View File

@ -311,17 +311,24 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
organization.setLastInstance(auditRequest.getAuditOpinion()); organization.setLastInstance(auditRequest.getAuditOpinion());
organizationMapper.updateById(organization); organizationMapper.updateById(organization);
} }
List<Recruitment> recruitments = recruitmentMapper.selectList(Wrappers.lambdaQuery(Recruitment.class).eq(Recruitment::getCompanyId, organization.getId())); // 生成单号
List<Long> list = recruitments.stream().map(Recruitment::getPlaces).collect(Collectors.toList());
for (Long aLong : list) {
for (int i = 0; i < aLong.intValue(); i++) {
Places places = new Places(); Places places = new Places();
places.setStatus(Boolean.FALSE); places.setStatus(Boolean.FALSE);
places.setCompanyId(organization.getCompanyId());
places.setOrganizationId(organization.getId()); places.setOrganizationId(organization.getId());
places.setOdd(DateUtil.format(DateUtil.date(), "yyyyMMddHHmmss" + getNextId())); places.setOdd(DateUtil.format(DateUtil.date(), "yyyyMMddHHmmss" + getNextId()));
placesMapper.insert(places); placesMapper.insert(places);
} // List<Recruitment> recruitments = recruitmentMapper.selectList(Wrappers.lambdaQuery(Recruitment.class).eq(Recruitment::getCompanyId, organization.getId()));
} // List<Long> list = recruitments.stream().map(Recruitment::getPlaces).collect(Collectors.toList());
// for (Long aLong : list) {
// for (int i = 0; i < aLong.intValue(); i++) {
// Places places = new Places();
// places.setStatus(Boolean.FALSE);
// places.setOrganizationId(organization.getId());
// places.setOdd(DateUtil.format(DateUtil.date(), "yyyyMMddHHmmss" + getNextId()));
// placesMapper.insert(places);
// }
// }
WorkFlowNotice workFlowNotice = new WorkFlowNotice(); WorkFlowNotice workFlowNotice = new WorkFlowNotice();
workFlowNotice.setStatus(Boolean.FALSE); workFlowNotice.setStatus(Boolean.FALSE);
workFlowNotice.setFlowType(ArgsConst.ORGANIZATION); workFlowNotice.setFlowType(ArgsConst.ORGANIZATION);

View File

@ -16,7 +16,7 @@ spring:
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://127.0.0.1:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true url: jdbc:mysql://192.168.2.24:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root username: root
password: Wang09211108 password: Wang09211108
druid: druid: