Commit c0757c2b01cc3470b84ff82c3722fa8fdce6521e
1 parent
3e244f70
feat: ERP升级
1、财务应付应收框架代码
Showing
26 changed files
with
1636 additions
and
0 deletions
src/main/java/com/order/erp/controller/InvoiceBillOrderController.java
0 → 100644
1 | +package com.order.erp.controller; | |
2 | + | |
3 | +import com.order.erp.common.constant.ServerResult; | |
4 | +import com.order.erp.common.jsr303.OperateGroup; | |
5 | +import com.order.erp.domain.vo.order.InvoiceBillOrderQueryVO; | |
6 | +import com.order.erp.domain.vo.order.InvoiceBillOrderVO; | |
7 | +import com.order.erp.service.order.InvoiceBillOrderService; | |
8 | +import org.springframework.validation.annotation.Validated; | |
9 | +import org.springframework.web.bind.annotation.PostMapping; | |
10 | +import org.springframework.web.bind.annotation.RequestBody; | |
11 | +import org.springframework.web.bind.annotation.RequestMapping; | |
12 | +import org.springframework.web.bind.annotation.RestController; | |
13 | + | |
14 | +import javax.annotation.Resource; | |
15 | + | |
16 | +/** | |
17 | + * 应收款账单表(InvoiceBillOrder)表控制层 | |
18 | + * | |
19 | + * @author makejava | |
20 | + * @since 2024-08-05 16:26:34 | |
21 | + */ | |
22 | +@RestController | |
23 | +@RequestMapping("/order/erp/invoice_bill/") | |
24 | +public class InvoiceBillOrderController { | |
25 | + /** | |
26 | + * 服务对象 | |
27 | + */ | |
28 | + @Resource | |
29 | + private InvoiceBillOrderService invoiceBillOrderService; | |
30 | + | |
31 | + /** | |
32 | + * 分页查询 | |
33 | + * | |
34 | + * @param invoiceBillOrderQueryVO 查询条件 | |
35 | + * @return 查询结果 | |
36 | + */ | |
37 | + @PostMapping("/list") | |
38 | + public ServerResult list(@RequestBody @Validated({OperateGroup.List.class}) InvoiceBillOrderQueryVO invoiceBillOrderQueryVO) { | |
39 | + return invoiceBillOrderService.list(invoiceBillOrderQueryVO); | |
40 | + } | |
41 | + | |
42 | + /** | |
43 | + * 通过主键查询单条数据 | |
44 | + * | |
45 | + * @param invoiceBillOrderQueryVO 查询条件 | |
46 | + * @return 单条数据 | |
47 | + */ | |
48 | + @PostMapping("/query_by_id") | |
49 | + public ServerResult queryById(@RequestBody InvoiceBillOrderQueryVO invoiceBillOrderQueryVO) { | |
50 | + return invoiceBillOrderService.queryById(invoiceBillOrderQueryVO); | |
51 | + } | |
52 | + | |
53 | + /** | |
54 | + * 新增数据 | |
55 | + * | |
56 | + * @param invoiceBillOrderVO 数据VO | |
57 | + * @return 新增结果 | |
58 | + */ | |
59 | + @PostMapping("/add") | |
60 | + public ServerResult add(@RequestBody InvoiceBillOrderVO invoiceBillOrderVO) { | |
61 | + return invoiceBillOrderService.add(invoiceBillOrderVO); | |
62 | + } | |
63 | + | |
64 | + /** | |
65 | + * 编辑数据 | |
66 | + * | |
67 | + * @param invoiceBillOrderVO 数据VO | |
68 | + * @return 编辑结果 | |
69 | + */ | |
70 | + @PostMapping("/edit") | |
71 | + public ServerResult edit(@RequestBody InvoiceBillOrderVO invoiceBillOrderVO) { | |
72 | + return invoiceBillOrderService.edit(invoiceBillOrderVO); | |
73 | + } | |
74 | + | |
75 | + /** | |
76 | + * 删除数据 | |
77 | + * | |
78 | + * @param invoiceBillOrderQueryVO 查询条件 | |
79 | + * @return 删除是否成功 | |
80 | + */ | |
81 | + @PostMapping("/delete_by_id") | |
82 | + public ServerResult deleteById(@RequestBody InvoiceBillOrderQueryVO invoiceBillOrderQueryVO) { | |
83 | + return invoiceBillOrderService.deleteById(invoiceBillOrderQueryVO); | |
84 | + } | |
85 | + | |
86 | +} | |
87 | + | ... | ... |
src/main/java/com/order/erp/controller/ProducePaymentCheckBillOrderController.java
0 → 100644
1 | +package com.order.erp.controller; | |
2 | + | |
3 | +import com.order.erp.common.constant.ServerResult; | |
4 | +import com.order.erp.common.jsr303.OperateGroup; | |
5 | +import com.order.erp.domain.vo.order.ProducePaymentCheckBillOrderQueryVO; | |
6 | +import com.order.erp.domain.vo.order.ProducePaymentCheckBillOrderVO; | |
7 | +import com.order.erp.service.order.ProducePaymentCheckBillOrderService; | |
8 | +import org.springframework.validation.annotation.Validated; | |
9 | +import org.springframework.web.bind.annotation.PostMapping; | |
10 | +import org.springframework.web.bind.annotation.RequestBody; | |
11 | +import org.springframework.web.bind.annotation.RequestMapping; | |
12 | +import org.springframework.web.bind.annotation.RestController; | |
13 | + | |
14 | +import javax.annotation.Resource; | |
15 | + | |
16 | +/** | |
17 | + * 生产科对账单应收账单(ProducePaymentCheckBillOrder)表控制层 | |
18 | + * | |
19 | + * @author makejava | |
20 | + * @since 2024-08-05 16:26:35 | |
21 | + */ | |
22 | +@RestController | |
23 | +@RequestMapping("/order/erp/check_bill/") | |
24 | +public class ProducePaymentCheckBillOrderController { | |
25 | + /** | |
26 | + * 服务对象 | |
27 | + */ | |
28 | + @Resource | |
29 | + private ProducePaymentCheckBillOrderService producePaymentCheckBillOrderService; | |
30 | + | |
31 | + /** | |
32 | + * 分页查询 | |
33 | + * | |
34 | + * @param producePaymentCheckBillOrderQueryVO 查询条件 | |
35 | + * @return 查询结果 | |
36 | + */ | |
37 | + @PostMapping("/list") | |
38 | + public ServerResult list(@RequestBody @Validated({OperateGroup.List.class}) ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) { | |
39 | + return producePaymentCheckBillOrderService.list(producePaymentCheckBillOrderQueryVO); | |
40 | + } | |
41 | + | |
42 | + /** | |
43 | + * 通过主键查询单条数据 | |
44 | + * | |
45 | + * @param producePaymentCheckBillOrderQueryVO 查询条件 | |
46 | + * @return 单条数据 | |
47 | + */ | |
48 | + @PostMapping("/query_by_id") | |
49 | + public ServerResult queryById(@RequestBody ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) { | |
50 | + return producePaymentCheckBillOrderService.queryById(producePaymentCheckBillOrderQueryVO); | |
51 | + } | |
52 | + | |
53 | + /** | |
54 | + * 新增数据 | |
55 | + * | |
56 | + * @param producePaymentCheckBillOrderVO 数据VO | |
57 | + * @return 新增结果 | |
58 | + */ | |
59 | + @PostMapping("/add") | |
60 | + public ServerResult add(@RequestBody ProducePaymentCheckBillOrderVO producePaymentCheckBillOrderVO) { | |
61 | + return producePaymentCheckBillOrderService.add(producePaymentCheckBillOrderVO); | |
62 | + } | |
63 | + | |
64 | + /** | |
65 | + * 编辑数据 | |
66 | + * | |
67 | + * @param producePaymentCheckBillOrderVO 数据VO | |
68 | + * @return 编辑结果 | |
69 | + */ | |
70 | + @PostMapping("/edit") | |
71 | + public ServerResult edit(@RequestBody ProducePaymentCheckBillOrderVO producePaymentCheckBillOrderVO) { | |
72 | + return producePaymentCheckBillOrderService.edit(producePaymentCheckBillOrderVO); | |
73 | + } | |
74 | + | |
75 | + /** | |
76 | + * 删除数据 | |
77 | + * | |
78 | + * @param producePaymentCheckBillOrderQueryVO 查询条件 | |
79 | + * @return 删除是否成功 | |
80 | + */ | |
81 | + @PostMapping("/delete_by_id") | |
82 | + public ServerResult deleteById(@RequestBody ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) { | |
83 | + return producePaymentCheckBillOrderService.deleteById(producePaymentCheckBillOrderQueryVO); | |
84 | + } | |
85 | + | |
86 | +} | |
87 | + | ... | ... |
src/main/java/com/order/erp/domain/dto/order/CheckBillMappingDO.java
0 → 100644
1 | +package com.order.erp.domain.dto.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.annotation.TableName; | |
4 | +import com.order.erp.domain.dto.BaseDO; | |
5 | +import lombok.*; | |
6 | +import lombok.experimental.SuperBuilder; | |
7 | + | |
8 | +import java.io.Serializable; | |
9 | + | |
10 | +/** | |
11 | + * 生产科对账单应收账单映射表(CheckBillMapping)实体类 | |
12 | + * | |
13 | + * @author makejava | |
14 | + * @since 2024-08-05 16:26:36 | |
15 | + */ | |
16 | +@TableName("check_bill_mapping") | |
17 | +@Data | |
18 | +@AllArgsConstructor | |
19 | +@ToString | |
20 | +@NoArgsConstructor | |
21 | +@EqualsAndHashCode(callSuper = false) | |
22 | +@SuperBuilder | |
23 | +public class CheckBillMappingDO extends BaseDO implements Serializable { | |
24 | + private static final long serialVersionUID = 199786248752278040L; | |
25 | + | |
26 | + private Long id; | |
27 | + /** | |
28 | + * 生产科对账单号 | |
29 | + */ | |
30 | + private String checkNo; | |
31 | + /** | |
32 | + * check账单id | |
33 | + */ | |
34 | + private Long checkBillId; | |
35 | + /** | |
36 | + * 订单id | |
37 | + */ | |
38 | + private Long orderId; | |
39 | + | |
40 | +} | ... | ... |
src/main/java/com/order/erp/domain/dto/order/InvoiceBillMappingDO.java
0 → 100644
1 | +package com.order.erp.domain.dto.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.annotation.TableName; | |
4 | +import com.order.erp.domain.dto.BaseDO; | |
5 | +import lombok.*; | |
6 | +import lombok.experimental.SuperBuilder; | |
7 | + | |
8 | +import java.io.Serializable; | |
9 | + | |
10 | +/** | |
11 | + * 应收款账单关联订单映射表(InvoiceBillMapping)实体类 | |
12 | + * | |
13 | + * @author makejava | |
14 | + * @since 2024-08-05 16:26:36 | |
15 | + */ | |
16 | +@TableName("invoice_bill_mapping") | |
17 | +@Data | |
18 | +@AllArgsConstructor | |
19 | +@ToString | |
20 | +@NoArgsConstructor | |
21 | +@EqualsAndHashCode(callSuper = false) | |
22 | +@SuperBuilder | |
23 | +public class InvoiceBillMappingDO extends BaseDO implements Serializable { | |
24 | + | |
25 | + private Long id; | |
26 | + /** | |
27 | + * 发票单号 | |
28 | + */ | |
29 | + private String invoiceNo; | |
30 | + /** | |
31 | + * invoice账单id | |
32 | + */ | |
33 | + private Long invoiceBillId; | |
34 | + /** | |
35 | + * 订单id | |
36 | + */ | |
37 | + private Long orderId; | |
38 | + | |
39 | +} | ... | ... |
src/main/java/com/order/erp/domain/dto/order/InvoiceBillOrderDO.java
0 → 100644
1 | +package com.order.erp.domain.dto.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.annotation.TableName; | |
4 | +import com.order.erp.domain.dto.BaseDO; | |
5 | +import lombok.*; | |
6 | +import lombok.experimental.SuperBuilder; | |
7 | + | |
8 | +import java.io.Serializable; | |
9 | +import java.math.BigDecimal; | |
10 | + | |
11 | +/** | |
12 | + * 应收款账单表(InvoiceBillOrder)实体类 | |
13 | + * | |
14 | + * @author makejava | |
15 | + * @since 2024-08-05 16:26:33 | |
16 | + */ | |
17 | +@TableName("invoice_bill_order") | |
18 | +@Data | |
19 | +@AllArgsConstructor | |
20 | +@ToString | |
21 | +@NoArgsConstructor | |
22 | +@EqualsAndHashCode(callSuper = false) | |
23 | +@SuperBuilder | |
24 | +public class InvoiceBillOrderDO extends BaseDO implements Serializable { | |
25 | + | |
26 | + private Long id; | |
27 | + /** | |
28 | + * 发票单号 | |
29 | + */ | |
30 | + private String invoiceNo; | |
31 | + /** | |
32 | + * 报关单url地址 | |
33 | + */ | |
34 | + private String bgUrl; | |
35 | + /** | |
36 | + * 必须回款日期 | |
37 | + */ | |
38 | + private String backRefundDate; | |
39 | + /** | |
40 | + * 发生扣款金额 | |
41 | + */ | |
42 | + private BigDecimal deductAmount; | |
43 | + /** | |
44 | + * 扣款单url地址 | |
45 | + */ | |
46 | + private String deductUrl; | |
47 | + /** | |
48 | + * 实际应收金额 | |
49 | + */ | |
50 | + private BigDecimal actualReceivableAmount; | |
51 | + /** | |
52 | + * 实际应付金额1 | |
53 | + */ | |
54 | + private BigDecimal actualPayedAmount1; | |
55 | + /** | |
56 | + * 实际应付金额2 | |
57 | + */ | |
58 | + private BigDecimal actualPayedAmount2; | |
59 | + /** | |
60 | + * 实际应付金额3 | |
61 | + */ | |
62 | + private BigDecimal actualPayedAmount3; | |
63 | + /** | |
64 | + * 其他费用金额 | |
65 | + */ | |
66 | + private BigDecimal otherAmount; | |
67 | + /** | |
68 | + * 总经理审核状态 0:待审核、1:审核通过,2:审核驳回 | |
69 | + */ | |
70 | + private Integer status; | |
71 | + | |
72 | +} | ... | ... |
src/main/java/com/order/erp/domain/dto/order/ProducePaymentCheckBillOrderDO.java
0 → 100644
1 | +package com.order.erp.domain.dto.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.annotation.TableName; | |
4 | +import com.order.erp.domain.dto.BaseDO; | |
5 | +import lombok.*; | |
6 | +import lombok.experimental.SuperBuilder; | |
7 | + | |
8 | +import java.io.Serializable; | |
9 | + | |
10 | +/** | |
11 | + * 生产科对账单应收账单(ProducePaymentCheckBillOrder)实体类 | |
12 | + * | |
13 | + * @author makejava | |
14 | + * @since 2024-08-05 16:26:35 | |
15 | + */ | |
16 | +@TableName("produce_payment_check_bill_order") | |
17 | +@Data | |
18 | +@AllArgsConstructor | |
19 | +@ToString | |
20 | +@NoArgsConstructor | |
21 | +@EqualsAndHashCode(callSuper = false) | |
22 | +@SuperBuilder | |
23 | +public class ProducePaymentCheckBillOrderDO extends BaseDO implements Serializable { | |
24 | + | |
25 | + private Long id; | |
26 | + /** | |
27 | + * 生产科对账单 | |
28 | + */ | |
29 | + private String checkNo; | |
30 | + /** | |
31 | + * 发票url地址 | |
32 | + */ | |
33 | + private String invoiceUrl; | |
34 | + /** | |
35 | + * 扣款单url地址 | |
36 | + */ | |
37 | + private String deductPdfUrl; | |
38 | + /** | |
39 | + * 生产科应付款日期 | |
40 | + */ | |
41 | + private String payedDate; | |
42 | + /** | |
43 | + * 生产科扣款责任部门 | |
44 | + */ | |
45 | + private String deductDept; | |
46 | + /** | |
47 | + * 生产科扣款金额 | |
48 | + */ | |
49 | + private Double deductAmount; | |
50 | + /** | |
51 | + * 实际应付金额 | |
52 | + */ | |
53 | + private Double actualPayedAmount; | |
54 | + /** | |
55 | + * 总经理审核状态 0:待审核、1:审核通过,2:审核驳回 | |
56 | + */ | |
57 | + private Integer status; | |
58 | + | |
59 | +} | ... | ... |
src/main/java/com/order/erp/domain/vo/order/CheckBillMappingQueryVO.java
0 → 100644
1 | +package com.order.erp.domain.vo.order; | |
2 | + | |
3 | +import com.order.erp.domain.vo.BasePageVO; | |
4 | +import lombok.*; | |
5 | +import lombok.experimental.SuperBuilder; | |
6 | + | |
7 | +import java.io.Serializable; | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * 生产科对账单应收账单映射表(CheckBillMapping)实体类 | |
12 | + * | |
13 | + * @author makejava | |
14 | + * @since 2024-08-05 16:26:37 | |
15 | + */ | |
16 | +@Data | |
17 | +@AllArgsConstructor | |
18 | +@ToString | |
19 | +@NoArgsConstructor | |
20 | +@EqualsAndHashCode(callSuper = false) | |
21 | +@SuperBuilder | |
22 | +public class CheckBillMappingQueryVO extends BasePageVO implements Serializable { | |
23 | + | |
24 | + private List<Long> ids; | |
25 | + | |
26 | + | |
27 | + private Long id; | |
28 | + /** | |
29 | + * 生产科对账单号 | |
30 | + */ | |
31 | + private String checkNo; | |
32 | + /** | |
33 | + * check账单id | |
34 | + */ | |
35 | + private Long checkBillId; | |
36 | + /** | |
37 | + * 订单id | |
38 | + */ | |
39 | + private Long orderId; | |
40 | + | |
41 | + | |
42 | +} | |
43 | + | ... | ... |
src/main/java/com/order/erp/domain/vo/order/CheckBillMappingVO.java
0 → 100644
1 | +package com.order.erp.domain.vo.order; | |
2 | + | |
3 | +import lombok.*; | |
4 | +import lombok.experimental.SuperBuilder; | |
5 | + | |
6 | +import java.io.Serializable; | |
7 | + | |
8 | +/** | |
9 | + * 生产科对账单应收账单映射表(CheckBillMapping)实体类 | |
10 | + * | |
11 | + * @author makejava | |
12 | + * @since 2024-08-05 16:26:37 | |
13 | + */ | |
14 | +@Data | |
15 | +@AllArgsConstructor | |
16 | +@ToString | |
17 | +@NoArgsConstructor | |
18 | +@EqualsAndHashCode(callSuper = false) | |
19 | +@SuperBuilder | |
20 | +public class CheckBillMappingVO implements Serializable { | |
21 | + | |
22 | + private Long id; | |
23 | + /** | |
24 | + * 生产科对账单号 | |
25 | + */ | |
26 | + private String checkNo; | |
27 | + /** | |
28 | + * check账单id | |
29 | + */ | |
30 | + private Long checkBillId; | |
31 | + /** | |
32 | + * 订单id | |
33 | + */ | |
34 | + private Long orderId; | |
35 | + | |
36 | + | |
37 | +} | ... | ... |
src/main/java/com/order/erp/domain/vo/order/InvoiceBillMappingQueryVO.java
0 → 100644
1 | +package com.order.erp.domain.vo.order; | |
2 | + | |
3 | +import com.order.erp.domain.vo.BasePageVO; | |
4 | +import lombok.*; | |
5 | +import lombok.experimental.SuperBuilder; | |
6 | + | |
7 | +import java.io.Serializable; | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * 应收款账单关联订单映射表(InvoiceBillMapping)实体类 | |
12 | + * | |
13 | + * @author makejava | |
14 | + * @since 2024-08-05 16:26:36 | |
15 | + */ | |
16 | +@Data | |
17 | +@AllArgsConstructor | |
18 | +@ToString | |
19 | +@NoArgsConstructor | |
20 | +@EqualsAndHashCode(callSuper = false) | |
21 | +@SuperBuilder | |
22 | +public class InvoiceBillMappingQueryVO extends BasePageVO implements Serializable { | |
23 | + private static final long serialVersionUID = -10772282327497511L; | |
24 | + | |
25 | + private List<Long> ids; | |
26 | + | |
27 | + | |
28 | + private Long id; | |
29 | + /** | |
30 | + * 发票单号 | |
31 | + */ | |
32 | + private String invoiceNo; | |
33 | + /** | |
34 | + * invoice账单id | |
35 | + */ | |
36 | + private Long invoiceBillId; | |
37 | + /** | |
38 | + * 订单id | |
39 | + */ | |
40 | + private Long orderId; | |
41 | + | |
42 | + | |
43 | +} | |
44 | + | ... | ... |
src/main/java/com/order/erp/domain/vo/order/InvoiceBillMappingVO.java
0 → 100644
1 | +package com.order.erp.domain.vo.order; | |
2 | + | |
3 | +import lombok.*; | |
4 | +import lombok.experimental.SuperBuilder; | |
5 | + | |
6 | +import java.io.Serializable; | |
7 | + | |
8 | +/** | |
9 | + * 应收款账单关联订单映射表(InvoiceBillMapping)实体类 | |
10 | + * | |
11 | + * @author makejava | |
12 | + * @since 2024-08-05 16:26:36 | |
13 | + */ | |
14 | +@Data | |
15 | +@AllArgsConstructor | |
16 | +@ToString | |
17 | +@NoArgsConstructor | |
18 | +@EqualsAndHashCode(callSuper = false) | |
19 | +@SuperBuilder | |
20 | +public class InvoiceBillMappingVO implements Serializable { | |
21 | + private static final long serialVersionUID = -55765026730369748L; | |
22 | + | |
23 | + private Long id; | |
24 | + /** | |
25 | + * 发票单号 | |
26 | + */ | |
27 | + private String invoiceNo; | |
28 | + /** | |
29 | + * invoice账单id | |
30 | + */ | |
31 | + private Long invoiceBillId; | |
32 | + /** | |
33 | + * 订单id | |
34 | + */ | |
35 | + private Long orderId; | |
36 | + | |
37 | + | |
38 | +} | ... | ... |
src/main/java/com/order/erp/domain/vo/order/InvoiceBillOrderQueryVO.java
0 → 100644
1 | +package com.order.erp.domain.vo.order; | |
2 | + | |
3 | +import com.order.erp.domain.vo.BasePageVO; | |
4 | +import lombok.*; | |
5 | +import lombok.experimental.SuperBuilder; | |
6 | + | |
7 | +import java.io.Serializable; | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * 应收款账单表(InvoiceBillOrder)实体类 | |
12 | + * | |
13 | + * @author makejava | |
14 | + * @since 2024-08-05 16:26:34 | |
15 | + */ | |
16 | +@Data | |
17 | +@AllArgsConstructor | |
18 | +@ToString | |
19 | +@NoArgsConstructor | |
20 | +@EqualsAndHashCode(callSuper = false) | |
21 | +@SuperBuilder | |
22 | +public class InvoiceBillOrderQueryVO extends BasePageVO implements Serializable { | |
23 | + | |
24 | + private List<Long> ids; | |
25 | + | |
26 | + | |
27 | + private Long id; | |
28 | + /** | |
29 | + * 发票单号 | |
30 | + */ | |
31 | + private String invoiceNo; | |
32 | + /** | |
33 | + * 报关单url地址 | |
34 | + */ | |
35 | + private String bgUrl; | |
36 | + /** | |
37 | + * 必须回款日期 | |
38 | + */ | |
39 | + private String backRefundDate; | |
40 | + /** | |
41 | + * 发生扣款金额 | |
42 | + */ | |
43 | + private Double deductAmount; | |
44 | + /** | |
45 | + * 扣款单url地址 | |
46 | + */ | |
47 | + private String deductUrl; | |
48 | + /** | |
49 | + * 实际应收金额 | |
50 | + */ | |
51 | + private Double actualReceivableAmount; | |
52 | + /** | |
53 | + * 实际应付金额1 | |
54 | + */ | |
55 | + private Double actualPayedAmount1; | |
56 | + /** | |
57 | + * 实际应付金额2 | |
58 | + */ | |
59 | + private Double actualPayedAmount2; | |
60 | + /** | |
61 | + * 实际应付金额3 | |
62 | + */ | |
63 | + private Double actualPayedAmount3; | |
64 | + /** | |
65 | + * 其他费用金额 | |
66 | + */ | |
67 | + private Double otherAmount; | |
68 | + /** | |
69 | + * 总经理审核状态 0:待审核、1:审核通过,2:审核驳回 | |
70 | + */ | |
71 | + private Integer status; | |
72 | + | |
73 | + | |
74 | +} | |
75 | + | ... | ... |
src/main/java/com/order/erp/domain/vo/order/InvoiceBillOrderVO.java
0 → 100644
1 | +package com.order.erp.domain.vo.order; | |
2 | + | |
3 | +import lombok.*; | |
4 | +import lombok.experimental.SuperBuilder; | |
5 | + | |
6 | +import java.io.Serializable; | |
7 | + | |
8 | +/** | |
9 | + * 应收款账单表(InvoiceBillOrder)实体类 | |
10 | + * | |
11 | + * @author makejava | |
12 | + * @since 2024-08-05 16:26:33 | |
13 | + */ | |
14 | +@Data | |
15 | +@AllArgsConstructor | |
16 | +@ToString | |
17 | +@NoArgsConstructor | |
18 | +@EqualsAndHashCode(callSuper = false) | |
19 | +@SuperBuilder | |
20 | +public class InvoiceBillOrderVO implements Serializable { | |
21 | + private static final long serialVersionUID = 543899167451834300L; | |
22 | + | |
23 | + private Long id; | |
24 | + /** | |
25 | + * 发票单号 | |
26 | + */ | |
27 | + private String invoiceNo; | |
28 | + /** | |
29 | + * 报关单url地址 | |
30 | + */ | |
31 | + private String bgUrl; | |
32 | + /** | |
33 | + * 必须回款日期 | |
34 | + */ | |
35 | + private String backRefundDate; | |
36 | + /** | |
37 | + * 发生扣款金额 | |
38 | + */ | |
39 | + private Double deductAmount; | |
40 | + /** | |
41 | + * 扣款单url地址 | |
42 | + */ | |
43 | + private String deductUrl; | |
44 | + /** | |
45 | + * 实际应收金额 | |
46 | + */ | |
47 | + private Double actualReceivableAmount; | |
48 | + /** | |
49 | + * 实际应付金额1 | |
50 | + */ | |
51 | + private Double actualPayedAmount1; | |
52 | + /** | |
53 | + * 实际应付金额2 | |
54 | + */ | |
55 | + private Double actualPayedAmount2; | |
56 | + /** | |
57 | + * 实际应付金额3 | |
58 | + */ | |
59 | + private Double actualPayedAmount3; | |
60 | + /** | |
61 | + * 其他费用金额 | |
62 | + */ | |
63 | + private Double otherAmount; | |
64 | + /** | |
65 | + * 总经理审核状态 0:待审核、1:审核通过,2:审核驳回 | |
66 | + */ | |
67 | + private Integer status; | |
68 | + | |
69 | + | |
70 | +} | ... | ... |
src/main/java/com/order/erp/domain/vo/order/ProducePaymentCheckBillOrderQueryVO.java
0 → 100644
1 | +package com.order.erp.domain.vo.order; | |
2 | + | |
3 | +import com.order.erp.domain.vo.BasePageVO; | |
4 | +import lombok.*; | |
5 | +import lombok.experimental.SuperBuilder; | |
6 | + | |
7 | +import java.io.Serializable; | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * 生产科对账单应收账单(ProducePaymentCheckBillOrder)实体类 | |
12 | + * | |
13 | + * @author makejava | |
14 | + * @since 2024-08-05 16:26:35 | |
15 | + */ | |
16 | +@Data | |
17 | +@AllArgsConstructor | |
18 | +@ToString | |
19 | +@NoArgsConstructor | |
20 | +@EqualsAndHashCode(callSuper = false) | |
21 | +@SuperBuilder | |
22 | +public class ProducePaymentCheckBillOrderQueryVO extends BasePageVO implements Serializable { | |
23 | + | |
24 | + private List<Long> ids; | |
25 | + | |
26 | + | |
27 | + private Long id; | |
28 | + /** | |
29 | + * 生产科对账单 | |
30 | + */ | |
31 | + private String checkNo; | |
32 | + /** | |
33 | + * 发票url地址 | |
34 | + */ | |
35 | + private String invoiceUrl; | |
36 | + /** | |
37 | + * 扣款单url地址 | |
38 | + */ | |
39 | + private String deductPdfUrl; | |
40 | + /** | |
41 | + * 生产科应付款日期 | |
42 | + */ | |
43 | + private String payedDate; | |
44 | + /** | |
45 | + * 生产科扣款责任部门 | |
46 | + */ | |
47 | + private String deductDept; | |
48 | + /** | |
49 | + * 生产科扣款金额 | |
50 | + */ | |
51 | + private Double deductAmount; | |
52 | + /** | |
53 | + * 实际应付金额 | |
54 | + */ | |
55 | + private Double actualPayedAmount; | |
56 | + /** | |
57 | + * 总经理审核状态 0:待审核、1:审核通过,2:审核驳回 | |
58 | + */ | |
59 | + private Integer status; | |
60 | + | |
61 | + | |
62 | +} | |
63 | + | ... | ... |
src/main/java/com/order/erp/domain/vo/order/ProducePaymentCheckBillOrderVO.java
0 → 100644
1 | +package com.order.erp.domain.vo.order; | |
2 | + | |
3 | +import lombok.*; | |
4 | +import lombok.experimental.SuperBuilder; | |
5 | + | |
6 | +import java.io.Serializable; | |
7 | + | |
8 | +/** | |
9 | + * 生产科对账单应收账单(ProducePaymentCheckBillOrder)实体类 | |
10 | + * | |
11 | + * @author makejava | |
12 | + * @since 2024-08-05 16:26:35 | |
13 | + */ | |
14 | +@Data | |
15 | +@AllArgsConstructor | |
16 | +@ToString | |
17 | +@NoArgsConstructor | |
18 | +@EqualsAndHashCode(callSuper = false) | |
19 | +@SuperBuilder | |
20 | +public class ProducePaymentCheckBillOrderVO implements Serializable { | |
21 | + private static final long serialVersionUID = 239047702576286556L; | |
22 | + | |
23 | + private Long id; | |
24 | + /** | |
25 | + * 生产科对账单 | |
26 | + */ | |
27 | + private String checkNo; | |
28 | + /** | |
29 | + * 发票url地址 | |
30 | + */ | |
31 | + private String invoiceUrl; | |
32 | + /** | |
33 | + * 扣款单url地址 | |
34 | + */ | |
35 | + private String deductPdfUrl; | |
36 | + /** | |
37 | + * 生产科应付款日期 | |
38 | + */ | |
39 | + private String payedDate; | |
40 | + /** | |
41 | + * 生产科扣款责任部门 | |
42 | + */ | |
43 | + private String deductDept; | |
44 | + /** | |
45 | + * 生产科扣款金额 | |
46 | + */ | |
47 | + private Double deductAmount; | |
48 | + /** | |
49 | + * 实际应付金额 | |
50 | + */ | |
51 | + private Double actualPayedAmount; | |
52 | + /** | |
53 | + * 总经理审核状态 0:待审核、1:审核通过,2:审核驳回 | |
54 | + */ | |
55 | + private Integer status; | |
56 | + | |
57 | + | |
58 | +} | ... | ... |
src/main/java/com/order/erp/mapper/order/CheckBillMappingMapper.java
0 → 100644
1 | +package com.order.erp.mapper.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import com.order.erp.domain.dto.order.CheckBillMappingDO; | |
5 | + | |
6 | +/** | |
7 | + * 生产科对账单应收账单映射表(CheckBillMapping)表数据库访问层 | |
8 | + * | |
9 | + * @author makejava | |
10 | + * @since 2024-08-05 16:26:37 | |
11 | + */ | |
12 | +public interface CheckBillMappingMapper extends BaseMapper<CheckBillMappingDO> { | |
13 | + | |
14 | + | |
15 | +} | |
16 | + | ... | ... |
src/main/java/com/order/erp/mapper/order/InvoiceBillMappingMapper.java
0 → 100644
1 | +package com.order.erp.mapper.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import com.order.erp.domain.dto.order.InvoiceBillMappingDO; | |
5 | + | |
6 | +/** | |
7 | + * 应收款账单关联订单映射表(InvoiceBillMapping)表数据库访问层 | |
8 | + * | |
9 | + * @author makejava | |
10 | + * @since 2024-08-05 16:26:36 | |
11 | + */ | |
12 | +public interface InvoiceBillMappingMapper extends BaseMapper<InvoiceBillMappingDO> { | |
13 | + | |
14 | + | |
15 | +} | |
16 | + | ... | ... |
src/main/java/com/order/erp/mapper/order/InvoiceBillOrderMapper.java
0 → 100644
1 | +package com.order.erp.mapper.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import com.order.erp.domain.dto.order.InvoiceBillOrderDO; | |
5 | + | |
6 | +/** | |
7 | + * 应收款账单表(InvoiceBillOrder)表数据库访问层 | |
8 | + * | |
9 | + * @author makejava | |
10 | + * @since 2024-08-05 16:26:34 | |
11 | + */ | |
12 | +public interface InvoiceBillOrderMapper extends BaseMapper<InvoiceBillOrderDO> { | |
13 | + | |
14 | + | |
15 | +} | |
16 | + | ... | ... |
src/main/java/com/order/erp/mapper/order/ProducePaymentCheckBillOrderMapper.java
0 → 100644
1 | +package com.order.erp.mapper.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import com.order.erp.domain.dto.order.ProducePaymentCheckBillOrderDO; | |
5 | + | |
6 | +/** | |
7 | + * 生产科对账单应收账单(ProducePaymentCheckBillOrder)表数据库访问层 | |
8 | + * | |
9 | + * @author makejava | |
10 | + * @since 2024-08-05 16:26:35 | |
11 | + */ | |
12 | +public interface ProducePaymentCheckBillOrderMapper extends BaseMapper<ProducePaymentCheckBillOrderDO> { | |
13 | + | |
14 | + | |
15 | +} | |
16 | + | ... | ... |
src/main/java/com/order/erp/service/order/CheckBillMappingService.java
0 → 100644
1 | +package com.order.erp.service.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import com.order.erp.common.constant.ServerResult; | |
5 | +import com.order.erp.domain.dto.order.CheckBillMappingDO; | |
6 | +import com.order.erp.domain.vo.order.CheckBillMappingQueryVO; | |
7 | +import com.order.erp.domain.vo.order.CheckBillMappingVO; | |
8 | + | |
9 | +/** | |
10 | + * 生产科对账单应收账单映射表(CheckBillMapping)表服务接口 | |
11 | + * | |
12 | + * @author makejava | |
13 | + * @since 2024-08-05 16:26:37 | |
14 | + */ | |
15 | +public interface CheckBillMappingService extends IService<CheckBillMappingDO> { | |
16 | + | |
17 | + /** | |
18 | + * 通过ID查询单条数据 | |
19 | + * | |
20 | + * @param checkBillMappingQueryVO 主键 | |
21 | + * @return 实例对象 | |
22 | + */ | |
23 | + ServerResult queryById(CheckBillMappingQueryVO checkBillMappingQueryVO); | |
24 | + | |
25 | + /** | |
26 | + * 分页查询 | |
27 | + * | |
28 | + * @param checkBillMappingQueryVO 筛选条件 | |
29 | + * @return 查询结果 | |
30 | + */ | |
31 | + ServerResult list(CheckBillMappingQueryVO checkBillMappingQueryVO); | |
32 | + | |
33 | + /** | |
34 | + * 新增数据 | |
35 | + * | |
36 | + * @param checkBillMappingVO 数据VO | |
37 | + * @return 新增结果 | |
38 | + */ | |
39 | + ServerResult add(CheckBillMappingVO checkBillMappingVO); | |
40 | + | |
41 | + /** | |
42 | + * 修改数据 | |
43 | + * | |
44 | + * @param checkBillMappingVO 数据VO | |
45 | + * @return 编辑结果 | |
46 | + */ | |
47 | + ServerResult edit(CheckBillMappingVO checkBillMappingVO); | |
48 | + | |
49 | + /** | |
50 | + * 通过主键删除数据 | |
51 | + * | |
52 | + * @param checkBillMappingQueryVO 筛选条件 | |
53 | + * @return 是否成功 | |
54 | + */ | |
55 | + ServerResult deleteById(CheckBillMappingQueryVO checkBillMappingQueryVO); | |
56 | + | |
57 | +} | ... | ... |
src/main/java/com/order/erp/service/order/InvoiceBillMappingService.java
0 → 100644
1 | +package com.order.erp.service.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import com.order.erp.common.constant.ServerResult; | |
5 | +import com.order.erp.domain.dto.order.InvoiceBillMappingDO; | |
6 | +import com.order.erp.domain.vo.order.InvoiceBillMappingQueryVO; | |
7 | +import com.order.erp.domain.vo.order.InvoiceBillMappingVO; | |
8 | + | |
9 | +/** | |
10 | + * 应收款账单关联订单映射表(InvoiceBillMapping)表服务接口 | |
11 | + * | |
12 | + * @author makejava | |
13 | + * @since 2024-08-05 16:26:36 | |
14 | + */ | |
15 | +public interface InvoiceBillMappingService extends IService<InvoiceBillMappingDO> { | |
16 | + | |
17 | + /** | |
18 | + * 通过ID查询单条数据 | |
19 | + * | |
20 | + * @param invoiceBillMappingQueryVO 主键 | |
21 | + * @return 实例对象 | |
22 | + */ | |
23 | + ServerResult queryById(InvoiceBillMappingQueryVO invoiceBillMappingQueryVO); | |
24 | + | |
25 | + /** | |
26 | + * 分页查询 | |
27 | + * | |
28 | + * @param invoiceBillMappingQueryVO 筛选条件 | |
29 | + * @return 查询结果 | |
30 | + */ | |
31 | + ServerResult list(InvoiceBillMappingQueryVO invoiceBillMappingQueryVO); | |
32 | + | |
33 | + /** | |
34 | + * 新增数据 | |
35 | + * | |
36 | + * @param invoiceBillMappingVO 数据VO | |
37 | + * @return 新增结果 | |
38 | + */ | |
39 | + ServerResult add(InvoiceBillMappingVO invoiceBillMappingVO); | |
40 | + | |
41 | + /** | |
42 | + * 修改数据 | |
43 | + * | |
44 | + * @param invoiceBillMappingVO 数据VO | |
45 | + * @return 编辑结果 | |
46 | + */ | |
47 | + ServerResult edit(InvoiceBillMappingVO invoiceBillMappingVO); | |
48 | + | |
49 | + /** | |
50 | + * 通过主键删除数据 | |
51 | + * | |
52 | + * @param invoiceBillMappingQueryVO 筛选条件 | |
53 | + * @return 是否成功 | |
54 | + */ | |
55 | + ServerResult deleteById(InvoiceBillMappingQueryVO invoiceBillMappingQueryVO); | |
56 | + | |
57 | +} | ... | ... |
src/main/java/com/order/erp/service/order/InvoiceBillOrderService.java
0 → 100644
1 | +package com.order.erp.service.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import com.order.erp.common.constant.ServerResult; | |
5 | +import com.order.erp.domain.dto.order.InvoiceBillOrderDO; | |
6 | +import com.order.erp.domain.vo.order.InvoiceBillOrderQueryVO; | |
7 | +import com.order.erp.domain.vo.order.InvoiceBillOrderVO; | |
8 | + | |
9 | +/** | |
10 | + * 应收款账单表(InvoiceBillOrder)表服务接口 | |
11 | + * | |
12 | + * @author makejava | |
13 | + * @since 2024-08-05 16:26:34 | |
14 | + */ | |
15 | +public interface InvoiceBillOrderService extends IService<InvoiceBillOrderDO> { | |
16 | + | |
17 | + /** | |
18 | + * 通过ID查询单条数据 | |
19 | + * | |
20 | + * @param invoiceBillOrderQueryVO 主键 | |
21 | + * @return 实例对象 | |
22 | + */ | |
23 | + ServerResult queryById(InvoiceBillOrderQueryVO invoiceBillOrderQueryVO); | |
24 | + | |
25 | + /** | |
26 | + * 分页查询 | |
27 | + * | |
28 | + * @param invoiceBillOrderQueryVO 筛选条件 | |
29 | + * @return 查询结果 | |
30 | + */ | |
31 | + ServerResult list(InvoiceBillOrderQueryVO invoiceBillOrderQueryVO); | |
32 | + | |
33 | + /** | |
34 | + * 新增数据 | |
35 | + * | |
36 | + * @param invoiceBillOrderVO 数据VO | |
37 | + * @return 新增结果 | |
38 | + */ | |
39 | + ServerResult add(InvoiceBillOrderVO invoiceBillOrderVO); | |
40 | + | |
41 | + /** | |
42 | + * 修改数据 | |
43 | + * | |
44 | + * @param invoiceBillOrderVO 数据VO | |
45 | + * @return 编辑结果 | |
46 | + */ | |
47 | + ServerResult edit(InvoiceBillOrderVO invoiceBillOrderVO); | |
48 | + | |
49 | + /** | |
50 | + * 通过主键删除数据 | |
51 | + * | |
52 | + * @param invoiceBillOrderQueryVO 筛选条件 | |
53 | + * @return 是否成功 | |
54 | + */ | |
55 | + ServerResult deleteById(InvoiceBillOrderQueryVO invoiceBillOrderQueryVO); | |
56 | + | |
57 | +} | ... | ... |
src/main/java/com/order/erp/service/order/ProducePaymentCheckBillOrderService.java
0 → 100644
1 | +package com.order.erp.service.order; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import com.order.erp.common.constant.ServerResult; | |
5 | +import com.order.erp.domain.dto.order.ProducePaymentCheckBillOrderDO; | |
6 | +import com.order.erp.domain.vo.order.ProducePaymentCheckBillOrderQueryVO; | |
7 | +import com.order.erp.domain.vo.order.ProducePaymentCheckBillOrderVO; | |
8 | + | |
9 | +/** | |
10 | + * 生产科对账单应收账单(ProducePaymentCheckBillOrder)表服务接口 | |
11 | + * | |
12 | + * @author makejava | |
13 | + * @since 2024-08-05 16:26:35 | |
14 | + */ | |
15 | +public interface ProducePaymentCheckBillOrderService extends IService<ProducePaymentCheckBillOrderDO> { | |
16 | + | |
17 | + /** | |
18 | + * 通过ID查询单条数据 | |
19 | + * | |
20 | + * @param producePaymentCheckBillOrderQueryVO 主键 | |
21 | + * @return 实例对象 | |
22 | + */ | |
23 | + ServerResult queryById(ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO); | |
24 | + | |
25 | + /** | |
26 | + * 分页查询 | |
27 | + * | |
28 | + * @param producePaymentCheckBillOrderQueryVO 筛选条件 | |
29 | + * @return 查询结果 | |
30 | + */ | |
31 | + ServerResult list(ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO); | |
32 | + | |
33 | + /** | |
34 | + * 新增数据 | |
35 | + * | |
36 | + * @param producePaymentCheckBillOrderVO 数据VO | |
37 | + * @return 新增结果 | |
38 | + */ | |
39 | + ServerResult add(ProducePaymentCheckBillOrderVO producePaymentCheckBillOrderVO); | |
40 | + | |
41 | + /** | |
42 | + * 修改数据 | |
43 | + * | |
44 | + * @param producePaymentCheckBillOrderVO 数据VO | |
45 | + * @return 编辑结果 | |
46 | + */ | |
47 | + ServerResult edit(ProducePaymentCheckBillOrderVO producePaymentCheckBillOrderVO); | |
48 | + | |
49 | + /** | |
50 | + * 通过主键删除数据 | |
51 | + * | |
52 | + * @param producePaymentCheckBillOrderQueryVO 筛选条件 | |
53 | + * @return 是否成功 | |
54 | + */ | |
55 | + ServerResult deleteById(ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO); | |
56 | + | |
57 | +} | ... | ... |
src/main/java/com/order/erp/service/order/impl/CheckBillMappingServiceImpl.java
0 → 100644
1 | +package com.order.erp.service.order.impl; | |
2 | + | |
3 | +import cn.hutool.core.bean.BeanUtil; | |
4 | +import cn.hutool.core.collection.CollUtil; | |
5 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
6 | +import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | |
7 | +import com.baomidou.mybatisplus.core.metadata.IPage; | |
8 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
9 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
10 | +import com.order.erp.common.constant.Constant; | |
11 | +import com.order.erp.common.constant.ServerResult; | |
12 | +import com.order.erp.common.utils.PageUtils; | |
13 | +import com.order.erp.domain.dto.order.CheckBillMappingDO; | |
14 | +import com.order.erp.domain.vo.order.CheckBillMappingQueryVO; | |
15 | +import com.order.erp.domain.vo.order.CheckBillMappingVO; | |
16 | +import com.order.erp.mapper.order.CheckBillMappingMapper; | |
17 | +import com.order.erp.service.order.CheckBillMappingService; | |
18 | +import lombok.extern.slf4j.Slf4j; | |
19 | +import org.springframework.stereotype.Service; | |
20 | + | |
21 | +import java.util.List; | |
22 | +import java.util.Objects; | |
23 | + | |
24 | +/** | |
25 | + * 生产科对账单应收账单映射表(CheckBillMapping)表服务实现类 | |
26 | + * | |
27 | + * @author makejava | |
28 | + * @since 2024-08-05 16:26:37 | |
29 | + */ | |
30 | +@Slf4j | |
31 | +@Service | |
32 | +public class CheckBillMappingServiceImpl extends ServiceImpl<CheckBillMappingMapper, CheckBillMappingDO> implements CheckBillMappingService { | |
33 | + | |
34 | + | |
35 | + /** | |
36 | + * 通过ID查询单条数据 | |
37 | + * <p> | |
38 | + * checkBillMappingQueryVO 主键 | |
39 | + * | |
40 | + * @return 实例对象 | |
41 | + */ | |
42 | + @Override | |
43 | + public ServerResult queryById(CheckBillMappingQueryVO checkBillMappingQueryVO) { | |
44 | + if (Objects.isNull(checkBillMappingQueryVO.getId())) { | |
45 | + return ServerResult.fail("id 不能为空"); | |
46 | + } | |
47 | + CheckBillMappingDO CheckBillMappingDo = getById(checkBillMappingQueryVO.getId()); | |
48 | + if (Objects.isNull(CheckBillMappingDo)) { | |
49 | + return ServerResult.success(null); | |
50 | + } | |
51 | + return ServerResult.success(BeanUtil.copyProperties(CheckBillMappingDo, CheckBillMappingVO.class)); | |
52 | + } | |
53 | + | |
54 | + /** | |
55 | + * 分页查询 | |
56 | + * | |
57 | + * @param checkBillMappingQueryVO 筛选条件 | |
58 | + * @return 查询结果 | |
59 | + */ | |
60 | + @Override | |
61 | + public ServerResult list(CheckBillMappingQueryVO checkBillMappingQueryVO) { | |
62 | + | |
63 | + LambdaQueryWrapper<CheckBillMappingDO> queryWapper = new LambdaQueryWrapper<CheckBillMappingDO>() | |
64 | + .eq(CheckBillMappingDO::getEnableFlag, Constant.ENABLE_TEN) | |
65 | + .orderByDesc(CheckBillMappingDO::getId); | |
66 | + Page page = new Page<>(checkBillMappingQueryVO.getPage(), checkBillMappingQueryVO.getPageSize()); | |
67 | + IPage<CheckBillMappingDO> iPage = page(page, queryWapper); | |
68 | + checkBillMappingQueryVO.setTotal(Long.valueOf(iPage.getTotal()).intValue()); | |
69 | + return ServerResult.success(PageUtils.getPageReturn(null, checkBillMappingQueryVO)); | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * 新增数据 | |
74 | + * | |
75 | + * @param checkBillMappingVO 实例对象 | |
76 | + * @return 实例对象 | |
77 | + */ | |
78 | + @Override | |
79 | + public ServerResult add(CheckBillMappingVO checkBillMappingVO) { | |
80 | + //todo 校验 | |
81 | + if (Objects.nonNull(checkBillMappingVO.getId())) { | |
82 | + checkBillMappingVO.setId(null); | |
83 | + } | |
84 | + CheckBillMappingDO checkBillMappingDo = BeanUtil.copyProperties(checkBillMappingVO, CheckBillMappingDO.class); | |
85 | + | |
86 | + save(checkBillMappingDo); | |
87 | + | |
88 | + return ServerResult.success(); | |
89 | + } | |
90 | + | |
91 | + /** | |
92 | + * 修改数据 | |
93 | + * | |
94 | + * @param checkBillMappingVO 实例对象 | |
95 | + * @return 实例对象 | |
96 | + */ | |
97 | + @Override | |
98 | + public ServerResult edit(CheckBillMappingVO checkBillMappingVO) { | |
99 | + //todo 校验 | |
100 | + if (Objects.isNull(checkBillMappingVO.getId())) { | |
101 | + return ServerResult.fail("id 不能为空"); | |
102 | + } | |
103 | + CheckBillMappingDO checkBillMappingDo = BeanUtil.copyProperties(checkBillMappingVO, CheckBillMappingDO.class); | |
104 | + | |
105 | + updateById(checkBillMappingDo); | |
106 | + | |
107 | + return ServerResult.success(); | |
108 | + } | |
109 | + | |
110 | + /** | |
111 | + * 通过主键删除数据 | |
112 | + * | |
113 | + * @param checkBillMappingQueryVO 筛选条件 | |
114 | + * @return 是否成功 | |
115 | + */ | |
116 | + @Override | |
117 | + public ServerResult deleteById(CheckBillMappingQueryVO checkBillMappingQueryVO) { | |
118 | + List<Long> ids = checkBillMappingQueryVO.getIds(); | |
119 | + if (CollUtil.isEmpty(ids)) { | |
120 | + return ServerResult.fail("ids 参数不能为空"); | |
121 | + } | |
122 | + List<CheckBillMappingDO> checkBillMappingList = listByIds(ids); | |
123 | + if (CollUtil.isEmpty(checkBillMappingList)) { | |
124 | + return ServerResult.success(); | |
125 | + } | |
126 | + //todo 校验是否可以逻辑删除 | |
127 | + LambdaUpdateWrapper<CheckBillMappingDO> updateWrapper = new LambdaUpdateWrapper<CheckBillMappingDO>() | |
128 | + .in(CheckBillMappingDO::getId, ids) | |
129 | + .set(CheckBillMappingDO::getEnableFlag, Constant.UNABLE_TWENTY); | |
130 | + update(updateWrapper); | |
131 | + return ServerResult.success(); | |
132 | + } | |
133 | +} | ... | ... |
src/main/java/com/order/erp/service/order/impl/InvoiceBillMappingServiceImpl.java
0 → 100644
1 | +package com.order.erp.service.order.impl; | |
2 | + | |
3 | +import cn.hutool.core.bean.BeanUtil; | |
4 | +import cn.hutool.core.collection.CollUtil; | |
5 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
6 | +import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | |
7 | +import com.baomidou.mybatisplus.core.metadata.IPage; | |
8 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
9 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
10 | +import com.order.erp.common.constant.Constant; | |
11 | +import com.order.erp.common.constant.ServerResult; | |
12 | +import com.order.erp.common.utils.PageUtils; | |
13 | +import com.order.erp.domain.dto.order.InvoiceBillMappingDO; | |
14 | +import com.order.erp.domain.vo.order.InvoiceBillMappingQueryVO; | |
15 | +import com.order.erp.domain.vo.order.InvoiceBillMappingVO; | |
16 | +import com.order.erp.mapper.order.InvoiceBillMappingMapper; | |
17 | +import com.order.erp.service.order.InvoiceBillMappingService; | |
18 | +import lombok.extern.slf4j.Slf4j; | |
19 | +import org.springframework.stereotype.Service; | |
20 | + | |
21 | +import java.util.List; | |
22 | +import java.util.Objects; | |
23 | + | |
24 | +/** | |
25 | + * 应收款账单关联订单映射表(InvoiceBillMapping)表服务实现类 | |
26 | + * | |
27 | + * @author makejava | |
28 | + * @since 2024-08-05 16:26:36 | |
29 | + */ | |
30 | +@Slf4j | |
31 | +@Service | |
32 | +public class InvoiceBillMappingServiceImpl extends ServiceImpl<InvoiceBillMappingMapper, InvoiceBillMappingDO> implements InvoiceBillMappingService { | |
33 | + | |
34 | + | |
35 | + /** | |
36 | + * 通过ID查询单条数据 | |
37 | + * <p> | |
38 | + * invoiceBillMappingQueryVO 主键 | |
39 | + * | |
40 | + * @return 实例对象 | |
41 | + */ | |
42 | + @Override | |
43 | + public ServerResult queryById(InvoiceBillMappingQueryVO invoiceBillMappingQueryVO) { | |
44 | + if (Objects.isNull(invoiceBillMappingQueryVO.getId())) { | |
45 | + return ServerResult.fail("id 不能为空"); | |
46 | + } | |
47 | + InvoiceBillMappingDO InvoiceBillMappingDo = getById(invoiceBillMappingQueryVO.getId()); | |
48 | + if (Objects.isNull(InvoiceBillMappingDo)) { | |
49 | + return ServerResult.success(null); | |
50 | + } | |
51 | + return ServerResult.success(BeanUtil.copyProperties(InvoiceBillMappingDo, InvoiceBillMappingVO.class)); | |
52 | + } | |
53 | + | |
54 | + /** | |
55 | + * 分页查询 | |
56 | + * | |
57 | + * @param invoiceBillMappingQueryVO 筛选条件 | |
58 | + * @return 查询结果 | |
59 | + */ | |
60 | + @Override | |
61 | + public ServerResult list(InvoiceBillMappingQueryVO invoiceBillMappingQueryVO) { | |
62 | + | |
63 | + LambdaQueryWrapper<InvoiceBillMappingDO> queryWapper = new LambdaQueryWrapper<InvoiceBillMappingDO>() | |
64 | + .eq(InvoiceBillMappingDO::getEnableFlag, Constant.ENABLE_TEN) | |
65 | + .orderByDesc(InvoiceBillMappingDO::getId); | |
66 | + Page page = new Page<>(invoiceBillMappingQueryVO.getPage(), invoiceBillMappingQueryVO.getPageSize()); | |
67 | + IPage<InvoiceBillMappingDO> iPage = page(page, queryWapper); | |
68 | + invoiceBillMappingQueryVO.setTotal(Long.valueOf(iPage.getTotal()).intValue()); | |
69 | + return ServerResult.success(PageUtils.getPageReturn(null, invoiceBillMappingQueryVO)); | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * 新增数据 | |
74 | + * | |
75 | + * @param invoiceBillMappingVO 实例对象 | |
76 | + * @return 实例对象 | |
77 | + */ | |
78 | + @Override | |
79 | + public ServerResult add(InvoiceBillMappingVO invoiceBillMappingVO) { | |
80 | + //todo 校验 | |
81 | + if (Objects.nonNull(invoiceBillMappingVO.getId())) { | |
82 | + invoiceBillMappingVO.setId(null); | |
83 | + } | |
84 | + InvoiceBillMappingDO invoiceBillMappingDo = BeanUtil.copyProperties(invoiceBillMappingVO, InvoiceBillMappingDO.class); | |
85 | + | |
86 | + save(invoiceBillMappingDo); | |
87 | + | |
88 | + return ServerResult.success(); | |
89 | + } | |
90 | + | |
91 | + /** | |
92 | + * 修改数据 | |
93 | + * | |
94 | + * @param invoiceBillMappingVO 实例对象 | |
95 | + * @return 实例对象 | |
96 | + */ | |
97 | + @Override | |
98 | + public ServerResult edit(InvoiceBillMappingVO invoiceBillMappingVO) { | |
99 | + //todo 校验 | |
100 | + if (Objects.isNull(invoiceBillMappingVO.getId())) { | |
101 | + return ServerResult.fail("id 不能为空"); | |
102 | + } | |
103 | + InvoiceBillMappingDO invoiceBillMappingDo = BeanUtil.copyProperties(invoiceBillMappingVO, InvoiceBillMappingDO.class); | |
104 | + | |
105 | + updateById(invoiceBillMappingDo); | |
106 | + | |
107 | + return ServerResult.success(); | |
108 | + } | |
109 | + | |
110 | + /** | |
111 | + * 通过主键删除数据 | |
112 | + * | |
113 | + * @param invoiceBillMappingQueryVO 筛选条件 | |
114 | + * @return 是否成功 | |
115 | + */ | |
116 | + @Override | |
117 | + public ServerResult deleteById(InvoiceBillMappingQueryVO invoiceBillMappingQueryVO) { | |
118 | + List<Long> ids = invoiceBillMappingQueryVO.getIds(); | |
119 | + if (CollUtil.isEmpty(ids)) { | |
120 | + return ServerResult.fail("ids 参数不能为空"); | |
121 | + } | |
122 | + List<InvoiceBillMappingDO> invoiceBillMappingList = listByIds(ids); | |
123 | + if (CollUtil.isEmpty(invoiceBillMappingList)) { | |
124 | + return ServerResult.success(); | |
125 | + } | |
126 | + //todo 校验是否可以逻辑删除 | |
127 | + LambdaUpdateWrapper<InvoiceBillMappingDO> updateWrapper = new LambdaUpdateWrapper<InvoiceBillMappingDO>() | |
128 | + .in(InvoiceBillMappingDO::getId, ids) | |
129 | + .set(InvoiceBillMappingDO::getEnableFlag, Constant.UNABLE_TWENTY); | |
130 | + update(updateWrapper); | |
131 | + return ServerResult.success(); | |
132 | + } | |
133 | +} | ... | ... |
src/main/java/com/order/erp/service/order/impl/InvoiceBillOrderServiceImpl.java
0 → 100644
1 | +package com.order.erp.service.order.impl; | |
2 | + | |
3 | +import cn.hutool.core.bean.BeanUtil; | |
4 | +import cn.hutool.core.collection.CollUtil; | |
5 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
6 | +import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | |
7 | +import com.baomidou.mybatisplus.core.metadata.IPage; | |
8 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
9 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
10 | +import com.order.erp.common.constant.Constant; | |
11 | +import com.order.erp.common.constant.ServerResult; | |
12 | +import com.order.erp.common.utils.PageUtils; | |
13 | +import com.order.erp.domain.dto.order.InvoiceBillOrderDO; | |
14 | +import com.order.erp.domain.vo.order.InvoiceBillOrderQueryVO; | |
15 | +import com.order.erp.domain.vo.order.InvoiceBillOrderVO; | |
16 | +import com.order.erp.mapper.order.InvoiceBillOrderMapper; | |
17 | +import com.order.erp.service.order.InvoiceBillOrderService; | |
18 | +import lombok.extern.slf4j.Slf4j; | |
19 | +import org.springframework.stereotype.Service; | |
20 | + | |
21 | +import java.util.List; | |
22 | +import java.util.Objects; | |
23 | + | |
24 | +/** | |
25 | + * 应收款账单表(InvoiceBillOrder)表服务实现类 | |
26 | + * | |
27 | + * @author makejava | |
28 | + * @since 2024-08-05 16:26:34 | |
29 | + */ | |
30 | +@Slf4j | |
31 | +@Service | |
32 | +public class InvoiceBillOrderServiceImpl extends ServiceImpl<InvoiceBillOrderMapper, InvoiceBillOrderDO> implements InvoiceBillOrderService { | |
33 | + | |
34 | + | |
35 | + /** | |
36 | + * 通过ID查询单条数据 | |
37 | + * <p> | |
38 | + * invoiceBillOrderQueryVO 主键 | |
39 | + * | |
40 | + * @return 实例对象 | |
41 | + */ | |
42 | + @Override | |
43 | + public ServerResult queryById(InvoiceBillOrderQueryVO invoiceBillOrderQueryVO) { | |
44 | + if (Objects.isNull(invoiceBillOrderQueryVO.getId())) { | |
45 | + return ServerResult.fail("id 不能为空"); | |
46 | + } | |
47 | + InvoiceBillOrderDO InvoiceBillOrderDo = getById(invoiceBillOrderQueryVO.getId()); | |
48 | + if (Objects.isNull(InvoiceBillOrderDo)) { | |
49 | + return ServerResult.success(null); | |
50 | + } | |
51 | + return ServerResult.success(BeanUtil.copyProperties(InvoiceBillOrderDo, InvoiceBillOrderVO.class)); | |
52 | + } | |
53 | + | |
54 | + /** | |
55 | + * 分页查询 | |
56 | + * | |
57 | + * @param invoiceBillOrderQueryVO 筛选条件 | |
58 | + * @return 查询结果 | |
59 | + */ | |
60 | + @Override | |
61 | + public ServerResult list(InvoiceBillOrderQueryVO invoiceBillOrderQueryVO) { | |
62 | + | |
63 | + LambdaQueryWrapper<InvoiceBillOrderDO> queryWapper = new LambdaQueryWrapper<InvoiceBillOrderDO>() | |
64 | + .eq(InvoiceBillOrderDO::getEnableFlag, Constant.ENABLE_TEN) | |
65 | + .orderByDesc(InvoiceBillOrderDO::getId); | |
66 | + Page page = new Page<>(invoiceBillOrderQueryVO.getPage(), invoiceBillOrderQueryVO.getPageSize()); | |
67 | + IPage<InvoiceBillOrderDO> iPage = page(page, queryWapper); | |
68 | + invoiceBillOrderQueryVO.setTotal(Long.valueOf(iPage.getTotal()).intValue()); | |
69 | + return ServerResult.success(PageUtils.getPageReturn(null, invoiceBillOrderQueryVO)); | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * 新增数据 | |
74 | + * | |
75 | + * @param invoiceBillOrderVO 实例对象 | |
76 | + * @return 实例对象 | |
77 | + */ | |
78 | + @Override | |
79 | + public ServerResult add(InvoiceBillOrderVO invoiceBillOrderVO) { | |
80 | + //todo 校验 | |
81 | + if (Objects.nonNull(invoiceBillOrderVO.getId())) { | |
82 | + invoiceBillOrderVO.setId(null); | |
83 | + } | |
84 | + InvoiceBillOrderDO invoiceBillOrderDo = BeanUtil.copyProperties(invoiceBillOrderVO, InvoiceBillOrderDO.class); | |
85 | + | |
86 | + save(invoiceBillOrderDo); | |
87 | + | |
88 | + return ServerResult.success(); | |
89 | + } | |
90 | + | |
91 | + /** | |
92 | + * 修改数据 | |
93 | + * | |
94 | + * @param invoiceBillOrderVO 实例对象 | |
95 | + * @return 实例对象 | |
96 | + */ | |
97 | + @Override | |
98 | + public ServerResult edit(InvoiceBillOrderVO invoiceBillOrderVO) { | |
99 | + //todo 校验 | |
100 | + if (Objects.isNull(invoiceBillOrderVO.getId())) { | |
101 | + return ServerResult.fail("id 不能为空"); | |
102 | + } | |
103 | + InvoiceBillOrderDO invoiceBillOrderDo = BeanUtil.copyProperties(invoiceBillOrderVO, InvoiceBillOrderDO.class); | |
104 | + | |
105 | + updateById(invoiceBillOrderDo); | |
106 | + | |
107 | + return ServerResult.success(); | |
108 | + } | |
109 | + | |
110 | + /** | |
111 | + * 通过主键删除数据 | |
112 | + * | |
113 | + * @param invoiceBillOrderQueryVO 筛选条件 | |
114 | + * @return 是否成功 | |
115 | + */ | |
116 | + @Override | |
117 | + public ServerResult deleteById(InvoiceBillOrderQueryVO invoiceBillOrderQueryVO) { | |
118 | + List<Long> ids = invoiceBillOrderQueryVO.getIds(); | |
119 | + if (CollUtil.isEmpty(ids)) { | |
120 | + return ServerResult.fail("ids 参数不能为空"); | |
121 | + } | |
122 | + List<InvoiceBillOrderDO> invoiceBillOrderList = listByIds(ids); | |
123 | + if (CollUtil.isEmpty(invoiceBillOrderList)) { | |
124 | + return ServerResult.success(); | |
125 | + } | |
126 | + //todo 校验是否可以逻辑删除 | |
127 | + LambdaUpdateWrapper<InvoiceBillOrderDO> updateWrapper = new LambdaUpdateWrapper<InvoiceBillOrderDO>() | |
128 | + .in(InvoiceBillOrderDO::getId, ids) | |
129 | + .set(InvoiceBillOrderDO::getEnableFlag, Constant.UNABLE_TWENTY); | |
130 | + update(updateWrapper); | |
131 | + return ServerResult.success(); | |
132 | + } | |
133 | +} | ... | ... |
src/main/java/com/order/erp/service/order/impl/ProducePaymentCheckBillOrderServiceImpl.java
0 → 100644
1 | +package com.order.erp.service.order.impl; | |
2 | + | |
3 | +import cn.hutool.core.bean.BeanUtil; | |
4 | +import cn.hutool.core.collection.CollUtil; | |
5 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
6 | +import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | |
7 | +import com.baomidou.mybatisplus.core.metadata.IPage; | |
8 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
9 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
10 | +import com.order.erp.common.constant.Constant; | |
11 | +import com.order.erp.common.constant.ServerResult; | |
12 | +import com.order.erp.common.utils.PageUtils; | |
13 | +import com.order.erp.domain.dto.order.ProducePaymentCheckBillOrderDO; | |
14 | +import com.order.erp.domain.vo.order.ProducePaymentCheckBillOrderQueryVO; | |
15 | +import com.order.erp.domain.vo.order.ProducePaymentCheckBillOrderVO; | |
16 | +import com.order.erp.mapper.order.ProducePaymentCheckBillOrderMapper; | |
17 | +import com.order.erp.service.order.ProducePaymentCheckBillOrderService; | |
18 | +import lombok.extern.slf4j.Slf4j; | |
19 | +import org.springframework.stereotype.Service; | |
20 | + | |
21 | +import java.util.List; | |
22 | +import java.util.Objects; | |
23 | + | |
24 | +/** | |
25 | + * 生产科对账单应收账单(ProducePaymentCheckBillOrder)表服务实现类 | |
26 | + * | |
27 | + * @author makejava | |
28 | + * @since 2024-08-05 16:26:35 | |
29 | + */ | |
30 | +@Slf4j | |
31 | +@Service | |
32 | +public class ProducePaymentCheckBillOrderServiceImpl extends ServiceImpl<ProducePaymentCheckBillOrderMapper, ProducePaymentCheckBillOrderDO> implements ProducePaymentCheckBillOrderService { | |
33 | + | |
34 | + | |
35 | + /** | |
36 | + * 通过ID查询单条数据 | |
37 | + * <p> | |
38 | + * producePaymentCheckBillOrderQueryVO 主键 | |
39 | + * | |
40 | + * @return 实例对象 | |
41 | + */ | |
42 | + @Override | |
43 | + public ServerResult queryById(ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) { | |
44 | + if (Objects.isNull(producePaymentCheckBillOrderQueryVO.getId())) { | |
45 | + return ServerResult.fail("id 不能为空"); | |
46 | + } | |
47 | + ProducePaymentCheckBillOrderDO ProducePaymentCheckBillOrderDo = getById(producePaymentCheckBillOrderQueryVO.getId()); | |
48 | + if (Objects.isNull(ProducePaymentCheckBillOrderDo)) { | |
49 | + return ServerResult.success(null); | |
50 | + } | |
51 | + return ServerResult.success(BeanUtil.copyProperties(ProducePaymentCheckBillOrderDo, ProducePaymentCheckBillOrderVO.class)); | |
52 | + } | |
53 | + | |
54 | + /** | |
55 | + * 分页查询 | |
56 | + * | |
57 | + * @param producePaymentCheckBillOrderQueryVO 筛选条件 | |
58 | + * @return 查询结果 | |
59 | + */ | |
60 | + @Override | |
61 | + public ServerResult list(ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) { | |
62 | + | |
63 | + LambdaQueryWrapper<ProducePaymentCheckBillOrderDO> queryWapper = new LambdaQueryWrapper<ProducePaymentCheckBillOrderDO>() | |
64 | + .eq(ProducePaymentCheckBillOrderDO::getEnableFlag, Constant.ENABLE_TEN) | |
65 | + .orderByDesc(ProducePaymentCheckBillOrderDO::getId); | |
66 | + Page page = new Page<>(producePaymentCheckBillOrderQueryVO.getPage(), producePaymentCheckBillOrderQueryVO.getPageSize()); | |
67 | + IPage<ProducePaymentCheckBillOrderDO> iPage = page(page, queryWapper); | |
68 | + producePaymentCheckBillOrderQueryVO.setTotal(Long.valueOf(iPage.getTotal()).intValue()); | |
69 | + return ServerResult.success(PageUtils.getPageReturn(null, producePaymentCheckBillOrderQueryVO)); | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * 新增数据 | |
74 | + * | |
75 | + * @param producePaymentCheckBillOrderVO 实例对象 | |
76 | + * @return 实例对象 | |
77 | + */ | |
78 | + @Override | |
79 | + public ServerResult add(ProducePaymentCheckBillOrderVO producePaymentCheckBillOrderVO) { | |
80 | + //todo 校验 | |
81 | + if (Objects.nonNull(producePaymentCheckBillOrderVO.getId())) { | |
82 | + producePaymentCheckBillOrderVO.setId(null); | |
83 | + } | |
84 | + ProducePaymentCheckBillOrderDO producePaymentCheckBillOrderDo = BeanUtil.copyProperties(producePaymentCheckBillOrderVO, ProducePaymentCheckBillOrderDO.class); | |
85 | + | |
86 | + save(producePaymentCheckBillOrderDo); | |
87 | + | |
88 | + return ServerResult.success(); | |
89 | + } | |
90 | + | |
91 | + /** | |
92 | + * 修改数据 | |
93 | + * | |
94 | + * @param producePaymentCheckBillOrderVO 实例对象 | |
95 | + * @return 实例对象 | |
96 | + */ | |
97 | + @Override | |
98 | + public ServerResult edit(ProducePaymentCheckBillOrderVO producePaymentCheckBillOrderVO) { | |
99 | + //todo 校验 | |
100 | + if (Objects.isNull(producePaymentCheckBillOrderVO.getId())) { | |
101 | + return ServerResult.fail("id 不能为空"); | |
102 | + } | |
103 | + ProducePaymentCheckBillOrderDO producePaymentCheckBillOrderDo = BeanUtil.copyProperties(producePaymentCheckBillOrderVO, ProducePaymentCheckBillOrderDO.class); | |
104 | + | |
105 | + updateById(producePaymentCheckBillOrderDo); | |
106 | + | |
107 | + return ServerResult.success(); | |
108 | + } | |
109 | + | |
110 | + /** | |
111 | + * 通过主键删除数据 | |
112 | + * | |
113 | + * @param producePaymentCheckBillOrderQueryVO 筛选条件 | |
114 | + * @return 是否成功 | |
115 | + */ | |
116 | + @Override | |
117 | + public ServerResult deleteById(ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) { | |
118 | + List<Long> ids = producePaymentCheckBillOrderQueryVO.getIds(); | |
119 | + if (CollUtil.isEmpty(ids)) { | |
120 | + return ServerResult.fail("ids 参数不能为空"); | |
121 | + } | |
122 | + List<ProducePaymentCheckBillOrderDO> producePaymentCheckBillOrderList = listByIds(ids); | |
123 | + if (CollUtil.isEmpty(producePaymentCheckBillOrderList)) { | |
124 | + return ServerResult.success(); | |
125 | + } | |
126 | + //todo 校验是否可以逻辑删除 | |
127 | + LambdaUpdateWrapper<ProducePaymentCheckBillOrderDO> updateWrapper = new LambdaUpdateWrapper<ProducePaymentCheckBillOrderDO>() | |
128 | + .in(ProducePaymentCheckBillOrderDO::getId, ids) | |
129 | + .set(ProducePaymentCheckBillOrderDO::getEnableFlag, Constant.UNABLE_TWENTY); | |
130 | + update(updateWrapper); | |
131 | + return ServerResult.success(); | |
132 | + } | |
133 | +} | ... | ... |