zhangyuewww %!s(int64=3) %!d(string=hai) anos
pai
achega
2adda051bf

+ 28 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/CollectionWarehousingRecordController.java

@@ -28,6 +28,7 @@ public class CollectionWarehousingRecordController {
 
     /**
      * 新增信息
+     * @return
      */
     @PostMapping("/api/insertCollectionWarehousingRecord")
     public String insertCollectionWarehousingRecord(@RequestBody @Valid CollectionWarehousingRecord collectionWarehousingRecord) {
@@ -84,5 +85,32 @@ public class CollectionWarehousingRecordController {
     public void export(@RequestBody CollectionWarehousingRecord example, HttpServletResponse response) throws Exception {
         collectionWarehousingRecordService.export(example,response);
     }
+    /**
+     * 批量开发票
+     * @param collectionWarehousingRecord
+     * @return
+     */
+    @PostMapping("/api/openInvoiceList")
+    public String openInvoiceList(@RequestBody CollectionWarehousingRecord collectionWarehousingRecord) {
+        return collectionWarehousingRecordService.openInvoiceList(collectionWarehousingRecord);
+    }
+    /**
+     * 付款
+     * @param collectionWarehousingRecord
+     * @return
+     */
+    @PostMapping("/api/payMoney")
+    public String payMoney(@RequestBody CollectionWarehousingRecord collectionWarehousingRecord){
+        return collectionWarehousingRecordService.payMoney(collectionWarehousingRecord);
+    }
+    /**
+     * 收款
+     * @param collectionWarehousingRecord
+     * @return
+     */
+    @PostMapping("/api/collectMoney")
+    public String collectMoney(@RequestBody CollectionWarehousingRecord collectionWarehousingRecord){
+        return collectionWarehousingRecordService.collectMoney(collectionWarehousingRecord);
+    }
 }
 

+ 25 - 2
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/entity/CollectionWarehousingRecord.java

@@ -104,7 +104,7 @@ public class CollectionWarehousingRecord extends BaseModel<CollectionWarehousing
      */
     private Double amountNotCollectable;
     /**
-     * 已付金额
+     * 已付金额
      */
     private Double amountEdPayable;
     /**
@@ -122,18 +122,26 @@ public class CollectionWarehousingRecord extends BaseModel<CollectionWarehousing
     /**
      * 收款日期
      */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private Date collectionDate;
     /**
      * 付款日期
      */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private Date paymentDate;
     /**
      * 结算时间
      */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private Date settlementDate;
     /**
      * 入库时间
      */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
     private Date inDate;
     /**
      * 是否开自采票(0未开1已开)
@@ -207,13 +215,28 @@ public class CollectionWarehousingRecord extends BaseModel<CollectionWarehousing
     @DateTimeFormat(pattern = "yyyy-MM-dd")
     @TableField(exist = false)
     private Date endDate;
+    /**
+     * 导入
+     */
+    @TableField(exist = false)
+    private List<CollectionWarehousingRecord> excelList;
     /**
      * 批量
      */
     @TableField(exist = false)
-    private List<CollectionWarehousingRecord> collectionWarehousingRecords;
+    private List<CollectionWarehousingRecord> collectionWarehousingRecordList;
     @TableField(exist = false)
     private IdentityAuthenticationInfo identityAuthenticationInfo;
+    /**
+     *开票标识1开自采发票2开销售发票
+     */
+    @TableField(exist = false)
+    private String flag;
+    /**
+     *付款金额/收款金额
+     */
+    @TableField(exist = false)
+    private Double money;
 
     @Override
     protected Serializable pkVal() {

+ 16 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/ICollectionWarehousingRecordService.java

@@ -5,6 +5,7 @@ import com.yh.saas.plugin.yiliangyiyun.entity.CollectionWarehousingRecord;
 import com.baomidou.mybatisplus.service.IService;
 
 import javax.servlet.http.HttpServletResponse;
+import java.util.List;
 
 /**
  * <p>
@@ -24,4 +25,19 @@ public interface ICollectionWarehousingRecordService extends IService<Collection
     String editCollectionWarehousingRecord(CollectionWarehousingRecord collectionWarehousingRecord);
     CollectionWarehousingRecord getCollectionWarehousingRecord(String id);
     void export(CollectionWarehousingRecord collectionWarehousingRecord, HttpServletResponse response) throws Exception;
+    /**
+     * 批量开发票
+     * @param collectionWarehousingRecord
+     */
+    String openInvoiceList(CollectionWarehousingRecord collectionWarehousingRecord);
+    /**
+     * 付款
+     * @param collectionWarehousingRecord
+     */
+    String payMoney(CollectionWarehousingRecord collectionWarehousingRecord);
+    /**
+     * 收款
+     * @param collectionWarehousingRecord
+     */
+    String collectMoney(CollectionWarehousingRecord collectionWarehousingRecord);
 }

+ 165 - 16
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/CollectionWarehousingRecordServiceImpl.java

@@ -6,23 +6,20 @@ import com.baomidou.mybatisplus.mapper.EntityWrapper;
 import com.baomidou.mybatisplus.plugins.Page;
 import com.google.common.collect.Lists;
 import com.winsea.svc.base.base.entity.CommonRoleResource;
+import com.winsea.svc.base.base.exception.EnterpriseException;
 import com.winsea.svc.base.base.service.ICommonRoleResourceService;
 import com.winsea.svc.base.base.util.DateUtils;
 import com.winsea.svc.base.security.entity.User;
 import com.winsea.svc.base.security.util.AuthSecurityUtils;
 import com.winsea.svc.base.workflow.entity.Workflow;
 import com.yh.saas.common.support.util.IdGenerator;
-import com.yh.saas.plugin.yiliangyiyun.constant.NumberConstant;
 import com.yh.saas.plugin.yiliangyiyun.constant.StatusEnum;
 import com.yh.saas.plugin.yiliangyiyun.entity.*;
 import com.yh.saas.plugin.yiliangyiyun.exception.YException;
 import com.yh.saas.plugin.yiliangyiyun.exception.YExceptionEnum;
 import com.yh.saas.plugin.yiliangyiyun.mapper.CollectionWarehousingRecordMapper;
-import com.yh.saas.plugin.yiliangyiyun.service.ICollectionWarehousingRecordService;
+import com.yh.saas.plugin.yiliangyiyun.service.*;
 import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.yh.saas.plugin.yiliangyiyun.service.IContractManagementInfoService;
-import com.yh.saas.plugin.yiliangyiyun.service.IIdentityAuthenticationInfoService;
-import com.yh.saas.plugin.yiliangyiyun.service.INewWorkflowService;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.httpclient.util.DateUtil;
 import org.apache.commons.lang3.StringUtils;
@@ -40,6 +37,7 @@ import javax.servlet.http.HttpServletResponse;
 import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.IOException;
+import java.math.BigDecimal;
 import java.net.URLDecoder;
 import java.text.SimpleDateFormat;
 import java.util.*;
@@ -65,6 +63,9 @@ public class CollectionWarehousingRecordServiceImpl extends ServiceImpl<Collecti
     private IIdentityAuthenticationInfoService iIdentityAuthenticationInfoService;
     @Autowired
     private IContractManagementInfoService contractManagementInfoService;
+    @Autowired
+    private IContractGoodsInfoService contractGoodsInfoService;
+
     @Value("${file-root-path}")
     private String localPath;
 
@@ -141,14 +142,39 @@ public class CollectionWarehousingRecordServiceImpl extends ServiceImpl<Collecti
     @Override
     @Transactional(rollbackFor = Exception.class)
     public String insertCollectionWarehousingRecord(CollectionWarehousingRecord collectionWarehousingRecord) {
-
-        List<CollectionWarehousingRecord> collectionWarehousingRecord1 = collectionWarehousingRecord.getCollectionWarehousingRecords();
+        List<CollectionWarehousingRecord> collectionWarehousingRecord1 = collectionWarehousingRecord.getExcelList();
+        ContractManagementInfo contractManagementInfo=contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
+                .eq("contract_no",collectionWarehousingRecord.getContractNo())
+                .eq("comp_id",collectionWarehousingRecord.getCompId()));
+        ContractGoodsInfo contractGoodsInfo=contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
+        .eq("contract_id",contractManagementInfo.getId()));
         if(!CollectionUtils.isEmpty(collectionWarehousingRecord1)){
-            for(int i =0;i<collectionWarehousingRecord1.size();i++){
-                CollectionWarehousingRecord warehousingRecord = collectionWarehousingRecord1.get(i);
+            for(CollectionWarehousingRecord warehousingRecord:collectionWarehousingRecord1){
                 //新增主键id
                 warehousingRecord.setId(IdGenerator.generateUUID());
-                this.insert(warehousingRecord);
+                warehousingRecord.setCompId(contractManagementInfo.getCompId());
+                warehousingRecord.setContractNo(contractManagementInfo.getContractNo());
+                warehousingRecord.setGoodsName(contractGoodsInfo.getGoodsName());
+                //单价x净重=应付
+                warehousingRecord.setAmountIngPayable(warehousingRecord.getUnitHave()*warehousingRecord.getNetWeight());
+                warehousingRecord.setAmountNotPayable(warehousingRecord.getUnitHave()*warehousingRecord.getNetWeight());
+                //收购单价+代收费=销售单价
+                warehousingRecord.setUnitDeduction(warehousingRecord.getUnitHave()+contractManagementInfo.getAgencyCharge());
+                //销售单价x净重=应收
+                warehousingRecord.setAmountNotCollectable(warehousingRecord.getUnitDeduction()*warehousingRecord.getNetWeight());
+                IdentityAuthenticationInfo identityAuthenticationInfo=iIdentityAuthenticationInfoService.selectOne(new EntityWrapper<IdentityAuthenticationInfo>()
+                        .eq("customer_number_card",warehousingRecord.getCustomerNumberCard())
+                        .eq("authentication_status_key","7"));
+                if (identityAuthenticationInfo!=null){
+                    if (!warehousingRecord.getCustomerName().equals(identityAuthenticationInfo.getCustomerName())){
+                        warehousingRecord.setCustomerName("");
+                    }
+                    warehousingRecord.setCustomerPhone(identityAuthenticationInfo.getCustomerPhone());
+                    this.insert(warehousingRecord);
+                }
+                else{
+                    throw new EnterpriseException(warehousingRecord.getCustomerName()+""+warehousingRecord.getCustomerNumberCard(),"身份证号有误或未认证");
+                }
 
                 boolean isStartWorkflow = org.apache.commons.lang3.StringUtils.isBlank(warehousingRecord.getWorkflowId());
                 // 不是退回的单子
@@ -182,7 +208,7 @@ public class CollectionWarehousingRecordServiceImpl extends ServiceImpl<Collecti
         // 插入操作历史
 //        this.billOperateHisService.saveBillOperateHis(salePlanInfo.getId(), NumberConstant.CONSTANT_PURCHASE, staffName, null,
 //                salePlanInfo.getStatus(), null, "");
-        return "OK";
+        return "ok";
     }
 
     /**
@@ -213,7 +239,7 @@ public class CollectionWarehousingRecordServiceImpl extends ServiceImpl<Collecti
     @Transactional(rollbackFor = Exception.class)
     public String editCollectionWarehousingRecord(CollectionWarehousingRecord collectionWarehousingRecord) {
         boolean one = this.updateById(collectionWarehousingRecord);
-        if (collectionWarehousingRecord.getStatusFlag().equals(StatusEnum.TASK_RETURN.getFlag())) {
+        if (StatusEnum.TASK_RETURN.getFlag().equals(collectionWarehousingRecord.getStatusFlag())) {
             boolean isStartWorkflow = org.apache.commons.lang3.StringUtils.isBlank(collectionWarehousingRecord.getWorkflowId());
             // 不是退回的单子
             if (isStartWorkflow) {
@@ -557,9 +583,9 @@ public class CollectionWarehousingRecordServiceImpl extends ServiceImpl<Collecti
 
         rownum++;
         // 详情信息
-        if (!CollectionUtils.isEmpty(collectionWarehousingRecord.getCollectionWarehousingRecords())) {
-            for (int i = 0; i < collectionWarehousingRecord.getCollectionWarehousingRecords().size(); i++) {
-                CollectionWarehousingRecord collectionWarehousingRecord1 = collectionWarehousingRecord.getCollectionWarehousingRecords().get(i);
+        if (!CollectionUtils.isEmpty(collectionWarehousingRecord.getCollectionWarehousingRecordList())) {
+            for (int i = 0; i < collectionWarehousingRecord.getCollectionWarehousingRecordList().size(); i++) {
+                CollectionWarehousingRecord collectionWarehousingRecord1 = collectionWarehousingRecord.getCollectionWarehousingRecordList().get(i);
                 ContractManagementInfo contractManagementInfo=contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
                         .eq("contract_no",collectionWarehousingRecord1.getContractNo())
                         .eq("comp_id",collectionWarehousingRecord1.getCompId()));
@@ -591,8 +617,15 @@ public class CollectionWarehousingRecordServiceImpl extends ServiceImpl<Collecti
                 cell = rowx.createCell(6);
                 cell.setCellValue(collectionWarehousingRecord1.getGoodsName());
                 cell.setCellStyle(styleDetail);
+                String type="";
+                if (collectionWarehousingRecord1.getGoodsName().contains("潮")){
+                    type="潮粮";
+                }
+                else {
+                    type="干粮";
+                }
                 cell = rowx.createCell(7);
-                cell.setCellValue(collectionWarehousingRecord1.getGoodsName());
+                cell.setCellValue(type);
                 cell.setCellStyle(styleDetail);
                 cell = rowx.createCell(8);
                 cell.setCellValue(collectionWarehousingRecord1.getGrade());
@@ -648,6 +681,122 @@ public class CollectionWarehousingRecordServiceImpl extends ServiceImpl<Collecti
 
     }
 
+    /**
+     * 批量开发票
+     * @param collectionWarehousingRecord
+     * @return
+     */
+    @Override
+    public String openInvoiceList(CollectionWarehousingRecord collectionWarehousingRecord) {
+        List<CollectionWarehousingRecord> collectionWarehousingRecordList = collectionWarehousingRecord.getCollectionWarehousingRecordList();
+        //批量
+        if (!CollectionUtils.isEmpty(collectionWarehousingRecordList)) {
+            //开自采发票
+            if("1".equals(collectionWarehousingRecord.getFlag())){
+                for (CollectionWarehousingRecord collectionWarehousingRecord1 : collectionWarehousingRecordList) {
+                    collectionWarehousingRecord1.setInvoicing("1");
+                    collectionWarehousingRecord1.setInvoicingDate(new Date());
+                    this.updateById(collectionWarehousingRecord1);
+                }
+            }
+            //开销售发票
+            else {
+                for (CollectionWarehousingRecord collectionWarehousingRecord1 : collectionWarehousingRecordList) {
+                    collectionWarehousingRecord1.setInvoicingSale("1");
+                    this.updateById(collectionWarehousingRecord1);
+                }
+            }
+
+        }
+        return "ok";
+    }
+
+    /**
+     * 付款
+     * @param collectionWarehousingRecord
+     * @return
+     */
+    @Override
+    public String payMoney(CollectionWarehousingRecord collectionWarehousingRecord) {
+        List<CollectionWarehousingRecord> collectionWarehousingRecordList = collectionWarehousingRecord.getCollectionWarehousingRecordList();
+        Double money = collectionWarehousingRecord.getMoney();
+        //付款多条
+        if (!CollectionUtils.isEmpty(collectionWarehousingRecordList)) {
+            for (CollectionWarehousingRecord collectionWarehousingRecord1 : collectionWarehousingRecordList) {
+                CollectionWarehousingRecord collectionWarehousingRecord2 = this.selectById(collectionWarehousingRecord1.getId());
+                //付款金额大于本次循环未付金额
+                if (money >= collectionWarehousingRecord1.getAmountNotPayable()) {
+                    money=money-collectionWarehousingRecord1.getAmountNotPayable();
+                    //全部付款
+                    collectionWarehousingRecord1.setStatus(StatusEnum.PUR_PAYaLL.getName());
+                    collectionWarehousingRecord1.setStatusFlag(StatusEnum.PUR_PAYaLL.getFlag());
+                    collectionWarehousingRecord1.setPaymentDate(collectionWarehousingRecord.getPaymentDate());
+                    collectionWarehousingRecord1.setPaymentScreenshot(collectionWarehousingRecord2.getPaymentScreenshot() != null ? collectionWarehousingRecord2.getPaymentScreenshot() + '$' + collectionWarehousingRecord.getPaymentScreenshot() : collectionWarehousingRecord.getPaymentScreenshot());
+                    collectionWarehousingRecord1.setAmountEdPayable(collectionWarehousingRecord1.getAmountEdPayable() + collectionWarehousingRecord1.getAmountNotPayable());
+                    collectionWarehousingRecord1.setAmountNotPayable(0.0d);
+                    this.updateById(collectionWarehousingRecord1);
+                } else if (money > 0) {
+                    Double moneyTmp =money-collectionWarehousingRecord1.getAmountNotPayable();
+                    //部分付款
+                    collectionWarehousingRecord1.setStatus(StatusEnum.PUR_PAY.getName());
+                    collectionWarehousingRecord1.setStatusFlag(StatusEnum.PUR_PAY.getFlag());
+                    collectionWarehousingRecord1.setPaymentDate(collectionWarehousingRecord.getPaymentDate());
+                    collectionWarehousingRecord1.setPaymentScreenshot(collectionWarehousingRecord2.getPaymentScreenshot() != null ? collectionWarehousingRecord2.getPaymentScreenshot() + '$' + collectionWarehousingRecord.getPaymentScreenshot() : collectionWarehousingRecord.getPaymentScreenshot());
+                    collectionWarehousingRecord1.setAmountEdPayable(collectionWarehousingRecord1.getAmountEdPayable() + money);
+                    collectionWarehousingRecord1.setAmountNotPayable(collectionWarehousingRecord1.getAmountNotPayable() - money);
+                    this.updateById(collectionWarehousingRecord1);
+                    money = moneyTmp;
+                } else {
+                    break;
+                }
+            }
+        }
+        return "ok";
+    }
+
+    /**
+     * 收款
+     * @param collectionWarehousingRecord
+     * @return
+     */
+    @Override
+    public String collectMoney(CollectionWarehousingRecord collectionWarehousingRecord) {
+        List<CollectionWarehousingRecord> collectionWarehousingRecordList = collectionWarehousingRecord.getCollectionWarehousingRecordList();
+        Double money = collectionWarehousingRecord.getMoney();
+        //收款多条
+        if (!CollectionUtils.isEmpty(collectionWarehousingRecordList)) {
+            for (CollectionWarehousingRecord collectionWarehousingRecord1 : collectionWarehousingRecordList) {
+                CollectionWarehousingRecord collectionWarehousingRecord2 = this.selectById(collectionWarehousingRecord1.getId());
+                //收款金额大于本次循环未收金额
+                if (money >= collectionWarehousingRecord1.getAmountNotCollectable()) {
+                    money = money - collectionWarehousingRecord1.getAmountNotCollectable();
+                    //全部收款
+                    collectionWarehousingRecord1.setStatus(StatusEnum.PUR_COLLECTaLL.getName());
+                    collectionWarehousingRecord1.setStatusFlag(StatusEnum.PUR_COLLECTaLL.getFlag());
+                    collectionWarehousingRecord1.setCollectionDate(collectionWarehousingRecord.getCollectionDate());
+                    collectionWarehousingRecord1.setCollectionScreenshot(collectionWarehousingRecord2.getCollectionScreenshot() != null ? collectionWarehousingRecord2.getCollectionScreenshot() + '$' + collectionWarehousingRecord.getCollectionScreenshot() : collectionWarehousingRecord.getCollectionScreenshot());
+                    collectionWarehousingRecord1.setAmountEdCollectionable(collectionWarehousingRecord1.getAmountEdCollectionable() + collectionWarehousingRecord1.getAmountNotCollectable());
+                    collectionWarehousingRecord1.setAmountNotCollectable(0.0d);
+                    this.updateById(collectionWarehousingRecord1);
+                } else if (money > 0) {
+                    Double moneyTmp = money - collectionWarehousingRecord1.getAmountNotCollectable();
+                    //部分收款
+                    collectionWarehousingRecord1.setStatus(StatusEnum.PUR_COLLECT.getName());
+                    collectionWarehousingRecord1.setStatusFlag(StatusEnum.PUR_COLLECT.getFlag());
+                    collectionWarehousingRecord1.setCollectionDate(collectionWarehousingRecord.getCollectionDate());
+                    collectionWarehousingRecord1.setCollectionScreenshot(collectionWarehousingRecord2.getCollectionScreenshot() != null ? collectionWarehousingRecord2.getCollectionScreenshot() + '$' + collectionWarehousingRecord.getCollectionScreenshot() : collectionWarehousingRecord.getCollectionScreenshot());
+                    collectionWarehousingRecord1.setAmountEdCollectionable(collectionWarehousingRecord1.getAmountEdCollectionable() + money);
+                    collectionWarehousingRecord1.setAmountNotCollectable(collectionWarehousingRecord1.getAmountNotCollectable() - money);
+                    this.updateById(collectionWarehousingRecord1);
+                    money = moneyTmp;
+                } else {
+                    break;
+                }
+            }
+        }
+        return "OK";
+    }
+
 
     private String addDateOneDay(Date date) {
         SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

+ 31 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ContractManagementInfoServiceImpl.java

@@ -194,7 +194,8 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
                     this.updateById(contractManagementInfo);
                     workflowService.activateInstance(contractManagementInfo.getWorkflowId(), contractManagementInfo.getId());
                 }
-            } else {
+            }
+            else if("2".equals(contractManagementInfo.getContractType())){
 
                 boolean isStartWorkflow = StringUtils.isBlank(contractManagementInfo.getWorkflowId());
                 // 不是退回的单子
@@ -222,6 +223,33 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
                 }
 
             }
+            else {
+                boolean isStartWorkflow = StringUtils.isBlank(contractManagementInfo.getWorkflowId());
+                // 不是退回的单子
+                if (isStartWorkflow) {
+                    Workflow workflow = workflowService
+                            .findLatestWorkflowByBusinessCodeByApp(contractManagementInfo.getCompId(), "DAISHOU-CONTRACT-APPROVE");
+                    // 没配置审核流程,直接结束并处理信息
+                    if (workflow == null) {
+                        throw new YException(YExceptionEnum.PURCHASE_ORDER_ERROR);
+                    }
+                    // 开启审核流
+                    else {
+
+                        // 设置状态 已提交审核
+                        contractManagementInfo.setWorkflowId(workflow.getId());
+                        this.updateById(contractManagementInfo);
+                        workflowService.startInstance(workflow.getId(), contractManagementInfo.getId());
+                    }
+                }
+                // 退回的单子 再启用
+                else {
+
+                    this.updateById(contractManagementInfo);
+                    workflowService.activateInstance(contractManagementInfo.getWorkflowId(), contractManagementInfo.getId());
+                }
+
+            }
         }
 
         boolean two = contractGoodsInfoService.insert(contractGoodsInfo);
