|
@@ -7,8 +7,10 @@ import com.baomidou.mybatisplus.plugins.Page;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.winsea.svc.base.base.entity.CommonCompany;
|
|
|
import com.winsea.svc.base.base.entity.CommonRoleResource;
|
|
|
+import com.winsea.svc.base.base.entity.CommonStaff;
|
|
|
import com.winsea.svc.base.base.service.ICommonCompanyService;
|
|
|
import com.winsea.svc.base.base.service.ICommonRoleResourceService;
|
|
|
+import com.winsea.svc.base.base.service.ICommonStaffService;
|
|
|
import com.winsea.svc.base.security.entity.User;
|
|
|
import com.winsea.svc.base.security.util.AuthSecurityUtils;
|
|
|
import com.winsea.svc.base.workflow.entity.Workflow;
|
|
@@ -63,6 +65,8 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
private IWarehouseBaseInfoService warehouseBaseInfoService;
|
|
|
@Autowired
|
|
|
private IWarehousePositionInfoService warehousePositionInfoService;
|
|
|
+ @Autowired
|
|
|
+ private ICommonStaffService staffService;
|
|
|
|
|
|
/**
|
|
|
* 付款管理列表
|
|
@@ -113,11 +117,13 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
if (weighingManagement!=null){
|
|
|
paymentManagement1.setContractPrice(weighingManagement.getContractPrice());
|
|
|
paymentManagement1.setWeighingPictureAddress(weighingManagement.getPictureAddress());
|
|
|
+ paymentManagement1.setWeighingManagement(weighingManagement);
|
|
|
}
|
|
|
QualityInspectionManagement qualityInspectionManagement = qualityInspectionManagementService.selectOne(new EntityWrapper<QualityInspectionManagement>()
|
|
|
.eq("relation_id", paymentManagement1.getRelationId()));
|
|
|
if (qualityInspectionManagement!=null){
|
|
|
paymentManagement1.setQualityInspectionPictureAddress(qualityInspectionManagement.getPictureAddress());
|
|
|
+ paymentManagement1.setQualityInspectionManagement(qualityInspectionManagement);
|
|
|
}
|
|
|
String taskId = "";
|
|
|
// 只有待审核状态才有taskId
|
|
@@ -246,6 +252,8 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
|
|
|
@Override
|
|
|
public String payMoney(PaymentManagement paymentManagement) {
|
|
|
List<PaymentManagement> paymentManagementList = paymentManagement.getPaymentManagementList();
|
|
|
+ CommonStaff commonStaff = staffService.getInfo(AuthSecurityUtils.getCurrentUserId());
|
|
|
+ paymentManagement.setCashier(commonStaff.getStaffName());
|
|
|
Float money = paymentManagement.getMoney();
|
|
|
//付款多条
|
|
|
if (!CollectionUtils.isEmpty(paymentManagementList)) {
|