Compare commits
2 Commits
87a09f20d1
...
a0e79e24ab
Author | SHA1 | Date |
---|---|---|
|
a0e79e24ab | |
|
06aec0a0cf |
|
@ -127,15 +127,15 @@ public class BusinessTripApprovalController extends BaseController {
|
||||||
List<Long> longs = new ArrayList<>();
|
List<Long> longs = new ArrayList<>();
|
||||||
if (isLeader == 1) {
|
if (isLeader == 1) {
|
||||||
if (dto.getHasOffcialCar() == 1) {
|
if (dto.getHasOffcialCar() == 1) {
|
||||||
approvalProcess.setApprovalStatus(100);
|
approvalProcess.setApprovalStatusH(100);
|
||||||
longs.add(2165L);
|
longs.add(2165L);
|
||||||
} else {
|
} else {
|
||||||
approvalProcess.setApprovalStatus(400);
|
approvalProcess.setApprovalStatusH(400);
|
||||||
longs.add(1660L);
|
longs.add(1660L);
|
||||||
longs.add(1661L);
|
longs.add(1661L);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
approvalProcess.setApprovalStatus(1);
|
approvalProcess.setApprovalStatusH(1);
|
||||||
longs.add(user.getDept().getLeaderId());
|
longs.add(user.getDept().getLeaderId());
|
||||||
}
|
}
|
||||||
addLog(approvalProcess, longs);
|
addLog(approvalProcess, longs);
|
||||||
|
@ -278,16 +278,16 @@ public class BusinessTripApprovalController extends BaseController {
|
||||||
.eq(BusinessTripApproval::getUuid,uuid)
|
.eq(BusinessTripApproval::getUuid,uuid)
|
||||||
.last("LIMIT 1")
|
.last("LIMIT 1")
|
||||||
.one();
|
.one();
|
||||||
Integer approvalStatus = approvalProcess.getApprovalStatus();
|
Integer approvalStatus = approvalProcess.getApprovalStatusH();
|
||||||
|
|
||||||
if (dto.getState() == 1) {
|
if (dto.getState() == 1) {
|
||||||
if (approvalStatus == 1) {
|
if (approvalStatus == 1) {
|
||||||
List<Long> userIds = new ArrayList<>();
|
List<Long> userIds = new ArrayList<>();
|
||||||
if (businessTripApproval.getHasOffcialCar() == 1) {
|
if (businessTripApproval.getHasOffcialCar() == 1) {
|
||||||
approvalProcess.setApprovalStatus(100);
|
approvalProcess.setApprovalStatusH(100);
|
||||||
userIds.add(2165L);
|
userIds.add(2165L);
|
||||||
} else {
|
} else {
|
||||||
approvalProcess.setApprovalStatus(400);
|
approvalProcess.setApprovalStatusH(400);
|
||||||
userIds.add(1660L);
|
userIds.add(1660L);
|
||||||
userIds.add(1661L);
|
userIds.add(1661L);
|
||||||
}
|
}
|
||||||
|
@ -300,7 +300,7 @@ public class BusinessTripApprovalController extends BaseController {
|
||||||
if (dto.getPlateNo() == null) {
|
if (dto.getPlateNo() == null) {
|
||||||
throw new RuntimeException("车牌号不可为空");
|
throw new RuntimeException("车牌号不可为空");
|
||||||
}
|
}
|
||||||
approvalProcess.setApprovalStatus(200);
|
approvalProcess.setApprovalStatusH(200);
|
||||||
List<Long> userIds = new ArrayList<>();
|
List<Long> userIds = new ArrayList<>();
|
||||||
userIds.add(2157L);
|
userIds.add(2157L);
|
||||||
addLog(approvalProcess, userIds);
|
addLog(approvalProcess, userIds);
|
||||||
|
@ -309,20 +309,20 @@ public class BusinessTripApprovalController extends BaseController {
|
||||||
if (dto.getLeaderId() == null) {
|
if (dto.getLeaderId() == null) {
|
||||||
throw new RuntimeException("请选择分管局领导");
|
throw new RuntimeException("请选择分管局领导");
|
||||||
}
|
}
|
||||||
approvalProcess.setApprovalStatus(300);
|
approvalProcess.setApprovalStatusH(300);
|
||||||
List<Long> userIds = new ArrayList<>();
|
List<Long> userIds = new ArrayList<>();
|
||||||
userIds.add(dto.getLeaderId());
|
userIds.add(dto.getLeaderId());
|
||||||
addLog(approvalProcess, userIds);
|
addLog(approvalProcess, userIds);
|
||||||
}
|
}
|
||||||
if (approvalStatus == 300) {
|
if (approvalStatus == 300) {
|
||||||
approvalProcess.setApprovalStatus(400);
|
approvalProcess.setApprovalStatusH(400);
|
||||||
List<Long> userIds = new ArrayList<>();
|
List<Long> userIds = new ArrayList<>();
|
||||||
userIds.add(1660L);
|
userIds.add(1660L);
|
||||||
userIds.add(1661L);
|
userIds.add(1661L);
|
||||||
addLog(approvalProcess, userIds);
|
addLog(approvalProcess, userIds);
|
||||||
}
|
}
|
||||||
if (approvalStatus == 400) {
|
if (approvalStatus == 400) {
|
||||||
approvalProcess.setApprovalStatus(500);
|
approvalProcess.setApprovalStatusH(500);
|
||||||
}
|
}
|
||||||
one.setCheckState(dto.getState());
|
one.setCheckState(dto.getState());
|
||||||
one.setCheckTime(System.currentTimeMillis() / 1000L);
|
one.setCheckTime(System.currentTimeMillis() / 1000L);
|
||||||
|
@ -335,13 +335,13 @@ public class BusinessTripApprovalController extends BaseController {
|
||||||
throw new RuntimeException("驳回意见不可为空");
|
throw new RuntimeException("驳回意见不可为空");
|
||||||
}
|
}
|
||||||
if (approvalStatus == 100 || approvalStatus == 200 || approvalStatus == 300) {
|
if (approvalStatus == 100 || approvalStatus == 200 || approvalStatus == 300) {
|
||||||
approvalProcess.setApprovalStatus(400);
|
approvalProcess.setApprovalStatusH(400);
|
||||||
List<Long> userIds = new ArrayList<>();
|
List<Long> userIds = new ArrayList<>();
|
||||||
userIds.add(1660L);
|
userIds.add(1660L);
|
||||||
userIds.add(1661L);
|
userIds.add(1661L);
|
||||||
addLog(approvalProcess, userIds);
|
addLog(approvalProcess, userIds);
|
||||||
}else {
|
}else {
|
||||||
approvalProcess.setApprovalStatus(0);
|
approvalProcess.setApprovalStatusH(0);
|
||||||
List<Long> userIds = new ArrayList<>();
|
List<Long> userIds = new ArrayList<>();
|
||||||
userIds.add(approvalProcess.getSubmitterId());
|
userIds.add(approvalProcess.getSubmitterId());
|
||||||
addLog(approvalProcess, userIds);
|
addLog(approvalProcess, userIds);
|
||||||
|
@ -364,7 +364,7 @@ public class BusinessTripApprovalController extends BaseController {
|
||||||
gwglLog.setUserName(approvalProcess.getSubmitterName());
|
gwglLog.setUserName(approvalProcess.getSubmitterName());
|
||||||
gwglLog.setCheckState(0);
|
gwglLog.setCheckState(0);
|
||||||
gwglLog.setUuid(approvalProcess.getUuid());
|
gwglLog.setUuid(approvalProcess.getUuid());
|
||||||
gwglLog.setApprovalStatus(approvalProcess.getApprovalStatus());
|
gwglLog.setApprovalStatusH(approvalProcess.getApprovalStatusH());
|
||||||
gwglLog.setCreateTime(System.currentTimeMillis() / 1000L);
|
gwglLog.setCreateTime(System.currentTimeMillis() / 1000L);
|
||||||
SysUser user = new SysUser();
|
SysUser user = new SysUser();
|
||||||
StringBuilder name = new StringBuilder();
|
StringBuilder name = new StringBuilder();
|
||||||
|
|
|
@ -57,9 +57,16 @@ public class ApprovalProcess {
|
||||||
@ApiModelProperty("审批状态:0-未审核 1-通过 2-不通过")
|
@ApiModelProperty("审批状态:0-未审核 1-通过 2-不通过")
|
||||||
@TableField(condition = SqlCondition.LIKE)
|
@TableField(condition = SqlCondition.LIKE)
|
||||||
private Integer approvalStatus;
|
private Integer approvalStatus;
|
||||||
|
|
||||||
|
@ApiModelProperty("审批状态")
|
||||||
|
private Integer approvalStatusH;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String approvalStatusCn;
|
private String approvalStatusCn;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String approvalStatusHCn;
|
||||||
|
|
||||||
@ApiModelProperty("到达日期")
|
@ApiModelProperty("到达日期")
|
||||||
private Long arrivalDate;
|
private Long arrivalDate;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class gwglLog {
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty("审批状态")
|
@ApiModelProperty("审批状态")
|
||||||
private Integer approvalStatus;
|
private Integer approvalStatusH;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String approvalStatusCn;
|
private String approvalStatusHCn;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue