5 Achegas 3c4cbe7ff0 ... bb914677d9

Autor SHA1 Mensaxe Data
  caozj bb914677d9 销售发票增加归属公司过滤 hai 1 ano
  caozj 63774e3ec6 Merge remote-tracking branch 'origin/dev' into dev hai 1 ano
  caozj de86d21a16 Merge branch 'test' into dev hai 1 ano
  caozj a5e15810e5 Merge remote-tracking branch 'origin/master' hai 1 ano
  caozj 5520a43ac3 合同变更BUG修复 hai 1 ano

+ 5 - 0
hx-sale/src/main/java/com/fjhx/sale/entity/contract/dto/ContractInvoiceSelectDto.java

@@ -19,4 +19,9 @@ public class ContractInvoiceSelectDto extends BaseSelectDto {
      */
     private Integer invoiceType;
 
+    /**
+     * 归属公司
+     */
+    private Long corporationId;
+
 }

+ 5 - 0
hx-sale/src/main/java/com/fjhx/sale/entity/contract/dto/ContractSelectDto.java

@@ -45,6 +45,11 @@ public class ContractSelectDto extends BaseSelectDto {
     private String refundStatusNew;
 
     /**
+     * 到款状态
+     */
+    private String isClaim;
+
+    /**
      * 合同类型
      */
     private String contractType;

+ 3 - 1
hx-sale/src/main/java/com/fjhx/sale/flow/ContractUpdateFlow.java

@@ -93,7 +93,8 @@ public class ContractUpdateFlow extends FlowDelegate {
 
         contract.setIssue("1");//默认直接下发到交接单
 
-        contract.setFlowId(flowId);
+        contract.setFlowId(flowId);//赋值新合同流程ID
+
 
         // 原合同id不能为空
         Long oldContractId = contract.getOldContractId();
@@ -107,6 +108,7 @@ public class ContractUpdateFlow extends FlowDelegate {
         }
         //更新原样品单状态为变更中
         oldContract.setStatus(FlowStatusEnum1.UPDATE_LOADING.getKey());
+
         contractService.updateById(oldContract);
         //查询旧合同的订单产品
         List<ContractProduct> oldContractProductList = contractProductService.list(q -> q.eq(ContractProduct::getContractId, oldContractId));

+ 5 - 2
hx-sale/src/main/java/com/fjhx/sale/service/contract/impl/ContractInvoiceServiceImpl.java

@@ -73,9 +73,12 @@ public class ContractInvoiceServiceImpl extends ServiceImpl<ContractInvoiceMappe
     @Override
     public Page<ContractInvoiceVo> getPage(ContractInvoiceSelectDto dto) {
         IWrapper<ContractInvoice> wrapper = getWrapper();
-        wrapper.orderByDesc("t1", Invoice::getCreateTime);
+        wrapper.orderByDesc("t1", ContractInvoice::getCreateTime);
         if(ObjectUtils.isNotEmpty(dto.getInvoiceType())){
-            wrapper.eq("t1", Invoice::getType,dto.getInvoiceType());
+            wrapper.eq("t1", ContractInvoice::getType,dto.getInvoiceType());
+        }
+        if(ObjectUtils.isNotEmpty(dto.getCorporationId())){
+            wrapper.eq("t1", ContractInvoice::getCorporationId,dto.getCorporationId());
         }
         if(StringUtils.isNotEmpty(dto.getKeyword())){
             wrapper.keyword(dto.getKeyword(), new SqlField("t1.contractCodes"));

+ 3 - 0
hx-sale/src/main/java/com/fjhx/sale/service/contract/impl/ContractServiceImpl.java

@@ -322,6 +322,9 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
         if (StringUtils.isNotEmpty(dto.getSellCorporationId())) {
             wrapper.eq("t1", Contract::getSellCorporationId, dto.getSellCorporationId());
         }
+        if(StringUtils.isNotEmpty(dto.getIsClaim())){
+            wrapper.ne("t1.refundStatusNew",20);
+        }
         if (StringUtils.isNotEmpty(dto.getRefundStatusNew())) {
             wrapper.in("t1.refundStatusNew", Arrays.asList(dto.getRefundStatusNew().split(",")));
         }