This commit is contained in:
parent
bf461d7880
commit
0b1e0ebda1
Binary file not shown.
|
@ -11,6 +11,9 @@ import lombok.EqualsAndHashCode;
|
|||
@TableName("t_lc_places")
|
||||
public class Places extends BaseEntity {
|
||||
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private String companyId;
|
||||
|
||||
@ApiModelProperty(value = "登记id")
|
||||
private String organizationId;
|
||||
|
||||
|
|
|
@ -311,17 +311,24 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
|
|||
organization.setLastInstance(auditRequest.getAuditOpinion());
|
||||
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.setStatus(Boolean.FALSE);
|
||||
places.setOrganizationId(organization.getId());
|
||||
places.setOdd(DateUtil.format(DateUtil.date(), "yyyyMMddHHmmss" + getNextId()));
|
||||
placesMapper.insert(places);
|
||||
}
|
||||
}
|
||||
// 生成单号
|
||||
Places places = new Places();
|
||||
places.setStatus(Boolean.FALSE);
|
||||
places.setCompanyId(organization.getCompanyId());
|
||||
places.setOrganizationId(organization.getId());
|
||||
places.setOdd(DateUtil.format(DateUtil.date(), "yyyyMMddHHmmss" + getNextId()));
|
||||
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.setStatus(Boolean.FALSE);
|
||||
workFlowNotice.setFlowType(ArgsConst.ORGANIZATION);
|
||||
|
|
|
@ -16,7 +16,7 @@ spring:
|
|||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
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
|
||||
password: Wang09211108
|
||||
druid:
|
||||
|
|
Loading…
Reference in New Issue