@@ -1181,6 +1209,8 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
                     contractManagementInfo.getId(), null);
             noticeService.removeNotice(BaseNotice.NoticeStatus.TASK, "SALE-CONTRACT-APPROVE",
                     contractManagementInfo.getId(), null);
+            noticeService.removeNotice(BaseNotice.NoticeStatus.TASK, "DAISHOU-CONTRACT-APPROVE",
+                    contractManagementInfo.getId(), null);
             //货物信息
             ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>().eq(ContractGoodsInfo.QueryFiles.CONTRACT_ID, id));
             //流程信息

+ 2 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/CollectionWarehousingRecordMapper.xml

@@ -73,7 +73,9 @@
         goods_name as goodsName,
         car_no as carNo,
         relation_id as relationId,
+        customer_number_card as customerNumberCard,
         type,
+        in_date as inDate,
         contract_no as contractNo,
         net_weight as netWeight,
         invoicing_sale as invoicingSale,

+ 1 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/ContractManagementInfoMapper.xml

@@ -71,6 +71,7 @@
         m.point_price as pointPrice,
         m.approve_status as approveStatus,
         m.basis_price as basisPrice,
+        m.agency_charge as agencyCharge,
         m.collection_deadline as collectionDeadline,
         p.goods_name_key as contractRevenue,
         p.mildew_grain as contractExpenditure,