|
@@ -42,6 +42,7 @@ import com.unis.lawEnforcementSupervision.modular.lesJointInspectionTask.param.L
|
42
|
42
|
import com.unis.lawEnforcementSupervision.modular.lesJointInspectionTask.service.LesJointInspectionTaskService;
|
43
|
43
|
|
44
|
44
|
import javax.annotation.Resource;
|
|
45
|
+import java.util.Date;
|
45
|
46
|
import java.util.List;
|
46
|
47
|
|
47
|
48
|
/**
|
|
@@ -180,7 +181,10 @@ public class LesJointInspectionTaskServiceImpl extends ServiceImpl<LesJointInspe
|
180
|
181
|
Integer status = lesJointInspectionTask.getStatus();
|
181
|
182
|
if (1 == status) {
|
182
|
183
|
// 判断驳回在提交
|
183
|
|
- if (StringUtils.isEmpty(lesJointInspectionTask.getId())) {
|
|
184
|
+ QueryWrapper<AuditRequest> wrapper = new QueryWrapper<>();
|
|
185
|
+ wrapper.lambda().eq(AuditRequest::getRequestId, lesJointInspectionTask.getId());
|
|
186
|
+ AuditRequest request1 = auditRequestMapper.selectOne(wrapper);
|
|
187
|
+ if (ObjectUtils.isEmpty(request1)) {
|
184
|
188
|
// 添加审批(状态 0:待审核;1:已审核;2:驳回)
|
185
|
189
|
AuditRequest request = this.addAuditRequest(lesJointInspectionTask);
|
186
|
190
|
// 添加审批流程记录
|
|
@@ -205,6 +209,7 @@ public class LesJointInspectionTaskServiceImpl extends ServiceImpl<LesJointInspe
|
205
|
209
|
request.setAuditStatus(0);
|
206
|
210
|
request.setAuditAdvice(lesJointInspectionTask.getAuditAdvice());
|
207
|
211
|
request.setAuditUserId(lesJointInspectionTask.getAuditUserId());
|
|
212
|
+ request.setAuditTime(new Date());
|
208
|
213
|
auditRequestMapper.insert(request);
|
209
|
214
|
return request;
|
210
|
215
|
}
|