|
@@ -18,6 +18,7 @@ import com.fs.qw.vo.TransferCustomDTO;
|
|
|
import com.fs.store.service.cache.IFsUserCacheService;
|
|
|
import com.hc.openapi.tool.util.StringUtils;
|
|
|
import org.apache.http.util.Asserts;
|
|
|
+import org.springframework.aop.framework.AopContext;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -263,4 +264,16 @@ public class CustomerTransferApprovalServiceImpl implements ICustomerTransferApp
|
|
|
{
|
|
|
return customerTransferApprovalMapper.deleteCustomerTransferApprovalById(id);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void autoApprovePass() {
|
|
|
+ List<CustomerTransferApproval> customerTransferApprovals = customerTransferApprovalMapper.queryPendingData();
|
|
|
+ for (CustomerTransferApproval approval : customerTransferApprovals) {
|
|
|
+ approval.setApprovalStatus(1);
|
|
|
+ approval.setApprovalRemark("自动审批");
|
|
|
+ approval.setApproverUserId(1L);
|
|
|
+ ICustomerTransferApprovalService service = (ICustomerTransferApprovalService) AopContext.currentProxy();
|
|
|
+ service.updateCustomerTransferApproval(approval);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|