Merge remote-tracking branch 'origin/master'

This commit is contained in:
lijiaqi 2023-10-25 14:12:34 +08:00
commit 9b3884c634
5 changed files with 24 additions and 12 deletions

Binary file not shown.

View File

@ -265,6 +265,8 @@
<groupId>e-iceblue</groupId>
<artifactId>spire.doc.free</artifactId>
<version>5.2.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/spire.doc.free-5.2.0.jar</systemPath>
</dependency>
</dependencies>

View File

@ -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;

View File

@ -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);

View File

@ -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: