Bläddra i källkod

销售收入上缴-v1.0

hanqingsong 4 månader sedan
förälder
incheckning
619392e1fa
33 ändrade filer med 1435 tillägg och 0 borttagningar
  1. 69 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/controller/BusinessFsSaleRevenueController.java
  2. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueApprovalPriceMapper.java
  3. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueDiffPriceMapper.java
  4. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueInspectionLossMapper.java
  5. 27 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueMapper.java
  6. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueSettleMapper.java
  7. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueThreeConsistenceMapper.java
  8. 6 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessContractDetail.java
  9. 99 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenue.java
  10. 72 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueApprovalPrice.java
  11. 76 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueDiffPrice.java
  12. 126 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueInspectionLoss.java
  13. 108 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueSettle.java
  14. 134 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueThreeConsistence.java
  15. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueApprovalPriceService.java
  16. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueDiffPriceService.java
  17. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueInspectionLossService.java
  18. 29 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueService.java
  19. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueSettleService.java
  20. 16 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueThreeConsistenceService.java
  21. 20 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueApprovalPriceServiceImpl.java
  22. 20 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueDiffPriceServiceImpl.java
  23. 20 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueInspectionLossServiceImpl.java
  24. 131 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueServiceImpl.java
  25. 20 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueSettleServiceImpl.java
  26. 20 0
      src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueThreeConsistenceServiceImpl.java
  27. 24 0
      src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueApprovalPriceMapper.xml
  28. 25 0
      src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueDiffPriceMapper.xml
  29. 23 0
      src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueInspectionLossMapper.xml
  30. 154 0
      src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueMapper.xml
  31. 33 0
      src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueSettleMapper.xml
  32. 38 0
      src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueThreeConsistenceMapper.xml
  33. 1 0
      src/main/resources/mapper/priceApproval/BusinessFsStoragePriceApprovalMapper.xml

+ 69 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/controller/BusinessFsSaleRevenueController.java

@@ -0,0 +1,69 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.controller;
2
+
3
+
4
+import com.chinaitop.depot.intelligent.common.ResponseEntity;
5
+import com.chinaitop.depot.intelligent.priceApproval.model.*;
6
+import com.chinaitop.depot.intelligent.priceApproval.service.BusinessFsSaleRevenueService;
7
+import io.swagger.annotations.Api;
8
+import io.swagger.annotations.ApiOperation;
9
+import org.springframework.validation.annotation.Validated;
10
+import org.springframework.web.bind.annotation.*;
11
+
12
+import javax.annotation.Resource;
13
+import java.util.List;
14
+
15
+/**
16
+ * <p>
17
+ * 财务监管-销售收入上缴 前端控制器
18
+ * </p>
19
+ *
20
+ * @author root
21
+ * @since 2024-07-24
22
+ */
23
+@RestController
24
+@RequestMapping("/business-fs-sale-revenue")
25
+@Api(tags = "销售收入上缴")
26
+public class BusinessFsSaleRevenueController {
27
+    @Resource
28
+    private BusinessFsSaleRevenueService saleRevenueService;
29
+
30
+    @GetMapping("/getContractInfo/{orgId}")
31
+    @ApiOperation(value = "合同编号下拉", notes = "包含合同其它信息")
32
+    public ResponseEntity<List<BusinessContract>> getContractInfo(@PathVariable("orgId") Integer orgId) {
33
+        return ResponseEntity.ok(saleRevenueService.getContractInfo(orgId));
34
+    }
35
+
36
+    @GetMapping("/getContractInfoById/{id}")
37
+    @ApiOperation(value = "合同信息", notes = "合同编号下拉id")
38
+    public ResponseEntity<List<BusinessContractDetail>> getContractInfoList(@PathVariable("id") Integer id) {
39
+        return ResponseEntity.ok(saleRevenueService.getContractInfoList(id));
40
+    }
41
+
42
+    @GetMapping("/getConsistenceAccountInfo/{orgId}/{basicStorehouseId}/{warehouseId}")
43
+    @ApiOperation(value = "质检损益信息", notes = "质检损益信息")
44
+    public ResponseEntity<List<BusinessFsSaleRevenueInspectionLoss>> getQualityInfo(@PathVariable("orgId") Integer orgId,
45
+                                                                                    @PathVariable("basicStorehouseId") Integer basicStorehouseId,
46
+                                                                                    @PathVariable("warehouseId") Integer warehouseId) {
47
+        return ResponseEntity.ok(saleRevenueService.getQualityInfo(orgId, basicStorehouseId, warehouseId));
48
+    }
49
+
50
+    @GetMapping("/getConsistenceAccountInfo/{contractNumber}")
51
+    @ApiOperation(value = "三账一致性-会计账", notes = "会计账")
52
+    public ResponseEntity<List<BusinessFsSaleRevenueThreeConsistence>> getConsistenceAccountInfo(@PathVariable("contractNumber") String contractNumber) {
53
+        return ResponseEntity.ok(saleRevenueService.getConsistenceAccountInfo(contractNumber));
54
+    }
55
+
56
+    @GetMapping("/getOutStorageInfo/{contractNumber}")
57
+    @ApiOperation(value = "三账一致性-实际出库情况*", notes = "实际出库情况")
58
+    public ResponseEntity<List<BusinessFsSaleRevenueThreeConsistence>> getOutStorageInfo(@PathVariable("contractNumber") String contractNumber) {
59
+        return ResponseEntity.ok(saleRevenueService.getOutStorageInfo(contractNumber));
60
+    }
61
+
62
+    @PostMapping("/save")
63
+    @ApiOperation(value = "销售收入上缴新增*", notes = "新增")
64
+    public ResponseEntity save(@Validated @RequestBody BusinessFsSaleRevenue param) {
65
+        saleRevenueService.saveData(param);
66
+        return ResponseEntity.ok();
67
+    }
68
+
69
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueApprovalPriceMapper.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.mapper;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueApprovalPrice;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-原核定入库价格 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueApprovalPriceMapper extends BaseMapper<BusinessFsSaleRevenueApprovalPrice> {
15
+
16
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueDiffPriceMapper.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.mapper;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueDiffPrice;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-差额上缴 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueDiffPriceMapper extends BaseMapper<BusinessFsSaleRevenueDiffPrice> {
15
+
16
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueInspectionLossMapper.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.mapper;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueInspectionLoss;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-质检损益信息 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueInspectionLossMapper extends BaseMapper<BusinessFsSaleRevenueInspectionLoss> {
15
+
16
+}

+ 27 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueMapper.java

@@ -0,0 +1,27 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.mapper;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.*;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+import org.apache.ibatis.annotations.Param;
6
+
7
+import java.util.List;
8
+import java.util.Map;
9
+
10
+/**
11
+ * <p>
12
+ * 财务监管-销售收入上缴 Mapper 接口
13
+ * </p>
14
+ *
15
+ * @author root
16
+ * @since 2024-07-24
17
+ */
18
+public interface BusinessFsSaleRevenueMapper extends BaseMapper<BusinessFsSaleRevenue> {
19
+
20
+    List<BusinessContract> getContractInfo(@Param("orgId") Integer orgId);
21
+
22
+    List<BusinessContractDetail> getContractInfoList(@Param("id") Integer id);
23
+
24
+    List<BusinessFsSaleRevenueInspectionLoss> getQualityInfo(Map<String, Object> map);
25
+
26
+    List<BusinessFsSaleRevenueThreeConsistence> getConsistenceAccountInfo(@Param("contractNumber") String contractNumber);
27
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueSettleMapper.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.mapper;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueSettle;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-结算信息 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueSettleMapper extends BaseMapper<BusinessFsSaleRevenueSettle> {
15
+
16
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/mapper/BusinessFsSaleRevenueThreeConsistenceMapper.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.mapper;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueThreeConsistence;
4
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-三账一致性 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueThreeConsistenceMapper extends BaseMapper<BusinessFsSaleRevenueThreeConsistence> {
15
+
16
+}

+ 6 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessContractDetail.java

@@ -14,6 +14,12 @@ public class BusinessContractDetail {
14 14
     @ApiModelProperty(value = "主键ID")
15 15
     private Integer id;
16 16
 
17
+    @ApiModelProperty(value = "仓房名称(销售收入上缴)")
18
+    private String houseName;
19
+
20
+    @ApiModelProperty(value = "货位名称(销售收入上缴)")
21
+    private String warehouseName;
22
+
17 23
     @ApiModelProperty(value = "粮油品种编码")
18 24
     private String grainKind;
19 25
 

+ 99 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenue.java

@@ -0,0 +1,99 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.util.Date;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import com.baomidou.mybatisplus.annotation.TableField;
8
+import java.io.Serializable;
9
+import java.util.List;
10
+
11
+import io.swagger.annotations.ApiModel;
12
+import io.swagger.annotations.ApiModelProperty;
13
+import lombok.Data;
14
+import lombok.EqualsAndHashCode;
15
+
16
+/**
17
+ * <p>
18
+ * 财务监管-销售收入上缴
19
+ * </p>
20
+ *
21
+ * @author root
22
+ * @since 2024-07-24
23
+ */
24
+@Data
25
+@EqualsAndHashCode(callSuper = false)
26
+@TableName("business_fs_sale_revenue")
27
+@ApiModel(value="BusinessFsSaleRevenue对象", description="财务监管-销售收入上缴")
28
+public class BusinessFsSaleRevenue implements Serializable {
29
+
30
+    private static final long serialVersionUID = 1L;
31
+
32
+    @ApiModelProperty(value = "主键ID")
33
+    @TableId(value = "id", type = IdType.AUTO)
34
+    private Integer id;
35
+
36
+    @ApiModelProperty(value = "创建人")
37
+    @TableField("createname")
38
+    private String createname;
39
+
40
+    @ApiModelProperty(value = "创建日期")
41
+    @TableField("createdate")
42
+    private Date createdate;
43
+
44
+    @ApiModelProperty(value = "更新人")
45
+    @TableField("updatename")
46
+    private String updatename;
47
+
48
+    @ApiModelProperty(value = "更新日期")
49
+    @TableField("updatedate")
50
+    private Date updatedate;
51
+
52
+    @ApiModelProperty(value = "上报库区;org_info的id;")
53
+    @TableField("org_id")
54
+    private Integer orgId;
55
+
56
+    @ApiModelProperty(value = "上报时间")
57
+    @TableField("report_time")
58
+    private Date reportTime;
59
+
60
+    @ApiModelProperty(value = "计划类型")
61
+    @TableField("plan_type")
62
+    private String planType;
63
+
64
+    @ApiModelProperty(value = "销往单位")
65
+    @TableField("sales_unit")
66
+    private String salesUnit;
67
+
68
+    @ApiModelProperty(value = "合同编号;business_contract的ID;")
69
+    @TableField("contract_id")
70
+    private Integer contractId;
71
+
72
+    @ApiModelProperty(value = "问题跟踪反馈")
73
+    @TableField("problem_feedback")
74
+    private String problemFeedback;
75
+
76
+    @ApiModelProperty(value = "状态 0:保存;1:上报;2:已核定;")
77
+    @TableField("status")
78
+    private Integer status;
79
+
80
+    @ApiModelProperty(value = "质检损益信息")
81
+    @TableField(exist = false)
82
+    private List<BusinessFsSaleRevenueInspectionLoss> inspectionLossList;
83
+
84
+    @ApiModelProperty(value = "三账一致性")
85
+    @TableField(exist = false)
86
+    private List<BusinessFsSaleRevenueThreeConsistence> threeConsistenceList;
87
+
88
+    @ApiModelProperty(value = "结算信息")
89
+    @TableField(exist = false)
90
+    private List<BusinessFsSaleRevenueSettle> revenueSettleList;
91
+
92
+    @ApiModelProperty(value = "原核定入库价格")
93
+    @TableField(exist = false)
94
+    private List<BusinessFsSaleRevenueApprovalPrice> approvalPriceList;
95
+
96
+    @ApiModelProperty(value = "差额上缴")
97
+    @TableField(exist = false)
98
+    private List<BusinessFsSaleRevenueDiffPrice> DiffPriceList;
99
+}

+ 72 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueApprovalPrice.java

@@ -0,0 +1,72 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.model;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.TableName;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import java.util.Date;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import com.baomidou.mybatisplus.annotation.TableField;
9
+import java.io.Serializable;
10
+import io.swagger.annotations.ApiModel;
11
+import io.swagger.annotations.ApiModelProperty;
12
+import lombok.Data;
13
+import lombok.EqualsAndHashCode;
14
+
15
+/**
16
+ * <p>
17
+ * 财务监管-销售收入上缴-原核定入库价格
18
+ * </p>
19
+ *
20
+ * @author root
21
+ * @since 2024-07-24
22
+ */
23
+@Data
24
+@EqualsAndHashCode(callSuper = false)
25
+@TableName("business_fs_sale_revenue_approval_price")
26
+@ApiModel(value="BusinessFsSaleRevenueApprovalPrice对象", description="财务监管-销售收入上缴-原核定入库价格")
27
+public class BusinessFsSaleRevenueApprovalPrice implements Serializable {
28
+
29
+    private static final long serialVersionUID = 1L;
30
+
31
+    @ApiModelProperty(value = "主键ID")
32
+    @TableId(value = "id", type = IdType.AUTO)
33
+    private Integer id;
34
+
35
+    @ApiModelProperty(value = "创建人")
36
+    @TableField("createname")
37
+    private String createname;
38
+
39
+    @ApiModelProperty(value = "创建日期")
40
+    @TableField("createdate")
41
+    private Date createdate;
42
+
43
+    @ApiModelProperty(value = "更新人")
44
+    @TableField("updatename")
45
+    private String updatename;
46
+
47
+    @ApiModelProperty(value = "更新日期")
48
+    @TableField("updatedate")
49
+    private Date updatedate;
50
+
51
+    @ApiModelProperty(value = "business_fs_sale_revenue的ID;")
52
+    @TableField("fs_sale_revenue_id")
53
+    private Integer fsSaleRevenueId;
54
+
55
+    @ApiModelProperty(value = "原粮专卡ID;grain_situation_card的ID;")
56
+    @TableField("grain_situation_card_id")
57
+    private Integer grainSituationCardId;
58
+
59
+    @ApiModelProperty(value = "入库金额")
60
+    @TableField("storage_amount")
61
+    private BigDecimal storageAmount;
62
+
63
+    @ApiModelProperty(value = "文件号")
64
+    @TableField("document_number")
65
+    private String documentNumber;
66
+
67
+    @ApiModelProperty(value = "文档上传")
68
+    @TableField("document_upload")
69
+    private String documentUpload;
70
+
71
+
72
+}

+ 76 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueDiffPrice.java

@@ -0,0 +1,76 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.model;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.TableName;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import java.util.Date;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import com.baomidou.mybatisplus.annotation.TableField;
9
+import java.io.Serializable;
10
+import io.swagger.annotations.ApiModel;
11
+import io.swagger.annotations.ApiModelProperty;
12
+import lombok.Data;
13
+import lombok.EqualsAndHashCode;
14
+
15
+/**
16
+ * <p>
17
+ * 财务监管-销售收入上缴-差额上缴
18
+ * </p>
19
+ *
20
+ * @author root
21
+ * @since 2024-07-24
22
+ */
23
+@Data
24
+@EqualsAndHashCode(callSuper = false)
25
+@TableName("business_fs_sale_revenue_diff_price")
26
+@ApiModel(value="BusinessFsSaleRevenueDiffPrice对象", description="财务监管-销售收入上缴-差额上缴")
27
+public class BusinessFsSaleRevenueDiffPrice implements Serializable {
28
+
29
+    private static final long serialVersionUID = 1L;
30
+
31
+    @ApiModelProperty(value = "主键ID")
32
+    @TableId(value = "id", type = IdType.AUTO)
33
+    private Integer id;
34
+
35
+    @ApiModelProperty(value = "创建人")
36
+    @TableField("createname")
37
+    private String createname;
38
+
39
+    @ApiModelProperty(value = "创建日期")
40
+    @TableField("createdate")
41
+    private Date createdate;
42
+
43
+    @ApiModelProperty(value = "更新人")
44
+    @TableField("updatename")
45
+    private String updatename;
46
+
47
+    @ApiModelProperty(value = "更新日期")
48
+    @TableField("updatedate")
49
+    private Date updatedate;
50
+
51
+    @ApiModelProperty(value = "business_fs_sale_revenue的ID;")
52
+    @TableField("fs_sale_revenue_id")
53
+    private Integer fsSaleRevenueId;
54
+
55
+    @ApiModelProperty(value = "项目类型 1:销售;2:损耗;3:入库(用负数表示);4:交易手续费(用负数表示);")
56
+    @TableField("project_type")
57
+    private Integer projectType;
58
+
59
+    @ApiModelProperty(value = "数量")
60
+    @TableField("total_quantity")
61
+    private BigDecimal totalQuantity;
62
+
63
+    @ApiModelProperty(value = "省平台修改-数量")
64
+    @TableField("province_total_quantity")
65
+    private BigDecimal provinceTotalQuantity;
66
+
67
+    @ApiModelProperty(value = "金额")
68
+    @TableField("total_amount")
69
+    private BigDecimal totalAmount;
70
+
71
+    @ApiModelProperty(value = "省平台修改-金额")
72
+    @TableField("province_total_amount")
73
+    private BigDecimal provinceTotalAmount;
74
+
75
+
76
+}

+ 126 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueInspectionLoss.java

@@ -0,0 +1,126 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import com.baomidou.mybatisplus.annotation.IdType;
5
+import java.util.Date;
6
+import com.baomidou.mybatisplus.annotation.TableId;
7
+import com.baomidou.mybatisplus.annotation.TableField;
8
+import java.io.Serializable;
9
+import io.swagger.annotations.ApiModel;
10
+import io.swagger.annotations.ApiModelProperty;
11
+import lombok.Data;
12
+import lombok.EqualsAndHashCode;
13
+
14
+/**
15
+ * <p>
16
+ * 财务监管-销售收入上缴-质检损益信息
17
+ * </p>
18
+ *
19
+ * @author root
20
+ * @since 2024-07-24
21
+ */
22
+@Data
23
+@EqualsAndHashCode(callSuper = false)
24
+@TableName("business_fs_sale_revenue_inspection_loss")
25
+@ApiModel(value="BusinessFsSaleRevenueInspectionLoss对象", description="财务监管-销售收入上缴-质检损益信息")
26
+public class BusinessFsSaleRevenueInspectionLoss implements Serializable {
27
+
28
+    private static final long serialVersionUID = 1L;
29
+
30
+    @ApiModelProperty(value = "主键ID")
31
+    @TableId(value = "id", type = IdType.AUTO)
32
+    private Integer id;
33
+
34
+    @ApiModelProperty(value = "创建人")
35
+    @TableField("createname")
36
+    private String createname;
37
+
38
+    @ApiModelProperty(value = "创建日期")
39
+    @TableField("createdate")
40
+    private Date createdate;
41
+
42
+    @ApiModelProperty(value = "更新人")
43
+    @TableField("updatename")
44
+    private String updatename;
45
+
46
+    @ApiModelProperty(value = "更新日期")
47
+    @TableField("updatedate")
48
+    private Date updatedate;
49
+
50
+    @ApiModelProperty(value = "business_fs_sale_revenue的ID;")
51
+    @TableField("fs_sale_revenue_id")
52
+    private Integer fsSaleRevenueId;
53
+
54
+    @ApiModelProperty(value = "出库质检报告;business_qc_quality_inspection的id;")
55
+    @TableField("qc_quality_inspection_id_out")
56
+    private Integer qcQualityInspectionIdOut;
57
+
58
+    @ApiModelProperty(value = "入库质检报告;business_qc_quality_inspection的id;")
59
+    @TableField("qc_quality_inspection_id_in")
60
+    private Integer qcQualityInspectionIdIn;
61
+
62
+    @ApiModelProperty(value = "损溢损失信息;business_gslr_loss_collect的id;")
63
+    @TableField("gslr_loss_collect_id")
64
+    private Integer gslrLossCollectId;
65
+
66
+    // 业务数据
67
+    @ApiModelProperty(value = "报告单号-入库单号")
68
+    @TableField(exist = false)
69
+    private String zjbgdhIn;
70
+
71
+    @ApiModelProperty(value = "仓房名称")
72
+    @TableField(exist = false)
73
+    private String storehouseName;
74
+
75
+    @ApiModelProperty(value = "货位名称")
76
+    @TableField(exist = false)
77
+    private String warehouseName;
78
+
79
+    @ApiModelProperty(value = "入仓杂质")
80
+    @TableField(exist = false)
81
+    private String zzIn;
82
+
83
+    @ApiModelProperty(value = "入仓水分")
84
+    @TableField(exist = false)
85
+    private String sfIn;
86
+
87
+    @ApiModelProperty(value = "报告单号-出库单号")
88
+    @TableField(exist = false)
89
+    private String zjbgdhOut;
90
+
91
+    @ApiModelProperty(value = "出仓杂质")
92
+    @TableField(exist = false)
93
+    private String zzOut;
94
+
95
+    @ApiModelProperty(value = "出仓水分")
96
+    @TableField(exist = false)
97
+    private String sfOut;
98
+
99
+    @ApiModelProperty(value = "实际损耗量(公斤)")
100
+    @TableField(exist = false)
101
+    private String actualLossQuantity;
102
+
103
+    @ApiModelProperty(value = "定额损耗小计(公斤)")
104
+    @TableField(exist = false)
105
+    private String quotaLoss;
106
+
107
+    @ApiModelProperty(value = "保管损耗(公斤)")
108
+    @TableField(exist = false)
109
+    private String naturalLoss;
110
+
111
+    @ApiModelProperty(value = "水分减量(公斤)")
112
+    @TableField(exist = false)
113
+    private String moistureLoss;
114
+
115
+    @ApiModelProperty(value = "杂质减量(公斤)")
116
+    @TableField(exist = false)
117
+    private String impurityReductionQuality;
118
+
119
+    @ApiModelProperty(value = "超耗数量(公斤)")
120
+    @TableField(exist = false)
121
+    private String excessLossQuantity;
122
+
123
+    @ApiModelProperty(value = "超耗原因")
124
+    @TableField(exist = false)
125
+    private String lossProfitReason;
126
+}

+ 108 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueSettle.java

@@ -0,0 +1,108 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.model;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.TableName;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import java.util.Date;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import com.baomidou.mybatisplus.annotation.TableField;
9
+import java.io.Serializable;
10
+import io.swagger.annotations.ApiModel;
11
+import io.swagger.annotations.ApiModelProperty;
12
+import lombok.Data;
13
+import lombok.EqualsAndHashCode;
14
+
15
+/**
16
+ * <p>
17
+ * 财务监管-销售收入上缴-结算信息
18
+ * </p>
19
+ *
20
+ * @author root
21
+ * @since 2024-07-24
22
+ */
23
+@Data
24
+@EqualsAndHashCode(callSuper = false)
25
+@TableName("business_fs_sale_revenue_settle")
26
+@ApiModel(value="BusinessFsSaleRevenueSettle对象", description="财务监管-销售收入上缴-结算信息")
27
+public class BusinessFsSaleRevenueSettle implements Serializable {
28
+
29
+    private static final long serialVersionUID = 1L;
30
+
31
+    @ApiModelProperty(value = "主键ID")
32
+    @TableId(value = "id", type = IdType.AUTO)
33
+    private Integer id;
34
+
35
+    @ApiModelProperty(value = "创建人")
36
+    @TableField("createname")
37
+    private String createname;
38
+
39
+    @ApiModelProperty(value = "创建日期")
40
+    @TableField("createdate")
41
+    private Date createdate;
42
+
43
+    @ApiModelProperty(value = "更新人")
44
+    @TableField("updatename")
45
+    private String updatename;
46
+
47
+    @ApiModelProperty(value = "更新日期")
48
+    @TableField("updatedate")
49
+    private Date updatedate;
50
+
51
+    @ApiModelProperty(value = "business_fs_sale_revenue的ID;")
52
+    @TableField("fs_sale_revenue_id")
53
+    private Integer fsSaleRevenueId;
54
+
55
+    @ApiModelProperty(value = "business_fs_out_confirm的ID;")
56
+    @TableField("fs_out_confirm_id")
57
+    private Integer fsOutConfirmId;
58
+
59
+    @ApiModelProperty(value = "省平台修改-出库验收确认-销往单位")
60
+    @TableField("province_acceptance_unit")
61
+    private String provinceAcceptanceUnit;
62
+
63
+    @ApiModelProperty(value = "省平台修改-出库确认单-数量(吨)")
64
+    @TableField("province_total_settle_quantity")
65
+    private BigDecimal provinceTotalSettleQuantity;
66
+
67
+    @ApiModelProperty(value = "省平台修改-出库确认单-金额,单位:元")
68
+    @TableField("province_total_settle_amount")
69
+    private BigDecimal provinceTotalSettleAmount;
70
+
71
+    @ApiModelProperty(value = "省平台修改-贷款收回情况-单位")
72
+    @TableField("province_loan_recovery_unit")
73
+    private String provinceLoanRecoveryUnit;
74
+
75
+    @ApiModelProperty(value = "省平台修改-贷款收回情况-数量")
76
+    @TableField("province_loan_recovery_quantity")
77
+    private BigDecimal provinceLoanRecoveryQuantity;
78
+
79
+    @ApiModelProperty(value = "省平台修改-贷款收回情况-金额")
80
+    @TableField("province_loan_recovery_amount")
81
+    private BigDecimal provinceLoanRecoveryAmount;
82
+
83
+    @ApiModelProperty(value = "省平台修改-销售发票情况-单位")
84
+    @TableField("province_invoice_unit")
85
+    private String provinceInvoiceUnit;
86
+
87
+    @ApiModelProperty(value = "省平台修改-销售发票情况-发票数量")
88
+    @TableField("province_invoice_quantity")
89
+    private Integer provinceInvoiceQuantity;
90
+
91
+    @ApiModelProperty(value = "省平台修改-销售发票情况-发票单价")
92
+    @TableField("province_invoice_unit_price")
93
+    private BigDecimal provinceInvoiceUnitPrice;
94
+
95
+    @ApiModelProperty(value = "省平台修改-销售发票情况-发票金额")
96
+    @TableField("province_invoice_amount")
97
+    private BigDecimal provinceInvoiceAmount;
98
+
99
+    @ApiModelProperty(value = "省平台修改-贷款归还-日期")
100
+    @TableField("province_loan_return_time")
101
+    private Date provinceLoanReturnTime;
102
+
103
+    @ApiModelProperty(value = "省平台修改-贷款归还-金额")
104
+    @TableField("province_loan_return_amount")
105
+    private BigDecimal provinceLoanReturnAmount;
106
+
107
+
108
+}

+ 134 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/model/BusinessFsSaleRevenueThreeConsistence.java

@@ -0,0 +1,134 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.model;
2
+
3
+import java.math.BigDecimal;
4
+import com.baomidou.mybatisplus.annotation.TableName;
5
+import com.baomidou.mybatisplus.annotation.IdType;
6
+import java.util.Date;
7
+import com.baomidou.mybatisplus.annotation.TableId;
8
+import com.baomidou.mybatisplus.annotation.TableField;
9
+import java.io.Serializable;
10
+import io.swagger.annotations.ApiModel;
11
+import io.swagger.annotations.ApiModelProperty;
12
+import lombok.Data;
13
+import lombok.EqualsAndHashCode;
14
+
15
+/**
16
+ * <p>
17
+ * 财务监管-销售收入上缴-三账一致性
18
+ * </p>
19
+ *
20
+ * @author root
21
+ * @since 2024-07-24
22
+ */
23
+@Data
24
+@EqualsAndHashCode(callSuper = false)
25
+@TableName("business_fs_sale_revenue_three_consistence")
26
+@ApiModel(value="BusinessFsSaleRevenueThreeConsistence对象", description="财务监管-销售收入上缴-三账一致性")
27
+public class BusinessFsSaleRevenueThreeConsistence implements Serializable {
28
+
29
+    private static final long serialVersionUID = 1L;
30
+
31
+    @ApiModelProperty(value = "主键ID")
32
+    @TableId(value = "id", type = IdType.AUTO)
33
+    private Integer id;
34
+
35
+    @ApiModelProperty(value = "创建人")
36
+    @TableField("createname")
37
+    private String createname;
38
+
39
+    @ApiModelProperty(value = "创建日期")
40
+    @TableField("createdate")
41
+    private Date createdate;
42
+
43
+    @ApiModelProperty(value = "更新人")
44
+    @TableField("updatename")
45
+    private String updatename;
46
+
47
+    @ApiModelProperty(value = "更新日期")
48
+    @TableField("updatedate")
49
+    private Date updatedate;
50
+
51
+    @ApiModelProperty(value = "business_fs_sale_revenue的ID")
52
+    @TableField("fs_sale_revenue_id")
53
+    private Integer fsSaleRevenueId;
54
+
55
+    @ApiModelProperty(value = "年")
56
+    @TableField("year")
57
+    private Date year;
58
+
59
+    @ApiModelProperty(value = "月份")
60
+    @TableField("month")
61
+    private String month;
62
+
63
+    @ApiModelProperty(value = "出库情况-仓号;basic_storehouse的id;仓房id")
64
+    @TableField("basic_storehouse_id")
65
+    private Integer basicStorehouseId;
66
+
67
+    @ApiModelProperty(value = "basic_warehouse的id;货位id;")
68
+    @TableField("warehouse_id")
69
+    private Integer warehouseId;
70
+
71
+    @ApiModelProperty(value = "出库情况-其中:损耗")
72
+    @TableField("loss")
73
+    private BigDecimal loss;
74
+
75
+    @ApiModelProperty(value = "省平台修改-出库情况-其中:损耗")
76
+    @TableField("province_loss")
77
+    private BigDecimal provinceLoss;
78
+
79
+    @ApiModelProperty(value = "出库情况-保管账数量")
80
+    @TableField("custody_account_quantity")
81
+    private BigDecimal custodyAccountQuantity;
82
+
83
+    @ApiModelProperty(value = "省平台修改-出库情况-保管账数量")
84
+    @TableField("province_custody_account_quantity")
85
+    private String provinceCustodyAccountQuantity;
86
+
87
+    @ApiModelProperty(value = "出库情况-统计账数量,单位:公斤;")
88
+    @TableField("statistical_account_quantity")
89
+    private BigDecimal statisticalAccountQuantity;
90
+
91
+    @ApiModelProperty(value = "省平台修改-出库情况-统计账数量,单位:公斤;")
92
+    @TableField("province_statistical_account_quantity")
93
+    private BigDecimal provinceStatisticalAccountQuantity;
94
+
95
+    @ApiModelProperty(value = "完成时间")
96
+    @TableField("complete_time")
97
+    private Date completeTime;
98
+
99
+    @ApiModelProperty(value = "省平台修改-完成时间")
100
+    @TableField("province_complete_time")
101
+    private Date provinceCompleteTime;
102
+
103
+    @ApiModelProperty(value = "会计账-数量,单位:公斤")
104
+    @TableField("accounting_quantity")
105
+    private BigDecimal accountingQuantity;
106
+
107
+    @ApiModelProperty(value = "省平台修改-会计账-数量,单位:公斤;")
108
+    @TableField("province_accounting_quantity")
109
+    private BigDecimal provinceAccountingQuantity;
110
+
111
+    @ApiModelProperty(value = "会计账-单价,单位:元/公斤")
112
+    @TableField("accounting_unit_price")
113
+    private BigDecimal accountingUnitPrice;
114
+
115
+    @ApiModelProperty(value = "省平台修改-会计账-单价,单位:元/公斤")
116
+    @TableField("province_accounting_unit_price")
117
+    private BigDecimal provinceAccountingUnitPrice;
118
+
119
+    @ApiModelProperty(value = "会计账-金额,单位:元")
120
+    @TableField("accounting_amount")
121
+    private BigDecimal accountingAmount;
122
+
123
+    @ApiModelProperty(value = "省平台修改-会计账-金额,单位:元")
124
+    @TableField("province_accounting_amount")
125
+    private BigDecimal provinceAccountingAmount;
126
+
127
+    @ApiModelProperty(value = "仓房名称")
128
+    @TableField(exist = false)
129
+    private String storehouseName;
130
+
131
+    @ApiModelProperty(value = "货位名称")
132
+    @TableField(exist = false)
133
+    private String warehouseName;
134
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueApprovalPriceService.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueApprovalPrice;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-原核定入库价格 服务类
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueApprovalPriceService extends IService<BusinessFsSaleRevenueApprovalPrice> {
15
+
16
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueDiffPriceService.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueDiffPrice;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-差额上缴 服务类
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueDiffPriceService extends IService<BusinessFsSaleRevenueDiffPrice> {
15
+
16
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueInspectionLossService.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueInspectionLoss;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-质检损益信息 服务类
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueInspectionLossService extends IService<BusinessFsSaleRevenueInspectionLoss> {
15
+
16
+}

+ 29 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueService.java

@@ -0,0 +1,29 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.*;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * <p>
10
+ * 财务监管-销售收入上缴 服务类
11
+ * </p>
12
+ *
13
+ * @author root
14
+ * @since 2024-07-24
15
+ */
16
+public interface BusinessFsSaleRevenueService extends IService<BusinessFsSaleRevenue> {
17
+
18
+    void saveData(BusinessFsSaleRevenue param);
19
+
20
+    List<BusinessContract> getContractInfo(Integer orgId);
21
+
22
+    List<BusinessContractDetail> getContractInfoList(Integer id);
23
+
24
+    List<BusinessFsSaleRevenueInspectionLoss> getQualityInfo(Integer orgId, Integer basicStorehouseId, Integer warehouseId);
25
+
26
+    List<BusinessFsSaleRevenueThreeConsistence> getConsistenceAccountInfo(String contractNumber);
27
+
28
+    List<BusinessFsSaleRevenueThreeConsistence> getOutStorageInfo(String contractNumber);
29
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueSettleService.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueSettle;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-结算信息 服务类
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueSettleService extends IService<BusinessFsSaleRevenueSettle> {
15
+
16
+}

+ 16 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/BusinessFsSaleRevenueThreeConsistenceService.java

@@ -0,0 +1,16 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueThreeConsistence;
4
+import com.baomidou.mybatisplus.extension.service.IService;
5
+
6
+/**
7
+ * <p>
8
+ * 财务监管-销售收入上缴-三账一致性 服务类
9
+ * </p>
10
+ *
11
+ * @author root
12
+ * @since 2024-07-24
13
+ */
14
+public interface BusinessFsSaleRevenueThreeConsistenceService extends IService<BusinessFsSaleRevenueThreeConsistence> {
15
+
16
+}

+ 20 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueApprovalPriceServiceImpl.java

@@ -0,0 +1,20 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service.impl;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueApprovalPrice;
4
+import com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueApprovalPriceMapper;
5
+import com.chinaitop.depot.intelligent.priceApproval.service.BusinessFsSaleRevenueApprovalPriceService;
6
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 财务监管-销售收入上缴-原核定入库价格 服务实现类
12
+ * </p>
13
+ *
14
+ * @author root
15
+ * @since 2024-07-24
16
+ */
17
+@Service
18
+public class BusinessFsSaleRevenueApprovalPriceServiceImpl extends ServiceImpl<BusinessFsSaleRevenueApprovalPriceMapper, BusinessFsSaleRevenueApprovalPrice> implements BusinessFsSaleRevenueApprovalPriceService {
19
+
20
+}

+ 20 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueDiffPriceServiceImpl.java

@@ -0,0 +1,20 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service.impl;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueDiffPrice;
4
+import com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueDiffPriceMapper;
5
+import com.chinaitop.depot.intelligent.priceApproval.service.BusinessFsSaleRevenueDiffPriceService;
6
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 财务监管-销售收入上缴-差额上缴 服务实现类
12
+ * </p>
13
+ *
14
+ * @author root
15
+ * @since 2024-07-24
16
+ */
17
+@Service
18
+public class BusinessFsSaleRevenueDiffPriceServiceImpl extends ServiceImpl<BusinessFsSaleRevenueDiffPriceMapper, BusinessFsSaleRevenueDiffPrice> implements BusinessFsSaleRevenueDiffPriceService {
19
+
20
+}

+ 20 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueInspectionLossServiceImpl.java

@@ -0,0 +1,20 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service.impl;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueInspectionLoss;
4
+import com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueInspectionLossMapper;
5
+import com.chinaitop.depot.intelligent.priceApproval.service.BusinessFsSaleRevenueInspectionLossService;
6
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 财务监管-销售收入上缴-质检损益信息 服务实现类
12
+ * </p>
13
+ *
14
+ * @author root
15
+ * @since 2024-07-24
16
+ */
17
+@Service
18
+public class BusinessFsSaleRevenueInspectionLossServiceImpl extends ServiceImpl<BusinessFsSaleRevenueInspectionLossMapper, BusinessFsSaleRevenueInspectionLoss> implements BusinessFsSaleRevenueInspectionLossService {
19
+
20
+}

+ 131 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueServiceImpl.java

@@ -0,0 +1,131 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service.impl;
2
+
3
+import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
4
+import com.chinaitop.depot.intelligent.priceApproval.mapper.*;
5
+import com.chinaitop.depot.intelligent.priceApproval.model.*;
6
+import com.chinaitop.depot.intelligent.priceApproval.service.BusinessFsSaleRevenueService;
7
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
8
+import org.springframework.stereotype.Service;
9
+import org.springframework.transaction.annotation.Transactional;
10
+
11
+import javax.annotation.Resource;
12
+import java.util.HashMap;
13
+import java.util.List;
14
+import java.util.Map;
15
+
16
+/**
17
+ * <p>
18
+ * 财务监管-销售收入上缴 服务实现类
19
+ * </p>
20
+ *
21
+ * @author root
22
+ * @since 2024-07-24
23
+ */
24
+@Service
25
+public class BusinessFsSaleRevenueServiceImpl extends ServiceImpl<BusinessFsSaleRevenueMapper, BusinessFsSaleRevenue> implements BusinessFsSaleRevenueService {
26
+    @Resource
27
+    private BusinessFsSaleRevenueMapper saleRevenueMapper;
28
+    @Resource
29
+    private BusinessFsSaleRevenueInspectionLossMapper saleRevenueInspectionLossMapper;
30
+    @Resource
31
+    private BusinessFsSaleRevenueThreeConsistenceMapper threeConsistenceMapper;
32
+    @Resource
33
+    private BusinessFsSaleRevenueSettleMapper settleMapper;
34
+    @Resource
35
+    private BusinessFsSaleRevenueApprovalPriceMapper approvalPriceMapper;
36
+    @Resource
37
+    private BusinessFsSaleRevenueDiffPriceMapper diffPriceMapper;
38
+
39
+    @Override
40
+    @Transactional(rollbackFor = Exception.class)
41
+    public void saveData(BusinessFsSaleRevenue param) {
42
+        // 保存主表
43
+        saleRevenueMapper.insert(param);
44
+        // 保存子表-质检损益信息
45
+        this.saveInspectionLoss(param);
46
+        // 保存子表-三账一致性
47
+        this.saveThreeConsistence(param);
48
+        // 保存子表-结算信息
49
+        this.saveSettle(param);
50
+        // 保存子表-原核定入库价格
51
+        this.saveApprovalPrice(param);
52
+        // 保存子表-差价上缴
53
+        this.saveDiffPrice(param);
54
+    }
55
+
56
+    @Override
57
+    public List<BusinessContract> getContractInfo(Integer orgId) {
58
+        return saleRevenueMapper.getContractInfo(orgId);
59
+    }
60
+
61
+    @Override
62
+    public List<BusinessContractDetail> getContractInfoList(Integer id) {
63
+        return saleRevenueMapper.getContractInfoList(id);
64
+    }
65
+
66
+    @Override
67
+    public List<BusinessFsSaleRevenueInspectionLoss> getQualityInfo(Integer orgId, Integer basicStorehouseId, Integer warehouseId) {
68
+        Map<String, Object> map = new HashMap<>();
69
+        map.put("orgId", orgId);
70
+        map.put("basicStorehouseId", basicStorehouseId);
71
+        map.put("warehouseId", warehouseId);
72
+        return saleRevenueMapper.getQualityInfo(map);
73
+    }
74
+
75
+    @Override
76
+    public List<BusinessFsSaleRevenueThreeConsistence> getConsistenceAccountInfo(String contractNumber) {
77
+        return saleRevenueMapper.getConsistenceAccountInfo(contractNumber);
78
+    }
79
+
80
+    @Override
81
+    public List<BusinessFsSaleRevenueThreeConsistence> getOutStorageInfo(String contractNumber) {
82
+        return null;
83
+    }
84
+
85
+    // 保存子表-质检损益信息
86
+    private void saveInspectionLoss(BusinessFsSaleRevenue param) {
87
+        if (CollectionUtils.isNotEmpty(param.getInspectionLossList())) {
88
+            param.getInspectionLossList().forEach(inspectionLoss -> {
89
+                inspectionLoss.setFsSaleRevenueId(param.getId());
90
+                saleRevenueInspectionLossMapper.insert(inspectionLoss);
91
+            });
92
+        }
93
+    }
94
+
95
+    // 保存子表-三账一致性
96
+    private void saveThreeConsistence(BusinessFsSaleRevenue param) {
97
+        if (CollectionUtils.isNotEmpty(param.getThreeConsistenceList())) {
98
+            param.getThreeConsistenceList().forEach(threeConsistence -> {
99
+                threeConsistence.setFsSaleRevenueId(param.getId());
100
+                threeConsistenceMapper.insert(threeConsistence);
101
+            });
102
+        }
103
+    }
104
+    // 保存子表-结算信息
105
+    private void saveSettle(BusinessFsSaleRevenue param) {
106
+        if (CollectionUtils.isNotEmpty(param.getRevenueSettleList())) {
107
+            param.getRevenueSettleList().forEach(settle -> {
108
+                settle.setFsSaleRevenueId(param.getId());
109
+                settleMapper.insert(settle);
110
+            });
111
+        }
112
+    }
113
+    // 保存子表-原核定入库价格
114
+    private void saveApprovalPrice(BusinessFsSaleRevenue param) {
115
+        if (CollectionUtils.isNotEmpty(param.getApprovalPriceList())) {
116
+            param.getApprovalPriceList().forEach(approvalPrice -> {
117
+                approvalPrice.setFsSaleRevenueId(param.getId());
118
+                approvalPriceMapper.insert(approvalPrice);
119
+            });
120
+        }
121
+    }
122
+    // 保存子表-差价上缴
123
+    private void saveDiffPrice(BusinessFsSaleRevenue param) {
124
+        if (CollectionUtils.isNotEmpty(param.getDiffPriceList())) {
125
+            param.getDiffPriceList().forEach(diffPrice -> {
126
+                diffPrice.setFsSaleRevenueId(param.getId());
127
+                diffPriceMapper.insert(diffPrice);
128
+            });
129
+        }
130
+    }
131
+}

+ 20 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueSettleServiceImpl.java

@@ -0,0 +1,20 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service.impl;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueSettle;
4
+import com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueSettleMapper;
5
+import com.chinaitop.depot.intelligent.priceApproval.service.BusinessFsSaleRevenueSettleService;
6
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 财务监管-销售收入上缴-结算信息 服务实现类
12
+ * </p>
13
+ *
14
+ * @author root
15
+ * @since 2024-07-24
16
+ */
17
+@Service
18
+public class BusinessFsSaleRevenueSettleServiceImpl extends ServiceImpl<BusinessFsSaleRevenueSettleMapper, BusinessFsSaleRevenueSettle> implements BusinessFsSaleRevenueSettleService {
19
+
20
+}

+ 20 - 0
src/main/java/com/chinaitop/depot/intelligent/priceApproval/service/impl/BusinessFsSaleRevenueThreeConsistenceServiceImpl.java

@@ -0,0 +1,20 @@
1
+package com.chinaitop.depot.intelligent.priceApproval.service.impl;
2
+
3
+import com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueThreeConsistence;
4
+import com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueThreeConsistenceMapper;
5
+import com.chinaitop.depot.intelligent.priceApproval.service.BusinessFsSaleRevenueThreeConsistenceService;
6
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 财务监管-销售收入上缴-三账一致性 服务实现类
12
+ * </p>
13
+ *
14
+ * @author root
15
+ * @since 2024-07-24
16
+ */
17
+@Service
18
+public class BusinessFsSaleRevenueThreeConsistenceServiceImpl extends ServiceImpl<BusinessFsSaleRevenueThreeConsistenceMapper, BusinessFsSaleRevenueThreeConsistence> implements BusinessFsSaleRevenueThreeConsistenceService {
19
+
20
+}

+ 24 - 0
src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueApprovalPriceMapper.xml

@@ -0,0 +1,24 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueApprovalPriceMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueApprovalPrice">
7
+        <id column="id" property="id" />
8
+        <result column="createname" property="createname" />
9
+        <result column="createdate" property="createdate" />
10
+        <result column="updatename" property="updatename" />
11
+        <result column="updatedate" property="updatedate" />
12
+        <result column="fs_sale_revenue_id" property="fsSaleRevenueId" />
13
+        <result column="grain_situation_card_id" property="grainSituationCardId" />
14
+        <result column="storage_amount" property="storageAmount" />
15
+        <result column="document_number" property="documentNumber" />
16
+        <result column="document_upload" property="documentUpload" />
17
+    </resultMap>
18
+
19
+    <!-- 通用查询结果列 -->
20
+    <sql id="Base_Column_List">
21
+        id, createname, createdate, updatename, updatedate, fs_sale_revenue_id, grain_situation_card_id, storage_amount, document_number, document_upload
22
+    </sql>
23
+
24
+</mapper>

+ 25 - 0
src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueDiffPriceMapper.xml

@@ -0,0 +1,25 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueDiffPriceMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueDiffPrice">
7
+        <id column="id" property="id" />
8
+        <result column="createname" property="createname" />
9
+        <result column="createdate" property="createdate" />
10
+        <result column="updatename" property="updatename" />
11
+        <result column="updatedate" property="updatedate" />
12
+        <result column="fs_sale_revenue_id" property="fsSaleRevenueId" />
13
+        <result column="project_type" property="projectType" />
14
+        <result column="total_quantity" property="totalQuantity" />
15
+        <result column="province_total_quantity" property="provinceTotalQuantity" />
16
+        <result column="total_amount" property="totalAmount" />
17
+        <result column="province_total_amount" property="provinceTotalAmount" />
18
+    </resultMap>
19
+
20
+    <!-- 通用查询结果列 -->
21
+    <sql id="Base_Column_List">
22
+        id, createname, createdate, updatename, updatedate, fs_sale_revenue_id, project_type, total_quantity, province_total_quantity, total_amount, province_total_amount
23
+    </sql>
24
+
25
+</mapper>

+ 23 - 0
src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueInspectionLossMapper.xml

@@ -0,0 +1,23 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueInspectionLossMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueInspectionLoss">
7
+        <id column="id" property="id" />
8
+        <result column="createname" property="createname" />
9
+        <result column="createdate" property="createdate" />
10
+        <result column="updatename" property="updatename" />
11
+        <result column="updatedate" property="updatedate" />
12
+        <result column="fs_sale_revenue_id" property="fsSaleRevenueId" />
13
+        <result column="qc_quality_inspection_id_out" property="qcQualityInspectionIdOut" />
14
+        <result column="qc_quality_inspection_id_in" property="qcQualityInspectionIdIn" />
15
+        <result column="gslr_loss_collect_id" property="gslrLossCollectId" />
16
+    </resultMap>
17
+
18
+    <!-- 通用查询结果列 -->
19
+    <sql id="Base_Column_List">
20
+        id, createname, createdate, updatename, updatedate, fs_sale_revenue_id, qc_quality_inspection_id_out, qc_quality_inspection_id_in, gslr_loss_collect_id
21
+    </sql>
22
+
23
+</mapper>

+ 154 - 0
src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueMapper.xml

@@ -0,0 +1,154 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenue">
7
+        <id column="id" property="id" />
8
+        <result column="createname" property="createname" />
9
+        <result column="createdate" property="createdate" />
10
+        <result column="updatename" property="updatename" />
11
+        <result column="updatedate" property="updatedate" />
12
+        <result column="org_id" property="orgId" />
13
+        <result column="report_time" property="reportTime" />
14
+        <result column="plan_type" property="planType" />
15
+        <result column="sales_unit" property="salesUnit" />
16
+        <result column="contract_id" property="contractId" />
17
+        <result column="problem_feedback" property="problemFeedback" />
18
+        <result column="status" property="status" />
19
+    </resultMap>
20
+
21
+    <!-- 通用查询结果列 -->
22
+    <sql id="Base_Column_List">
23
+        id, createname, createdate, updatename, updatedate, org_id, report_time, plan_type, sales_unit, contract_id, problem_feedback, status
24
+    </sql>
25
+    <select id="getContractInfo" parameterType="integer" resultType="com.chinaitop.depot.intelligent.priceApproval.model.BusinessContract">
26
+        SELECT
27
+            id,
28
+            contract_number contractNumber,
29
+            contract_title contractTitle,
30
+            signing_time signingTime,
31
+            attachment
32
+        FROM
33
+          business_contract
34
+        WHERE
35
+          audit_state = 2
36
+        AND in_application != 3
37
+        AND in_application != 4
38
+        AND contract_type = 3148
39
+        AND org_id = #{orgId}
40
+    </select>
41
+    <select id="getContractInfoList" parameterType="integer" resultType="com.chinaitop.depot.intelligent.priceApproval.model.BusinessContractDetail">
42
+        SELECT
43
+            swd.id,
44
+            swd.house_name houseName,
45
+	        swd.warehouse_name warehouseName,
46
+            swd.grain_kind grainKind,
47
+            be.enumname grainKindName,
48
+            swd.in_count inCount,
49
+            swd.in_price inPrice,
50
+            swd.in_detail_total_price inDetailTotalPrice
51
+        FROM
52
+            business_store_ware_detail swd
53
+        LEFT JOIN basic_enum be ON be.enumId = swd.grain_kind
54
+        WHERE
55
+            swd.zid = #{id}
56
+    </select>
57
+    <select id="getQualityInfo" parameterType="map" resultType="com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueInspectionLoss">
58
+        SELECT
59
+            t1.qcQualityInspectionIdIn,
60
+            t1.zjbgdhIn,
61
+            t1.storehouseName,
62
+            t1.warehouseName,
63
+            t1.zzIn,
64
+            t1.sfIn,
65
+            t2.qcQualityInspectionIdOut,
66
+            t2.zjbgdhOut,
67
+            t2.zzOut,
68
+            t2.sfOut,
69
+            t3.gslrLossCollectId,
70
+            t3.actualLossQuantity,
71
+            t3.quotaLoss,
72
+            t3.naturalLoss,
73
+            t3.moistureLoss,
74
+            t3.impurityReductionQuality,
75
+            t3.excessLossQuantity,
76
+            t3.lossProfitReason
77
+        FROM
78
+        (
79
+        SELECT
80
+                qi.id qcQualityInspectionIdIn,
81
+                qi.org_id,
82
+                qi.zjbgdh zjbgdhIn,
83
+                bs.storehouse_name storehouseName,
84
+                bw.warehouse_name warehouseName,
85
+                SUM(CASE WHEN qii.inspection_item_id = 7619 THEN qii.inspection_value ELSE 0 END) zzIn,
86
+                SUM(CASE WHEN qii.inspection_item_id = 9528239 THEN qii.inspection_value ELSE 0 END) sfIn
87
+        FROM
88
+                business_qc_quality_inspection qi
89
+        LEFT JOIN basic_storehouse bs ON qi.basic_storehouse_id = bs.storehouse_id
90
+        LEFT JOIN basic_warehouse bw ON qi.warehouse_id = bw.warehouse_id
91
+        LEFT JOIN business_qc_quality_inspection_item qii ON qi.id = qii.qc_quality_inspection_id
92
+        WHERE
93
+                qi.jylb = '01'
94
+        AND qi.org_id = #{orgId}
95
+        AND qi.basic_storehouse_id = #{basicStorehouseId}
96
+        AND qi.warehouse_id = #{warehouseId}
97
+        ) t1 INNER JOIN
98
+        (
99
+        SELECT
100
+                qi.id qcQualityInspectionIdOut,
101
+                qi.org_id,
102
+                qi.zjbgdh zjbgdhOut,
103
+                bs.storehouse_name storehouseName,
104
+                bw.warehouse_name warehouseName,
105
+                SUM(CASE WHEN qii.inspection_item_id = 7619 THEN qii.inspection_value ELSE 0 END) zzOut,
106
+                SUM(CASE WHEN qii.inspection_item_id = 9528239 THEN qii.inspection_value ELSE 0 END) sfOut
107
+        FROM
108
+                business_qc_quality_inspection qi
109
+        LEFT JOIN basic_storehouse bs ON qi.basic_storehouse_id = bs.storehouse_id
110
+        LEFT JOIN basic_warehouse bw ON qi.warehouse_id = bw.warehouse_id
111
+        LEFT JOIN business_qc_quality_inspection_item qii ON qi.id = qii.qc_quality_inspection_id
112
+        WHERE
113
+                qi.jylb = '02'
114
+        AND qi.org_id = #{orgId}
115
+        AND qi.basic_storehouse_id = #{basicStorehouseId}
116
+        AND qi.warehouse_id = #{warehouseId}
117
+        ) t2 ON t1.org_id = t2.org_id
118
+        INNER JOIN
119
+        (
120
+        SELECT
121
+            lc.id gslrLossCollectId,
122
+            lc.org_id,
123
+            lc.actual_loss_quantity actualLossQuantity,
124
+            (
125
+                lc.natural_loss + lc.moisture_loss + lc.impurity_reduction_quality
126
+            ) quotaLoss,
127
+            lc.natural_loss naturalLoss,
128
+            lc.moisture_loss moistureLoss,
129
+            lc.impurity_reduction_quality impurityReductionQuality,
130
+            lc.excess_loss_quantity excessLossQuantity,
131
+            lc.loss_profit_reason lossProfitReason
132
+        FROM
133
+            business_gslr_loss_collect lc
134
+        WHERE
135
+            lc.org_id = #{orgId}
136
+        AND lc.basic_storehouse_id = #{basicStorehouseId}
137
+        AND lc.warehouse_id = #{warehouseId}
138
+        ) t3 ON t1.org_id = t3.org_id
139
+    </select>
140
+    <select id="getConsistenceAccountInfo" parameterType="string" resultType="com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueThreeConsistence">
141
+        SELECT
142
+            sr.id fsSaleRevenueId,
143
+            ca.`year`,
144
+            ca.`month`,
145
+            ca.accounting_quantity accountingQuantity,
146
+            ca.accounting_amount accountingAmount
147
+        FROM
148
+            business_fs_sale_revenue_three_consistence_account ca
149
+        LEFT JOIN business_fs_sale_revenue sr ON sr.id = ca.fs_sale_revenue_id
150
+        LEFT JOIN business_contract bc ON sr.contract_id = bc.id
151
+        WHERE
152
+            contract_number = #{contractNumber}
153
+    </select>
154
+</mapper>

+ 33 - 0
src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueSettleMapper.xml

@@ -0,0 +1,33 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueSettleMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueSettle">
7
+        <id column="id" property="id" />
8
+        <result column="createname" property="createname" />
9
+        <result column="createdate" property="createdate" />
10
+        <result column="updatename" property="updatename" />
11
+        <result column="updatedate" property="updatedate" />
12
+        <result column="fs_sale_revenue_id" property="fsSaleRevenueId" />
13
+        <result column="fs_out_confirm_id" property="fsOutConfirmId" />
14
+        <result column="province_acceptance_unit" property="provinceAcceptanceUnit" />
15
+        <result column="province_total_settle_quantity" property="provinceTotalSettleQuantity" />
16
+        <result column="province_total_settle_amount" property="provinceTotalSettleAmount" />
17
+        <result column="province_loan_recovery_unit" property="provinceLoanRecoveryUnit" />
18
+        <result column="province_loan_recovery_quantity" property="provinceLoanRecoveryQuantity" />
19
+        <result column="province_loan_recovery_amount" property="provinceLoanRecoveryAmount" />
20
+        <result column="province_invoice_unit" property="provinceInvoiceUnit" />
21
+        <result column="province_invoice_quantity" property="provinceInvoiceQuantity" />
22
+        <result column="province_invoice_unit_price" property="provinceInvoiceUnitPrice" />
23
+        <result column="province_invoice_amount" property="provinceInvoiceAmount" />
24
+        <result column="province_loan_return_time" property="provinceLoanReturnTime" />
25
+        <result column="province_loan_return_amount" property="provinceLoanReturnAmount" />
26
+    </resultMap>
27
+
28
+    <!-- 通用查询结果列 -->
29
+    <sql id="Base_Column_List">
30
+        id, createname, createdate, updatename, updatedate, fs_sale_revenue_id, fs_out_confirm_id, province_acceptance_unit, province_total_settle_quantity, province_total_settle_amount, province_loan_recovery_unit, province_loan_recovery_quantity, province_loan_recovery_amount, province_invoice_unit, province_invoice_quantity, province_invoice_unit_price, province_invoice_amount, province_loan_return_time, province_loan_return_amount
31
+    </sql>
32
+
33
+</mapper>

+ 38 - 0
src/main/resources/mapper/priceApproval/BusinessFsSaleRevenueThreeConsistenceMapper.xml

@@ -0,0 +1,38 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.chinaitop.depot.intelligent.priceApproval.mapper.BusinessFsSaleRevenueThreeConsistenceMapper">
4
+
5
+    <!-- 通用查询映射结果 -->
6
+    <resultMap id="BaseResultMap" type="com.chinaitop.depot.intelligent.priceApproval.model.BusinessFsSaleRevenueThreeConsistence">
7
+        <id column="id" property="id" />
8
+        <result column="createname" property="createname" />
9
+        <result column="createdate" property="createdate" />
10
+        <result column="updatename" property="updatename" />
11
+        <result column="updatedate" property="updatedate" />
12
+        <result column="fs_sale_revenue_id" property="fsSaleRevenueId" />
13
+        <result column="year" property="year" />
14
+        <result column="month" property="month" />
15
+        <result column="basic_storehouse_id" property="basicStorehouseId" />
16
+        <result column="warehouse_id" property="warehouseId" />
17
+        <result column="loss" property="loss" />
18
+        <result column="province_loss" property="provinceLoss" />
19
+        <result column="custody_account_quantity" property="custodyAccountQuantity" />
20
+        <result column="province_custody_account_quantity" property="provinceCustodyAccountQuantity" />
21
+        <result column="statistical_account_quantity" property="statisticalAccountQuantity" />
22
+        <result column="province_statistical_account_quantity" property="provinceStatisticalAccountQuantity" />
23
+        <result column="complete_time" property="completeTime" />
24
+        <result column="province_complete_time" property="provinceCompleteTime" />
25
+        <result column="accounting_quantity" property="accountingQuantity" />
26
+        <result column="province_accounting_quantity" property="provinceAccountingQuantity" />
27
+        <result column="accounting_unit_price" property="accountingUnitPrice" />
28
+        <result column="province_accounting_unit_price" property="provinceAccountingUnitPrice" />
29
+        <result column="accounting_amount" property="accountingAmount" />
30
+        <result column="province_accounting_amount" property="provinceAccountingAmount" />
31
+    </resultMap>
32
+
33
+    <!-- 通用查询结果列 -->
34
+    <sql id="Base_Column_List">
35
+        id, createname, createdate, updatename, updatedate, fs_sale_revenue_id, year, month, basic_storehouse_id, warehouse_id, loss, province_loss, custody_account_quantity, province_custody_account_quantity, statistical_account_quantity, province_statistical_account_quantity, complete_time, province_complete_time, accounting_quantity, province_accounting_quantity, accounting_unit_price, province_accounting_unit_price, accounting_amount, province_accounting_amount
36
+    </sql>
37
+
38
+</mapper>

+ 1 - 0
src/main/resources/mapper/priceApproval/BusinessFsStoragePriceApprovalMapper.xml

@@ -35,6 +35,7 @@
35 35
             audit_state = 2
36 36
         AND in_application != 3
37 37
         AND in_application != 4
38
+        AND contract_type = 3147
38 39
         <if test="orgId != null and orgId != ''">
39 40
             AND org_id = #{orgId}
40 41
         </if>