默认审核通过
parent
3bd6fde865
commit
bed732b45b
|
|
@ -63,7 +63,7 @@ public class BizCompanyService extends ServiceImpl<BizCompanyMapper, BizCompanyE
|
||||||
public Long add(AddBizCompanyParam addBizCompanyParam) {
|
public Long add(AddBizCompanyParam addBizCompanyParam) {
|
||||||
AppProperties.DefaultPlace defaultPlace = appProperties.getDefaultPlace();
|
AppProperties.DefaultPlace defaultPlace = appProperties.getDefaultPlace();
|
||||||
BizCompanyEntity bizCompanyEntity = BeanUtil.copyProperties(addBizCompanyParam, BizCompanyEntity.class)
|
BizCompanyEntity bizCompanyEntity = BeanUtil.copyProperties(addBizCompanyParam, BizCompanyEntity.class)
|
||||||
.setAuditStatus(AuditStatus.DaiShenHe)
|
.setAuditStatus(AuditStatus.TongGuo)
|
||||||
.setProvince(defaultPlace.getProvince())
|
.setProvince(defaultPlace.getProvince())
|
||||||
.setCity(defaultPlace.getCity())
|
.setCity(defaultPlace.getCity())
|
||||||
.setProvinceName(defaultPlace.getProvinceName())
|
.setProvinceName(defaultPlace.getProvinceName())
|
||||||
|
|
@ -89,11 +89,10 @@ public class BizCompanyService extends ServiceImpl<BizCompanyMapper, BizCompanyE
|
||||||
AppProperties.DefaultPlace defaultPlace = appProperties.getDefaultPlace();
|
AppProperties.DefaultPlace defaultPlace = appProperties.getDefaultPlace();
|
||||||
|
|
||||||
BizCompanyEntity bizCompanyEntity = BeanUtil.copyProperties(modifyBizCompanyParam, BizCompanyEntity.class)
|
BizCompanyEntity bizCompanyEntity = BeanUtil.copyProperties(modifyBizCompanyParam, BizCompanyEntity.class)
|
||||||
.setAuditStatus(AuditStatus.DaiShenHe)
|
.setAuditStatus(AuditStatus.TongGuo)
|
||||||
.setProvince(defaultPlace.getProvince())
|
.setProvince(defaultPlace.getProvince())
|
||||||
.setCity(defaultPlace.getCity())
|
.setCity(defaultPlace.getCity())
|
||||||
.setProvinceName(defaultPlace.getProvinceName())
|
.setProvinceName(defaultPlace.getProvinceName())
|
||||||
.setAuditStatus(oldData.getAuditStatus() == AuditStatus.TongGuo ? AuditStatus.TongGuo : AuditStatus.DaiShenHe)
|
|
||||||
.setAuditMemo("")
|
.setAuditMemo("")
|
||||||
.setCityName(defaultPlace.getCityName());
|
.setCityName(defaultPlace.getCityName());
|
||||||
this.updateById(bizCompanyEntity);
|
this.updateById(bizCompanyEntity);
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ public class BizDriverService extends ServiceImpl<BizDriverMapper, BizDriverEnti
|
||||||
|
|
||||||
Long driverUserId = sysUserService.add(user);
|
Long driverUserId = sysUserService.add(user);
|
||||||
BizDriverEntity bizDriverEntity = BeanUtil.copyProperties(addDriverParam, BizDriverEntity.class)
|
BizDriverEntity bizDriverEntity = BeanUtil.copyProperties(addDriverParam, BizDriverEntity.class)
|
||||||
.setAuditStatus(AuditStatus.DaiShenHe)
|
.setAuditStatus(AuditStatus.TongGuo)
|
||||||
.setUserId(driverUserId)
|
.setUserId(driverUserId)
|
||||||
.setCompanyId(searchCompanyResult.getId());
|
.setCompanyId(searchCompanyResult.getId());
|
||||||
this.save(bizDriverEntity);
|
this.save(bizDriverEntity);
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public class BizProjectService extends ServiceImpl<BizProjectMapper, BizProjectE
|
||||||
.eq("audit_status", AuditStatus.TongGuo)
|
.eq("audit_status", AuditStatus.TongGuo)
|
||||||
.eq("deleted", 0));
|
.eq("deleted", 0));
|
||||||
Assert.isTrue(auditStatus == 1, "当前公司未审核"); */
|
Assert.isTrue(auditStatus == 1, "当前公司未审核"); */
|
||||||
this.save(bizProjectEntity.setAuditStatus(AuditStatus.DaiShenHe));
|
this.save(bizProjectEntity.setAuditStatus(AuditStatus.TongGuo));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ public class BizTruckService extends ServiceImpl<BizTruckMapper, BizTruckEntity>
|
||||||
*/
|
*/
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void add(BizTruckEntity bizTruckEntity) {
|
public void add(BizTruckEntity bizTruckEntity) {
|
||||||
bizTruckEntity.setAuditStatus(AuditStatus.DaiShenHe);
|
bizTruckEntity.setAuditStatus(AuditStatus.TongGuo);
|
||||||
String licensePlate = bizTruckEntity.getLicensePlate();
|
String licensePlate = bizTruckEntity.getLicensePlate();
|
||||||
boolean exists = this.exists(Wrappers.lambdaQuery(BizTruckEntity.class).eq(BizTruckEntity::getLicensePlate, licensePlate));
|
boolean exists = this.exists(Wrappers.lambdaQuery(BizTruckEntity.class).eq(BizTruckEntity::getLicensePlate, licensePlate));
|
||||||
if (exists) {
|
if (exists) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue