Commit 8eeaa6e488188990f8bb58da0e89e1056fee6fd3
1 parent
5410b72f
init: 订单相关
Showing
62 changed files
with
4179 additions
and
0 deletions
sql/table.sql
0 → 100644
1 | +DROP TABLE IF EXISTS `order_base_info`; | ||
2 | +CREATE TABLE `order_base_info` ( | ||
3 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
4 | + `customer_code` varchar(64) DEFAULT NULL COMMENT '客户编码', | ||
5 | + `project_no` varchar(64) DEFAULT NULL COMMENT '项目号', | ||
6 | + `production_department` varchar(64) DEFAULT NULL COMMENT '生产科', | ||
7 | + `inner_no` varchar(64) DEFAULT NULL COMMENT '内部编号', | ||
8 | + `customer_po` varchar(64) DEFAULT NULL COMMENT '客户po号', | ||
9 | + `customer_style` varchar(64) DEFAULT NULL COMMENT '客户STYLE#', | ||
10 | + `modele_lo` varchar(64) DEFAULT NULL COMMENT 'Modelo(REFERENCE)', | ||
11 | + `collection` varchar(64) DEFAULT NULL COMMENT 'COLLECTION (style description)', | ||
12 | + `po_color` varchar(32) DEFAULT NULL COMMENT 'PO COLOR', | ||
13 | + `cn_color` varchar(32) DEFAULT NULL COMMENT '颜色中文', | ||
14 | + `pic_url` varchar(128) DEFAULT NULL COMMENT 'pic图片地址', | ||
15 | + `production_comment` text DEFAULT NULL COMMENT '生产要求', | ||
16 | + `order_count` int DEFAULT NULL COMMENT '数量', | ||
17 | + `order_composition` varchar(128) DEFAULT NULL COMMENT '订单成分', | ||
18 | + `product_style` varchar(64) DEFAULT NULL COMMENT '款式类型', | ||
19 | + `production_department_consign_time` varchar(32) DEFAULT NULL COMMENT '生成科拖货时间', | ||
20 | + `order_hod_time` varchar(32) DEFAULT NULL COMMENT '订单上HOD时间', | ||
21 | + `outbound_type` varchar(32) DEFAULT NULL COMMENT '出库类型', | ||
22 | + `packet_type` varchar(64) DEFAULT NULL COMMENT '包装类型', | ||
23 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
24 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
25 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
26 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
27 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
28 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
29 | + PRIMARY KEY (`id`) | ||
30 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单基础信息表'; | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | +DROP TABLE IF EXISTS `order_profit_analysis`; | ||
35 | +CREATE TABLE `order_profit_analysis` ( | ||
36 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
37 | + `order_id` bigint NOT NULL COMMENT '订单id', | ||
38 | + `customer_price` DOUBLE DEFAULT 0 COMMENT '客户单价$', | ||
39 | + `customer_total_price` DOUBLE DEFAULT 0 COMMENT '客户总价$', | ||
40 | + `production_department_price` DOUBLE DEFAULT 0 COMMENT '生成科单价¥', | ||
41 | + `production_department_total_price` DOUBLE DEFAULT 0 COMMENT '生成科总价¥', | ||
42 | + `packet_price` DOUBLE DEFAULT 0 COMMENT '包装费用¥', | ||
43 | + `packet_total_price` DOUBLE DEFAULT 0 COMMENT '包装费用合计¥', | ||
44 | + `exchange_rate` DOUBLE DEFAULT 0 COMMENT '汇率', | ||
45 | + `profit_rate` DOUBLE DEFAULT 0 COMMENT '利润率', | ||
46 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
47 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
48 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
49 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
50 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
51 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
52 | + PRIMARY KEY (`id`) | ||
53 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单利润分析表'; | ||
54 | + | ||
55 | + | ||
56 | +DROP TABLE IF EXISTS `order_completion_report`; | ||
57 | +CREATE TABLE `order_completion_report` ( | ||
58 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
59 | + `order_id` bigint NOT NULL COMMENT '订单id', | ||
60 | + `idea_source` varchar(64) DEFAULT NULL COMMENT '想法来源', | ||
61 | + `manual_preform` varchar(64) DEFAULT NULL COMMENT '手工初型', | ||
62 | + `idea_manual_rate` DOUBLE DEFAULT 0 COMMENT '想法和手工比例分配', | ||
63 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
64 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
65 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
66 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
67 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
68 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
69 | + PRIMARY KEY (`id`) | ||
70 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单-项目完成报告书'; | ||
71 | + | ||
72 | + | ||
73 | +DROP TABLE IF EXISTS `order_track_stage`; | ||
74 | +CREATE TABLE `order_track_stage` ( | ||
75 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
76 | + `order_id` bigint NOT NULL COMMENT '订单id', | ||
77 | + `pp_time` varchar(64) DEFAULT NULL COMMENT 'pp date', | ||
78 | + `pp_confirm_result` varchar(64) DEFAULT NULL COMMENT 'pp样品确认意见', | ||
79 | + `eso_sample_send_time` varchar(64) DEFAULT NULL COMMENT 'EXTRA,SHOWROOM,ONLINE sample发送时间', | ||
80 | + `shippment_sample_send_time` varchar(64) DEFAULT NULL COMMENT 'shippment sample 发送时间', | ||
81 | + `shippment_sample_confirm_time` varchar(64) DEFAULT NULL COMMENT 'shipment sample确认意见', | ||
82 | + `self_test_pass_time` varchar(64) DEFAULT NULL COMMENT '自测通过时间', | ||
83 | + `aitex_test_send_time` varchar(64) DEFAULT NULL COMMENT 'Aitex测试发送时间', | ||
84 | + `aitex_test_finish_time` varchar(64) DEFAULT NULL COMMENT 'Aitex测试结果时间', | ||
85 | + `sgs_test_send_time` varchar(64) DEFAULT NULL COMMENT 'SGS测试发送时间', | ||
86 | + `sgs_test_finish_time` varchar(64) DEFAULT NULL COMMENT 'SGS测试结果时间', | ||
87 | + `barcode_sticker_arrival_time` varchar(64) DEFAULT NULL COMMENT 'Barcode sticker arrival time', | ||
88 | + `latest_arrival_time` varchar(64) DEFAULT NULL COMMENT '最晚包材到货时间', | ||
89 | + `latest_bk_time` varchar(64) DEFAULT NULL COMMENT '最晚订舱+报关资料时间', | ||
90 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
91 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
92 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
93 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
94 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
95 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
96 | + PRIMARY KEY (`id`) | ||
97 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单-跟单环节'; | ||
98 | + | ||
99 | + | ||
100 | +DROP TABLE IF EXISTS `order_inspection_stage`; | ||
101 | +CREATE TABLE `order_inspection_stage` ( | ||
102 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
103 | + `order_id` bigint NOT NULL COMMENT '订单id', | ||
104 | + `mid_check_apply_time` varchar(64) DEFAULT NULL COMMENT '中期验货申请时间', | ||
105 | + `mid_check_comment` text DEFAULT NULL COMMENT '中期验货(功能性-拉力/跌落等、外观性-颜色/规格等、耐久性-烤厅等)', | ||
106 | + `mid_check_result` varchar(16) DEFAULT NULL COMMENT '中期验货结果PASS / FAIL', | ||
107 | + `end_check_apply_time` varchar(64) DEFAULT NULL COMMENT '尾期验货申请时间', | ||
108 | + `specification` varchar(128) DEFAULT NULL COMMENT '长度/规格', | ||
109 | + `functionality` varchar(128) DEFAULT NULL COMMENT '功能性不良', | ||
110 | + `electroplate` varchar(128) DEFAULT NULL COMMENT '电镀不良', | ||
111 | + `value1` varchar(128) DEFAULT NULL COMMENT '不良1', | ||
112 | + `value2` varchar(128) DEFAULT NULL COMMENT '不良2', | ||
113 | + `value3` varchar(128) DEFAULT NULL COMMENT '其他不良3', | ||
114 | + `box_packet` varchar(64) DEFAULT NULL COMMENT '包装:卡片、条码、箱贴,箱单', | ||
115 | + `end_check_result` varchar(16) DEFAULT NULL COMMENT '尾期验货结果PASS / FAIL', | ||
116 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
117 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
118 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
119 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
120 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
121 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
122 | + PRIMARY KEY (`id`) | ||
123 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='订单-质检环节'; | ||
124 | + | ||
125 | + | ||
126 | +DROP TABLE IF EXISTS `order_field_lock_record`; | ||
127 | +CREATE TABLE `order_field_lock_record` ( | ||
128 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
129 | + `order_id` bigint NOT NULL COMMENT '订单id', | ||
130 | + `user_id` bigint NOT NULL COMMENT '用户id', | ||
131 | + `fields` text DEFAULT NULL COMMENT '锁定字段 json字符串', | ||
132 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
133 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
134 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
135 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
136 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
137 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
138 | + PRIMARY KEY (`id`) | ||
139 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户订单-字段锁定记录表'; | ||
140 | + | ||
141 | + | ||
142 | +DROP TABLE IF EXISTS `order_field_lock_apply`; | ||
143 | +CREATE TABLE `order_field_lock_apply` ( | ||
144 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
145 | + `order_id` bigint NOT NULL COMMENT '订单id', | ||
146 | + `apply_user_id` bigint NOT NULL COMMENT '申请用户id', | ||
147 | + `audit_user_id` bigint DEFAULT NULL COMMENT '审批用户id', | ||
148 | + `fields` text DEFAULT NULL COMMENT '锁定字段 json字符串', | ||
149 | + `status` INT DEFAULT 0 COMMENT '状态:0 待审批,1 通过,2 拒绝', | ||
150 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
151 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
152 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
153 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
154 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
155 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
156 | + PRIMARY KEY (`id`) | ||
157 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户订单-字段锁定申请表'; | ||
158 | + | ||
159 | + | ||
160 | + | ||
161 | +DROP TABLE IF EXISTS `order_opt_log`; | ||
162 | +CREATE TABLE `order_opt_log` ( | ||
163 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
164 | + `order_id` bigint NOT NULL COMMENT '订单id', | ||
165 | + `user_id` bigint NOT NULL COMMENT '用户id', | ||
166 | + `opt_type` varchar(64) NOT NULL COMMENT '操作类型', | ||
167 | + `fields` text DEFAULT NULL COMMENT '操作字段 json字符串', | ||
168 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
169 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
170 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
171 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
172 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
173 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
174 | + PRIMARY KEY (`id`) | ||
175 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户订单操作日志表'; | ||
176 | + | ||
177 | + | ||
178 | +DROP TABLE IF EXISTS `order_audit_log`; | ||
179 | +CREATE TABLE `order_audit_log` ( | ||
180 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
181 | + `order_id` bigint NOT NULL COMMENT '订单id', | ||
182 | + `apply_id` bigint NOT NULL COMMENT '申请id', | ||
183 | + `opt_type` varchar(64) NOT NULL COMMENT '操作类型', | ||
184 | + `enable_flag` INT NOT NULL COMMENT '是否可用 10-可用 20-删除', | ||
185 | + `create_time` DATETIME NOT NULL COMMENT '创建时间', | ||
186 | + `create_by` varchar(64) NOT NULL COMMENT '创建人', | ||
187 | + `modify_time` DATETIME DEFAULT NULL COMMENT '修改时间', | ||
188 | + `modify_by` varchar(64) DEFAULT NULL COMMENT '修改人', | ||
189 | + `version` INT DEFAULT NULL COMMENT '版本号--乐观锁预留字段', | ||
190 | + PRIMARY KEY (`id`) | ||
191 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户订单审批日志表'; | ||
0 | \ No newline at end of file | 192 | \ No newline at end of file |
src/main/java/com/order/erp/common/constant/ServerResultCode.java
@@ -59,6 +59,9 @@ public enum ServerResultCode implements ErrorInfo { | @@ -59,6 +59,9 @@ public enum ServerResultCode implements ErrorInfo { | ||
59 | //产品 | 59 | //产品 |
60 | PRODUCT_NOT_EXIST_ERROR(60001, "此商品已下架!"), | 60 | PRODUCT_NOT_EXIST_ERROR(60001, "此商品已下架!"), |
61 | PRODUCT_NOT_MORE_STORE_ERROR(60002, "添加购物车失败,商品库存不足!"), | 61 | PRODUCT_NOT_MORE_STORE_ERROR(60002, "添加购物车失败,商品库存不足!"), |
62 | + | ||
63 | + //订单 | ||
64 | + ORDER_BASE_INFO_EMPTY(70001, "订单基础信息不能为空!"), | ||
62 | ; | 65 | ; |
63 | 66 | ||
64 | 67 |
src/main/java/com/order/erp/controller/OrderAuditLogController.java
0 → 100644
1 | +package com.order.erp.controller; | ||
2 | + | ||
3 | +import com.order.erp.common.constant.ServerResult; | ||
4 | +import com.order.erp.domain.vo.order.OrderAuditLogQueryVO; | ||
5 | +import com.order.erp.service.order.OrderAuditLogService; | ||
6 | +import org.springframework.validation.annotation.Validated; | ||
7 | +import org.springframework.web.bind.annotation.PostMapping; | ||
8 | +import org.springframework.web.bind.annotation.RequestBody; | ||
9 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
10 | +import org.springframework.web.bind.annotation.RestController; | ||
11 | + | ||
12 | +import javax.annotation.Resource; | ||
13 | + | ||
14 | +/** | ||
15 | + * 用户订单审批日志表(OrderAuditLog)表控制层 | ||
16 | + * | ||
17 | + * @author makejava | ||
18 | + * @since 2023-09-08 15:26:41 | ||
19 | + */ | ||
20 | +@RestController | ||
21 | +@RequestMapping("/order/erp/audit/log") | ||
22 | +public class OrderAuditLogController { | ||
23 | + /** | ||
24 | + * 服务对象 | ||
25 | + */ | ||
26 | + @Resource | ||
27 | + private OrderAuditLogService orderAuditLogService; | ||
28 | + | ||
29 | + /** | ||
30 | + * 分页查询 | ||
31 | + * | ||
32 | + * @param orderAuditLogQueryVO 查询条件 | ||
33 | + * @return 查询结果 | ||
34 | + */ | ||
35 | + @PostMapping("/list") | ||
36 | + public ServerResult list(@RequestBody @Validated OrderAuditLogQueryVO orderAuditLogQueryVO) { | ||
37 | + return orderAuditLogService.list(orderAuditLogQueryVO); | ||
38 | + } | ||
39 | + | ||
40 | + /** | ||
41 | + * 通过主键查询单条数据 | ||
42 | + * | ||
43 | + * @param orderAuditLogQueryVO 查询条件 | ||
44 | + * @return 单条数据 | ||
45 | + */ | ||
46 | + @PostMapping("/query_by_id") | ||
47 | + public ServerResult queryById(@RequestBody OrderAuditLogQueryVO orderAuditLogQueryVO) { | ||
48 | + return orderAuditLogService.queryById(orderAuditLogQueryVO); | ||
49 | + } | ||
50 | +} | ||
51 | + |
src/main/java/com/order/erp/controller/OrderController.java
0 → 100644
1 | +package com.order.erp.controller; | ||
2 | + | ||
3 | +import com.order.erp.common.annotation.AnonymousAccess; | ||
4 | +import com.order.erp.common.constant.ServerResult; | ||
5 | +import com.order.erp.domain.vo.order.OrderAddVO; | ||
6 | +import com.order.erp.domain.vo.order.OrderBaseInfoQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderBaseInfoVO; | ||
8 | +import com.order.erp.service.order.OrderBaseInfoService; | ||
9 | +import org.springframework.validation.annotation.Validated; | ||
10 | +import org.springframework.web.bind.annotation.PostMapping; | ||
11 | +import org.springframework.web.bind.annotation.RequestBody; | ||
12 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
13 | +import org.springframework.web.bind.annotation.RestController; | ||
14 | + | ||
15 | +import javax.annotation.Resource; | ||
16 | + | ||
17 | +/** | ||
18 | + * 订单基础信息表(OrderBaseInfo)表控制层 | ||
19 | + * | ||
20 | + * @author makejava | ||
21 | + * @since 2023-09-08 15:26:43 | ||
22 | + */ | ||
23 | +@RestController | ||
24 | +@RequestMapping("/order/erp/order") | ||
25 | +public class OrderController { | ||
26 | + /** | ||
27 | + * 服务对象 | ||
28 | + */ | ||
29 | + @Resource | ||
30 | + private OrderBaseInfoService orderBaseInfoService; | ||
31 | + | ||
32 | + /** | ||
33 | + * 分页查询 | ||
34 | + * | ||
35 | + * @param orderBaseInfoQueryVO 查询条件 | ||
36 | + * @return 查询结果 | ||
37 | + */ | ||
38 | + @PostMapping("/list_by_page") | ||
39 | + @AnonymousAccess | ||
40 | + public ServerResult listByPage(@RequestBody @Validated OrderBaseInfoQueryVO orderBaseInfoQueryVO) { | ||
41 | + return orderBaseInfoService.listByPage(orderBaseInfoQueryVO); | ||
42 | + } | ||
43 | + | ||
44 | + /** | ||
45 | + * 通过主键查询单条数据 | ||
46 | + * | ||
47 | + * @param orderBaseInfoQueryVO 查询条件 | ||
48 | + * @return 单条数据 | ||
49 | + */ | ||
50 | + @PostMapping("/query_by_id") | ||
51 | + public ServerResult queryById(@RequestBody OrderBaseInfoQueryVO orderBaseInfoQueryVO) { | ||
52 | + return orderBaseInfoService.queryById(orderBaseInfoQueryVO); | ||
53 | + } | ||
54 | + | ||
55 | + /** | ||
56 | + * 新增数据 | ||
57 | + * | ||
58 | + * @param orderAddVO 数据VO | ||
59 | + * @return 新增结果 | ||
60 | + */ | ||
61 | + @PostMapping("/add") | ||
62 | + @AnonymousAccess | ||
63 | + public ServerResult add(@RequestBody OrderAddVO orderAddVO) { | ||
64 | + return orderBaseInfoService.add(orderAddVO); | ||
65 | + } | ||
66 | + | ||
67 | + /** | ||
68 | + * 编辑数据 | ||
69 | + * | ||
70 | + * @param orderBaseInfoVO 数据VO | ||
71 | + * @return 编辑结果 | ||
72 | + */ | ||
73 | + @PostMapping("/edit") | ||
74 | + public ServerResult edit(@RequestBody OrderBaseInfoVO orderBaseInfoVO) { | ||
75 | + return orderBaseInfoService.edit(orderBaseInfoVO); | ||
76 | + } | ||
77 | + | ||
78 | + /** | ||
79 | + * 删除数据 | ||
80 | + * | ||
81 | + * @param orderBaseInfoQueryVO 查询条件 | ||
82 | + * @return 删除是否成功 | ||
83 | + */ | ||
84 | + @PostMapping("/delete_by_id") | ||
85 | + public ServerResult deleteById(@RequestBody OrderBaseInfoQueryVO orderBaseInfoQueryVO) { | ||
86 | + return orderBaseInfoService.deleteById(orderBaseInfoQueryVO); | ||
87 | + } | ||
88 | + | ||
89 | +} | ||
90 | + |
src/main/java/com/order/erp/controller/OrderFieldLockApplyController.java
0 → 100644
1 | +package com.order.erp.controller; | ||
2 | + | ||
3 | +import com.order.erp.common.constant.ServerResult; | ||
4 | +import com.order.erp.domain.vo.order.OrderFieldLockApplyQueryVO; | ||
5 | +import com.order.erp.domain.vo.order.OrderFieldLockApplyVO; | ||
6 | +import com.order.erp.service.order.OrderFieldLockApplyService; | ||
7 | +import org.springframework.validation.annotation.Validated; | ||
8 | +import org.springframework.web.bind.annotation.PostMapping; | ||
9 | +import org.springframework.web.bind.annotation.RequestBody; | ||
10 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
11 | +import org.springframework.web.bind.annotation.RestController; | ||
12 | + | ||
13 | +import javax.annotation.Resource; | ||
14 | + | ||
15 | +/** | ||
16 | + * 用户订单-字段锁定申请表(OrderFieldLockApply)表控制层 | ||
17 | + * | ||
18 | + * @author makejava | ||
19 | + * @since 2023-09-08 15:26:44 | ||
20 | + */ | ||
21 | +@RestController | ||
22 | +@RequestMapping("/order/erp/apply") | ||
23 | +public class OrderFieldLockApplyController { | ||
24 | + /** | ||
25 | + * 服务对象 | ||
26 | + */ | ||
27 | + @Resource | ||
28 | + private OrderFieldLockApplyService orderFieldLockApplyService; | ||
29 | + | ||
30 | + /** | ||
31 | + * 分页查询 | ||
32 | + * | ||
33 | + * @param orderFieldLockApplyQueryVO 查询条件 | ||
34 | + * @return 查询结果 | ||
35 | + */ | ||
36 | + @PostMapping("/list") | ||
37 | + public ServerResult list(@RequestBody @Validated OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) { | ||
38 | + return orderFieldLockApplyService.list(orderFieldLockApplyQueryVO); | ||
39 | + } | ||
40 | + | ||
41 | + /** | ||
42 | + * 通过主键查询单条数据 | ||
43 | + * | ||
44 | + * @param orderFieldLockApplyQueryVO 查询条件 | ||
45 | + * @return 单条数据 | ||
46 | + */ | ||
47 | + @PostMapping("/query_by_id") | ||
48 | + public ServerResult queryById(@RequestBody OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) { | ||
49 | + return orderFieldLockApplyService.queryById(orderFieldLockApplyQueryVO); | ||
50 | + } | ||
51 | + | ||
52 | + /** | ||
53 | + * 新增数据 | ||
54 | + * | ||
55 | + * @param orderFieldLockApplyVO 数据VO | ||
56 | + * @return 新增结果 | ||
57 | + */ | ||
58 | + @PostMapping("/add") | ||
59 | + public ServerResult add(@RequestBody OrderFieldLockApplyVO orderFieldLockApplyVO) { | ||
60 | + return orderFieldLockApplyService.add(orderFieldLockApplyVO); | ||
61 | + } | ||
62 | + | ||
63 | + /** | ||
64 | + * 编辑数据 | ||
65 | + * | ||
66 | + * @param orderFieldLockApplyVO 数据VO | ||
67 | + * @return 编辑结果 | ||
68 | + */ | ||
69 | + @PostMapping("/edit") | ||
70 | + public ServerResult edit(@RequestBody OrderFieldLockApplyVO orderFieldLockApplyVO) { | ||
71 | + return orderFieldLockApplyService.edit(orderFieldLockApplyVO); | ||
72 | + } | ||
73 | + | ||
74 | + /** | ||
75 | + * 删除数据 | ||
76 | + * | ||
77 | + * @param orderFieldLockApplyQueryVO 查询条件 | ||
78 | + * @return 删除是否成功 | ||
79 | + */ | ||
80 | + @PostMapping("/delete_by_id") | ||
81 | + public ServerResult deleteById(@RequestBody OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) { | ||
82 | + return orderFieldLockApplyService.deleteById(orderFieldLockApplyQueryVO); | ||
83 | + } | ||
84 | + | ||
85 | +} | ||
86 | + |
src/main/java/com/order/erp/controller/OrderOptLogController.java
0 → 100644
1 | +package com.order.erp.controller; | ||
2 | + | ||
3 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
4 | +import org.springframework.web.bind.annotation.RestController; | ||
5 | + | ||
6 | +/** | ||
7 | + * 用户订单操作日志表(OrderOptLog)表控制层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:46 | ||
11 | + */ | ||
12 | +@RestController | ||
13 | +@RequestMapping("/gwms/xxx") | ||
14 | +public class OrderOptLogController { | ||
15 | + | ||
16 | +} | ||
17 | + |
src/main/java/com/order/erp/domain/dto/order/OrderAuditLogDO.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 | + * 用户订单审批日志表(OrderAuditLog)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:34 | ||
15 | + */ | ||
16 | +@TableName("order_audit_log") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderAuditLogDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = 897392813770967662L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 订单id | ||
29 | + */ | ||
30 | + private Long orderId; | ||
31 | + /** | ||
32 | + * 申请id | ||
33 | + */ | ||
34 | + private Long applyId; | ||
35 | + /** | ||
36 | + * 操作类型 | ||
37 | + */ | ||
38 | + private String optType; | ||
39 | + | ||
40 | +} |
src/main/java/com/order/erp/domain/dto/order/OrderBaseInfoDO.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 | + * 订单基础信息表(OrderBaseInfo)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:43 | ||
15 | + */ | ||
16 | +@TableName("order_base_info") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderBaseInfoDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = -59225000333017917L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 客户编码 | ||
29 | + */ | ||
30 | + private String customerCode; | ||
31 | + /** | ||
32 | + * 项目号 | ||
33 | + */ | ||
34 | + private String projectNo; | ||
35 | + /** | ||
36 | + * 生产科 | ||
37 | + */ | ||
38 | + private String productionDepartment; | ||
39 | + /** | ||
40 | + * 内部编号 | ||
41 | + */ | ||
42 | + private String innerNo; | ||
43 | + /** | ||
44 | + * 客户po号 | ||
45 | + */ | ||
46 | + private String customerPo; | ||
47 | + /** | ||
48 | + * 客户STYLE# | ||
49 | + */ | ||
50 | + private String customerStyle; | ||
51 | + /** | ||
52 | + * Modelo(REFERENCE) | ||
53 | + */ | ||
54 | + private String modeleLo; | ||
55 | + /** | ||
56 | + * COLLECTION (style description) | ||
57 | + */ | ||
58 | + private String collection; | ||
59 | + /** | ||
60 | + * PO COLOR | ||
61 | + */ | ||
62 | + private String poColor; | ||
63 | + /** | ||
64 | + * 颜色中文 | ||
65 | + */ | ||
66 | + private String cnColor; | ||
67 | + /** | ||
68 | + * pic图片地址 | ||
69 | + */ | ||
70 | + private String picUrl; | ||
71 | + /** | ||
72 | + * 生产要求 | ||
73 | + */ | ||
74 | + private String productionComment; | ||
75 | + /** | ||
76 | + * 数量 | ||
77 | + */ | ||
78 | + private Integer orderCount; | ||
79 | + /** | ||
80 | + * 订单成分 | ||
81 | + */ | ||
82 | + private String orderComposition; | ||
83 | + /** | ||
84 | + * 款式类型 | ||
85 | + */ | ||
86 | + private String productStyle; | ||
87 | + /** | ||
88 | + * 生成科拖货时间 | ||
89 | + */ | ||
90 | + private String productionDepartmentConsignTime; | ||
91 | + /** | ||
92 | + * 订单上HOD时间 | ||
93 | + */ | ||
94 | + private String orderHodTime; | ||
95 | + /** | ||
96 | + * 出库类型 | ||
97 | + */ | ||
98 | + private String outboundType; | ||
99 | + /** | ||
100 | + * 包装类型 | ||
101 | + */ | ||
102 | + private String packetType; | ||
103 | + | ||
104 | +} |
src/main/java/com/order/erp/domain/dto/order/OrderCompletionReportDO.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 | + * 订单-项目完成报告书(OrderCompletionReport)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:44 | ||
15 | + */ | ||
16 | +@TableName("order_completion_report") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderCompletionReportDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = 564944423158745598L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 订单id | ||
29 | + */ | ||
30 | + private Long orderId; | ||
31 | + /** | ||
32 | + * 想法来源 | ||
33 | + */ | ||
34 | + private String ideaSource; | ||
35 | + /** | ||
36 | + * 手工初型 | ||
37 | + */ | ||
38 | + private String manualPreform; | ||
39 | + /** | ||
40 | + * 想法和手工比例分配 | ||
41 | + */ | ||
42 | + private Double ideaManualRate; | ||
43 | + | ||
44 | +} |
src/main/java/com/order/erp/domain/dto/order/OrderFieldLockApplyDO.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 | + * 用户订单-字段锁定申请表(OrderFeildLockApply)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:45 | ||
15 | + */ | ||
16 | +@TableName("order_field_lock_apply") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderFieldLockApplyDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = 646989609392883241L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 订单id | ||
29 | + */ | ||
30 | + private Long orderId; | ||
31 | + /** | ||
32 | + * 申请用户id | ||
33 | + */ | ||
34 | + private Long applyUserId; | ||
35 | + /** | ||
36 | + * 审批用户id | ||
37 | + */ | ||
38 | + private Long auditUserId; | ||
39 | + /** | ||
40 | + * 锁定字段 json字符串 | ||
41 | + */ | ||
42 | + private String fields; | ||
43 | + /** | ||
44 | + * 状态:0 待审批,1 通过,2 拒绝 | ||
45 | + */ | ||
46 | + private Integer status; | ||
47 | + | ||
48 | +} |
src/main/java/com/order/erp/domain/dto/order/OrderFieldLockRecordDO.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 | + * 用户订单-字段锁定记录表(OrderFeildLockRecord)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:45 | ||
15 | + */ | ||
16 | +@TableName("order_field_lock_record") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderFieldLockRecordDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = 326603979617008952L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 订单id | ||
29 | + */ | ||
30 | + private Long orderId; | ||
31 | + /** | ||
32 | + * 用户id | ||
33 | + */ | ||
34 | + private Long userId; | ||
35 | + /** | ||
36 | + * 锁定字段 json字符串 | ||
37 | + */ | ||
38 | + private String fields; | ||
39 | + | ||
40 | +} |
src/main/java/com/order/erp/domain/dto/order/OrderInspectionStageDO.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 | + * 订单-质检环节(OrderInspectionStage)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:46 | ||
15 | + */ | ||
16 | +@TableName("order_inspection_stage") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderInspectionStageDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = -93805900966910002L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 订单id | ||
29 | + */ | ||
30 | + private Long orderId; | ||
31 | + /** | ||
32 | + * 中期验货申请时间 | ||
33 | + */ | ||
34 | + private String midCheckApplyTime; | ||
35 | + /** | ||
36 | + * 中期验货(功能性-拉力/跌落等、外观性-颜色/规格等、耐久性-烤厅等) | ||
37 | + */ | ||
38 | + private String midCheckComment; | ||
39 | + /** | ||
40 | + * 中期验货结果PASS / FAIL | ||
41 | + */ | ||
42 | + private String midCheckResult; | ||
43 | + /** | ||
44 | + * 尾期验货申请时间 | ||
45 | + */ | ||
46 | + private String endCheckApplyTime; | ||
47 | + /** | ||
48 | + * 长度/规格 | ||
49 | + */ | ||
50 | + private String specification; | ||
51 | + /** | ||
52 | + * 功能性不良 | ||
53 | + */ | ||
54 | + private String functionality; | ||
55 | + /** | ||
56 | + * 电镀不良 | ||
57 | + */ | ||
58 | + private String electroplate; | ||
59 | + /** | ||
60 | + * 不良1 | ||
61 | + */ | ||
62 | + private String value1; | ||
63 | + /** | ||
64 | + * 不良2 | ||
65 | + */ | ||
66 | + private String value2; | ||
67 | + /** | ||
68 | + * 其他不良3 | ||
69 | + */ | ||
70 | + private String value3; | ||
71 | + /** | ||
72 | + * 包装:卡片、条码、箱贴,箱单 | ||
73 | + */ | ||
74 | + private String boxPacket; | ||
75 | + /** | ||
76 | + * 尾期验货结果PASS / FAIL | ||
77 | + */ | ||
78 | + private String endCheckResult; | ||
79 | + | ||
80 | +} |
src/main/java/com/order/erp/domain/dto/order/OrderOptLogDO.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 | + * 用户订单操作日志表(OrderOptLog)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:46 | ||
15 | + */ | ||
16 | +@TableName("order_opt_log") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderOptLogDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = 141181759610029945L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 订单id | ||
29 | + */ | ||
30 | + private Long orderId; | ||
31 | + /** | ||
32 | + * 用户id | ||
33 | + */ | ||
34 | + private Long userId; | ||
35 | + /** | ||
36 | + * 操作类型 | ||
37 | + */ | ||
38 | + private String optType; | ||
39 | + /** | ||
40 | + * 操作字段 json字符串 | ||
41 | + */ | ||
42 | + private String fields; | ||
43 | + | ||
44 | +} |
src/main/java/com/order/erp/domain/dto/order/OrderProfitAnalysisDO.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 | + * 订单利润分析表(OrderProfitAnalysis)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:47 | ||
15 | + */ | ||
16 | +@TableName("order_profit_analysis") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderProfitAnalysisDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = 498441764936450532L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 订单id | ||
29 | + */ | ||
30 | + private Long orderId; | ||
31 | + /** | ||
32 | + * 客户单价$ | ||
33 | + */ | ||
34 | + private Double customerPrice; | ||
35 | + /** | ||
36 | + * 客户总价$ | ||
37 | + */ | ||
38 | + private Double customerTotalPrice; | ||
39 | + /** | ||
40 | + * 生成科单价¥ | ||
41 | + */ | ||
42 | + private Double productionDepartmentPrice; | ||
43 | + /** | ||
44 | + * 生成科总价¥ | ||
45 | + */ | ||
46 | + private Double productionDepartmentTotalPrice; | ||
47 | + /** | ||
48 | + * 包装费用¥ | ||
49 | + */ | ||
50 | + private Double packetPrice; | ||
51 | + /** | ||
52 | + * 包装费用合计¥ | ||
53 | + */ | ||
54 | + private Double packetTotalPrice; | ||
55 | + /** | ||
56 | + * 汇率 | ||
57 | + */ | ||
58 | + private Double exchangeRate; | ||
59 | + /** | ||
60 | + * 利润率 | ||
61 | + */ | ||
62 | + private Double profitRate; | ||
63 | + | ||
64 | +} |
src/main/java/com/order/erp/domain/dto/order/OrderTrackStageDO.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 | + * 订单-跟单环节(OrderTrackStage)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:14:48 | ||
15 | + */ | ||
16 | +@TableName("order_track_stage") | ||
17 | +@Data | ||
18 | +@AllArgsConstructor | ||
19 | +@ToString | ||
20 | +@NoArgsConstructor | ||
21 | +@EqualsAndHashCode(callSuper = false) | ||
22 | +@SuperBuilder | ||
23 | +public class OrderTrackStageDO extends BaseDO implements Serializable { | ||
24 | + private static final long serialVersionUID = -36389382955530820L; | ||
25 | + | ||
26 | + private Long id; | ||
27 | + /** | ||
28 | + * 订单id | ||
29 | + */ | ||
30 | + private Long orderId; | ||
31 | + /** | ||
32 | + * pp date | ||
33 | + */ | ||
34 | + private String ppTime; | ||
35 | + /** | ||
36 | + * pp样品确认意见 | ||
37 | + */ | ||
38 | + private String ppConfirmResult; | ||
39 | + /** | ||
40 | + * EXTRA,SHOWROOM,ONLINE sample发送时间 | ||
41 | + */ | ||
42 | + private String esoSampleSendTime; | ||
43 | + /** | ||
44 | + * shippment sample 发送时间 | ||
45 | + */ | ||
46 | + private String shippmentSampleSendTime; | ||
47 | + /** | ||
48 | + * shipment sample确认意见 | ||
49 | + */ | ||
50 | + private String shippmentSampleConfirmTime; | ||
51 | + /** | ||
52 | + * 自测通过时间 | ||
53 | + */ | ||
54 | + private String selfTestPassTime; | ||
55 | + /** | ||
56 | + * Aitex测试发送时间 | ||
57 | + */ | ||
58 | + private String aitexTestSendTime; | ||
59 | + /** | ||
60 | + * Aitex测试结果时间 | ||
61 | + */ | ||
62 | + private String aitexTestFinishTime; | ||
63 | + /** | ||
64 | + * SGS测试发送时间 | ||
65 | + */ | ||
66 | + private String sgsTestSendTime; | ||
67 | + /** | ||
68 | + * SGS测试结果时间 | ||
69 | + */ | ||
70 | + private String sgsTestFinishTime; | ||
71 | + /** | ||
72 | + * Barcode sticker arrival time | ||
73 | + */ | ||
74 | + private String barcodeStickerArrivalTime; | ||
75 | + /** | ||
76 | + * 最晚包材到货时间 | ||
77 | + */ | ||
78 | + private String latestArrivalTime; | ||
79 | + /** | ||
80 | + * 最晚订舱+报关资料时间 | ||
81 | + */ | ||
82 | + private String latestBkTime; | ||
83 | + | ||
84 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderAddVO.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 | + * 订单基础信息表(OrderBaseInfo)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:43 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderAddVO implements Serializable { | ||
21 | + | ||
22 | + /** | ||
23 | + * 订单基础信息 | ||
24 | + */ | ||
25 | + private OrderBaseInfoVO baseInfo; | ||
26 | + | ||
27 | + /** | ||
28 | + * 利润分析信息 | ||
29 | + */ | ||
30 | + private OrderProfitAnalysisVO profitAnalysisInfo; | ||
31 | + | ||
32 | + /** | ||
33 | + * 项目完成报告信息 | ||
34 | + */ | ||
35 | + private OrderCompletionReportVO reportInfo; | ||
36 | + | ||
37 | + /** | ||
38 | + * 跟单信息 | ||
39 | + */ | ||
40 | + private OrderTrackStageVO trackStageInfo; | ||
41 | + | ||
42 | + /** | ||
43 | + * 质检信息 | ||
44 | + */ | ||
45 | + private OrderInspectionStageVO inspectionStageInfo; | ||
46 | + | ||
47 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderAuditLogQueryVO.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 | + * 用户订单审批日志表(OrderAuditLog)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:41 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderAuditLogQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = -37110805399337208L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 订单id | ||
31 | + */ | ||
32 | + private Long orderId; | ||
33 | + /** | ||
34 | + * 申请id | ||
35 | + */ | ||
36 | + private Long applyId; | ||
37 | + /** | ||
38 | + * 操作类型 | ||
39 | + */ | ||
40 | + private String optType; | ||
41 | + | ||
42 | + | ||
43 | +} | ||
44 | + |
src/main/java/com/order/erp/domain/vo/order/OrderAuditLogVO.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 | + * 用户订单审批日志表(OrderAuditLog)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:40 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderAuditLogVO implements Serializable { | ||
21 | + private static final long serialVersionUID = 350493898057560630L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 订单id | ||
26 | + */ | ||
27 | + private Long orderId; | ||
28 | + /** | ||
29 | + * 申请id | ||
30 | + */ | ||
31 | + private Long applyId; | ||
32 | + /** | ||
33 | + * 操作类型 | ||
34 | + */ | ||
35 | + private String optType; | ||
36 | + | ||
37 | + | ||
38 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderBaseInfoQueryVO.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 | + * 订单基础信息表(OrderBaseInfo)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:43 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderBaseInfoQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = -84816007994858993L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 客户编码 | ||
31 | + */ | ||
32 | + private String customerCode; | ||
33 | + /** | ||
34 | + * 项目号 | ||
35 | + */ | ||
36 | + private String projectNo; | ||
37 | + /** | ||
38 | + * 生产科 | ||
39 | + */ | ||
40 | + private String productionDepartment; | ||
41 | + /** | ||
42 | + * 内部编号 | ||
43 | + */ | ||
44 | + private String innerNo; | ||
45 | + /** | ||
46 | + * 客户po号 | ||
47 | + */ | ||
48 | + private String customerPo; | ||
49 | + /** | ||
50 | + * 客户STYLE# | ||
51 | + */ | ||
52 | + private String customerStyle; | ||
53 | + /** | ||
54 | + * Modelo(REFERENCE) | ||
55 | + */ | ||
56 | + private String modeleLo; | ||
57 | + /** | ||
58 | + * COLLECTION (style description) | ||
59 | + */ | ||
60 | + private String collection; | ||
61 | + /** | ||
62 | + * PO COLOR | ||
63 | + */ | ||
64 | + private String poColor; | ||
65 | + /** | ||
66 | + * 颜色中文 | ||
67 | + */ | ||
68 | + private String cnColor; | ||
69 | + /** | ||
70 | + * pic图片地址 | ||
71 | + */ | ||
72 | + private String picUrl; | ||
73 | + /** | ||
74 | + * 生产要求 | ||
75 | + */ | ||
76 | + private String productionComment; | ||
77 | + /** | ||
78 | + * 数量 | ||
79 | + */ | ||
80 | + private Integer orderCount; | ||
81 | + /** | ||
82 | + * 订单成分 | ||
83 | + */ | ||
84 | + private String orderComposition; | ||
85 | + /** | ||
86 | + * 款式类型 | ||
87 | + */ | ||
88 | + private String productStyle; | ||
89 | + /** | ||
90 | + * 生成科拖货时间 | ||
91 | + */ | ||
92 | + private String productionDepartmentConsignTime; | ||
93 | + /** | ||
94 | + * 订单上HOD时间 | ||
95 | + */ | ||
96 | + private String orderHodTime; | ||
97 | + /** | ||
98 | + * 出库类型 | ||
99 | + */ | ||
100 | + private String outboundType; | ||
101 | + /** | ||
102 | + * 包装类型 | ||
103 | + */ | ||
104 | + private String packetType; | ||
105 | + | ||
106 | + | ||
107 | +} | ||
108 | + |
src/main/java/com/order/erp/domain/vo/order/OrderBaseInfoVO.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 | + * 订单基础信息表(OrderBaseInfo)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:43 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderBaseInfoVO implements Serializable { | ||
21 | + private static final long serialVersionUID = -93899838211373700L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 客户编码 | ||
26 | + */ | ||
27 | + private String customerCode; | ||
28 | + /** | ||
29 | + * 项目号 | ||
30 | + */ | ||
31 | + private String projectNo; | ||
32 | + /** | ||
33 | + * 生产科 | ||
34 | + */ | ||
35 | + private String productionDepartment; | ||
36 | + /** | ||
37 | + * 内部编号 | ||
38 | + */ | ||
39 | + private String innerNo; | ||
40 | + /** | ||
41 | + * 客户po号 | ||
42 | + */ | ||
43 | + private String customerPo; | ||
44 | + /** | ||
45 | + * 客户STYLE# | ||
46 | + */ | ||
47 | + private String customerStyle; | ||
48 | + /** | ||
49 | + * Modelo(REFERENCE) | ||
50 | + */ | ||
51 | + private String modeleLo; | ||
52 | + /** | ||
53 | + * COLLECTION (style description) | ||
54 | + */ | ||
55 | + private String collection; | ||
56 | + /** | ||
57 | + * PO COLOR | ||
58 | + */ | ||
59 | + private String poColor; | ||
60 | + /** | ||
61 | + * 颜色中文 | ||
62 | + */ | ||
63 | + private String cnColor; | ||
64 | + /** | ||
65 | + * pic图片地址 | ||
66 | + */ | ||
67 | + private String picUrl; | ||
68 | + /** | ||
69 | + * 生产要求 | ||
70 | + */ | ||
71 | + private String productionComment; | ||
72 | + /** | ||
73 | + * 数量 | ||
74 | + */ | ||
75 | + private Integer orderCount; | ||
76 | + /** | ||
77 | + * 订单成分 | ||
78 | + */ | ||
79 | + private String orderComposition; | ||
80 | + /** | ||
81 | + * 款式类型 | ||
82 | + */ | ||
83 | + private String productStyle; | ||
84 | + /** | ||
85 | + * 生成科拖货时间 | ||
86 | + */ | ||
87 | + private String productionDepartmentConsignTime; | ||
88 | + /** | ||
89 | + * 订单上HOD时间 | ||
90 | + */ | ||
91 | + private String orderHodTime; | ||
92 | + /** | ||
93 | + * 出库类型 | ||
94 | + */ | ||
95 | + private String outboundType; | ||
96 | + /** | ||
97 | + * 包装类型 | ||
98 | + */ | ||
99 | + private String packetType; | ||
100 | + | ||
101 | + | ||
102 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderCompletionReportQueryVO.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 | + * 订单-项目完成报告书(OrderCompletionReport)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:44 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderCompletionReportQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = -91836402076014992L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 订单id | ||
31 | + */ | ||
32 | + private Long orderId; | ||
33 | + /** | ||
34 | + * 想法来源 | ||
35 | + */ | ||
36 | + private String ideaSource; | ||
37 | + /** | ||
38 | + * 手工初型 | ||
39 | + */ | ||
40 | + private String manualPreform; | ||
41 | + /** | ||
42 | + * 想法和手工比例分配 | ||
43 | + */ | ||
44 | + private Double ideaManualRate; | ||
45 | + | ||
46 | + | ||
47 | +} | ||
48 | + |
src/main/java/com/order/erp/domain/vo/order/OrderCompletionReportVO.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 | + * 订单-项目完成报告书(OrderCompletionReport)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:44 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderCompletionReportVO implements Serializable { | ||
21 | + private static final long serialVersionUID = -32652237828949564L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 订单id | ||
26 | + */ | ||
27 | + private Long orderId; | ||
28 | + /** | ||
29 | + * 想法来源 | ||
30 | + */ | ||
31 | + private String ideaSource; | ||
32 | + /** | ||
33 | + * 手工初型 | ||
34 | + */ | ||
35 | + private String manualPreform; | ||
36 | + /** | ||
37 | + * 想法和手工比例分配 | ||
38 | + */ | ||
39 | + private Double ideaManualRate; | ||
40 | + | ||
41 | + | ||
42 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderFieldLockApplyQueryVO.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 | + * 用户订单-字段锁定申请表(OrderFieldLockApply)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:44 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderFieldLockApplyQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = -71032075185521972L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 订单id | ||
31 | + */ | ||
32 | + private Long orderId; | ||
33 | + /** | ||
34 | + * 申请用户id | ||
35 | + */ | ||
36 | + private Long applyUserId; | ||
37 | + /** | ||
38 | + * 审批用户id | ||
39 | + */ | ||
40 | + private Long auditUserId; | ||
41 | + /** | ||
42 | + * 锁定字段 json字符串 | ||
43 | + */ | ||
44 | + private String fields; | ||
45 | + /** | ||
46 | + * 状态:0 待审批,1 通过,2 拒绝 | ||
47 | + */ | ||
48 | + private Integer status; | ||
49 | + | ||
50 | + | ||
51 | +} | ||
52 | + |
src/main/java/com/order/erp/domain/vo/order/OrderFieldLockApplyVO.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 | + * 用户订单-字段锁定申请表(OrderFieldLockApply)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:44 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderFieldLockApplyVO implements Serializable { | ||
21 | + private static final long serialVersionUID = -23417783536433084L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 订单id | ||
26 | + */ | ||
27 | + private Long orderId; | ||
28 | + /** | ||
29 | + * 申请用户id | ||
30 | + */ | ||
31 | + private Long applyUserId; | ||
32 | + /** | ||
33 | + * 审批用户id | ||
34 | + */ | ||
35 | + private Long auditUserId; | ||
36 | + /** | ||
37 | + * 锁定字段 json字符串 | ||
38 | + */ | ||
39 | + private String fields; | ||
40 | + /** | ||
41 | + * 状态:0 待审批,1 通过,2 拒绝 | ||
42 | + */ | ||
43 | + private Integer status; | ||
44 | + | ||
45 | + | ||
46 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderFieldLockRecordQueryVO.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 | + * 用户订单-字段锁定记录表(OrderFieldLockRecord)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:45 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderFieldLockRecordQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = -45758765737391862L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 订单id | ||
31 | + */ | ||
32 | + private Long orderId; | ||
33 | + /** | ||
34 | + * 用户id | ||
35 | + */ | ||
36 | + private Long userId; | ||
37 | + /** | ||
38 | + * 锁定字段 json字符串 | ||
39 | + */ | ||
40 | + private String fields; | ||
41 | + | ||
42 | + | ||
43 | +} | ||
44 | + |
src/main/java/com/order/erp/domain/vo/order/OrderFieldLockRecordVO.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 | + * 用户订单-字段锁定记录表(OrderFieldLockRecord)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:45 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderFieldLockRecordVO implements Serializable { | ||
21 | + private static final long serialVersionUID = -35697012856485664L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 订单id | ||
26 | + */ | ||
27 | + private Long orderId; | ||
28 | + /** | ||
29 | + * 用户id | ||
30 | + */ | ||
31 | + private Long userId; | ||
32 | + /** | ||
33 | + * 锁定字段 json字符串 | ||
34 | + */ | ||
35 | + private String fields; | ||
36 | + | ||
37 | + | ||
38 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderInfoResultVO.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 | + * 订单基础信息表(OrderBaseInfo)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:43 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderInfoResultVO extends OrderBaseInfoVO implements Serializable { | ||
21 | + | ||
22 | + /** | ||
23 | + * 利润分析信息 | ||
24 | + */ | ||
25 | + private OrderProfitAnalysisVO profitAnalysisInfo; | ||
26 | + | ||
27 | + /** | ||
28 | + * 项目完成报告信息 | ||
29 | + */ | ||
30 | + private OrderCompletionReportVO reportInfo; | ||
31 | + | ||
32 | + /** | ||
33 | + * 跟单信息 | ||
34 | + */ | ||
35 | + private OrderTrackStageVO trackStageInfo; | ||
36 | + | ||
37 | + /** | ||
38 | + * 质检信息 | ||
39 | + */ | ||
40 | + private OrderInspectionStageVO inspectionStageInfo; | ||
41 | + | ||
42 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderInspectionStageQueryVO.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 | + * 订单-质检环节(OrderInspectionStage)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:46 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderInspectionStageQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = -41942949481027492L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 订单id | ||
31 | + */ | ||
32 | + private Long orderId; | ||
33 | + /** | ||
34 | + * 中期验货申请时间 | ||
35 | + */ | ||
36 | + private String midCheckApplyTime; | ||
37 | + /** | ||
38 | + * 中期验货(功能性-拉力/跌落等、外观性-颜色/规格等、耐久性-烤厅等) | ||
39 | + */ | ||
40 | + private String midCheckComment; | ||
41 | + /** | ||
42 | + * 中期验货结果PASS / FAIL | ||
43 | + */ | ||
44 | + private String midCheckResult; | ||
45 | + /** | ||
46 | + * 尾期验货申请时间 | ||
47 | + */ | ||
48 | + private String endCheckApplyTime; | ||
49 | + /** | ||
50 | + * 长度/规格 | ||
51 | + */ | ||
52 | + private String specification; | ||
53 | + /** | ||
54 | + * 功能性不良 | ||
55 | + */ | ||
56 | + private String functionality; | ||
57 | + /** | ||
58 | + * 电镀不良 | ||
59 | + */ | ||
60 | + private String electroplate; | ||
61 | + /** | ||
62 | + * 不良1 | ||
63 | + */ | ||
64 | + private String value1; | ||
65 | + /** | ||
66 | + * 不良2 | ||
67 | + */ | ||
68 | + private String value2; | ||
69 | + /** | ||
70 | + * 其他不良3 | ||
71 | + */ | ||
72 | + private String value3; | ||
73 | + /** | ||
74 | + * 包装:卡片、条码、箱贴,箱单 | ||
75 | + */ | ||
76 | + private String boxPacket; | ||
77 | + /** | ||
78 | + * 尾期验货结果PASS / FAIL | ||
79 | + */ | ||
80 | + private String endCheckResult; | ||
81 | + | ||
82 | + | ||
83 | +} | ||
84 | + |
src/main/java/com/order/erp/domain/vo/order/OrderInspectionStageVO.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 | + * 订单-质检环节(OrderInspectionStage)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:45 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderInspectionStageVO implements Serializable { | ||
21 | + private static final long serialVersionUID = -10043302824546471L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 订单id | ||
26 | + */ | ||
27 | + private Long orderId; | ||
28 | + /** | ||
29 | + * 中期验货申请时间 | ||
30 | + */ | ||
31 | + private String midCheckApplyTime; | ||
32 | + /** | ||
33 | + * 中期验货(功能性-拉力/跌落等、外观性-颜色/规格等、耐久性-烤厅等) | ||
34 | + */ | ||
35 | + private String midCheckComment; | ||
36 | + /** | ||
37 | + * 中期验货结果PASS / FAIL | ||
38 | + */ | ||
39 | + private String midCheckResult; | ||
40 | + /** | ||
41 | + * 尾期验货申请时间 | ||
42 | + */ | ||
43 | + private String endCheckApplyTime; | ||
44 | + /** | ||
45 | + * 长度/规格 | ||
46 | + */ | ||
47 | + private String specification; | ||
48 | + /** | ||
49 | + * 功能性不良 | ||
50 | + */ | ||
51 | + private String functionality; | ||
52 | + /** | ||
53 | + * 电镀不良 | ||
54 | + */ | ||
55 | + private String electroplate; | ||
56 | + /** | ||
57 | + * 不良1 | ||
58 | + */ | ||
59 | + private String value1; | ||
60 | + /** | ||
61 | + * 不良2 | ||
62 | + */ | ||
63 | + private String value2; | ||
64 | + /** | ||
65 | + * 其他不良3 | ||
66 | + */ | ||
67 | + private String value3; | ||
68 | + /** | ||
69 | + * 包装:卡片、条码、箱贴,箱单 | ||
70 | + */ | ||
71 | + private String boxPacket; | ||
72 | + /** | ||
73 | + * 尾期验货结果PASS / FAIL | ||
74 | + */ | ||
75 | + private String endCheckResult; | ||
76 | + | ||
77 | + | ||
78 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderOptLogQueryVO.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 | + * 用户订单操作日志表(OrderOptLog)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:46 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderOptLogQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = 733714341638650313L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 订单id | ||
31 | + */ | ||
32 | + private Long orderId; | ||
33 | + /** | ||
34 | + * 用户id | ||
35 | + */ | ||
36 | + private Long userId; | ||
37 | + /** | ||
38 | + * 操作类型 | ||
39 | + */ | ||
40 | + private String optType; | ||
41 | + /** | ||
42 | + * 操作字段 json字符串 | ||
43 | + */ | ||
44 | + private String fields; | ||
45 | + | ||
46 | + | ||
47 | +} | ||
48 | + |
src/main/java/com/order/erp/domain/vo/order/OrderOptLogVO.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 | + * 用户订单操作日志表(OrderOptLog)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:46 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderOptLogVO implements Serializable { | ||
21 | + private static final long serialVersionUID = 898697110914967682L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 订单id | ||
26 | + */ | ||
27 | + private Long orderId; | ||
28 | + /** | ||
29 | + * 用户id | ||
30 | + */ | ||
31 | + private Long userId; | ||
32 | + /** | ||
33 | + * 操作类型 | ||
34 | + */ | ||
35 | + private String optType; | ||
36 | + /** | ||
37 | + * 操作字段 json字符串 | ||
38 | + */ | ||
39 | + private String fields; | ||
40 | + | ||
41 | + | ||
42 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderProfitAnalysisQueryVO.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 | + * 订单利润分析表(OrderProfitAnalysis)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:47 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderProfitAnalysisQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = 985919704805776712L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 订单id | ||
31 | + */ | ||
32 | + private Long orderId; | ||
33 | + /** | ||
34 | + * 客户单价$ | ||
35 | + */ | ||
36 | + private Double customerPrice; | ||
37 | + /** | ||
38 | + * 客户总价$ | ||
39 | + */ | ||
40 | + private Double customerTotalPrice; | ||
41 | + /** | ||
42 | + * 生成科单价¥ | ||
43 | + */ | ||
44 | + private Double productionDepartmentPrice; | ||
45 | + /** | ||
46 | + * 生成科总价¥ | ||
47 | + */ | ||
48 | + private Double productionDepartmentTotalPrice; | ||
49 | + /** | ||
50 | + * 包装费用¥ | ||
51 | + */ | ||
52 | + private Double packetPrice; | ||
53 | + /** | ||
54 | + * 包装费用合计¥ | ||
55 | + */ | ||
56 | + private Double packetTotalPrice; | ||
57 | + /** | ||
58 | + * 汇率 | ||
59 | + */ | ||
60 | + private Double exchangeRate; | ||
61 | + /** | ||
62 | + * 利润率 | ||
63 | + */ | ||
64 | + private Double profitRate; | ||
65 | + | ||
66 | + | ||
67 | +} | ||
68 | + |
src/main/java/com/order/erp/domain/vo/order/OrderProfitAnalysisVO.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 | + * 订单利润分析表(OrderProfitAnalysis)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:47 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderProfitAnalysisVO implements Serializable { | ||
21 | + private static final long serialVersionUID = 203829524685310888L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 订单id | ||
26 | + */ | ||
27 | + private Long orderId; | ||
28 | + /** | ||
29 | + * 客户单价$ | ||
30 | + */ | ||
31 | + private Double customerPrice; | ||
32 | + /** | ||
33 | + * 客户总价$ | ||
34 | + */ | ||
35 | + private Double customerTotalPrice; | ||
36 | + /** | ||
37 | + * 生成科单价¥ | ||
38 | + */ | ||
39 | + private Double productionDepartmentPrice; | ||
40 | + /** | ||
41 | + * 生成科总价¥ | ||
42 | + */ | ||
43 | + private Double productionDepartmentTotalPrice; | ||
44 | + /** | ||
45 | + * 包装费用¥ | ||
46 | + */ | ||
47 | + private Double packetPrice; | ||
48 | + /** | ||
49 | + * 包装费用合计¥ | ||
50 | + */ | ||
51 | + private Double packetTotalPrice; | ||
52 | + /** | ||
53 | + * 汇率 | ||
54 | + */ | ||
55 | + private Double exchangeRate; | ||
56 | + /** | ||
57 | + * 利润率 | ||
58 | + */ | ||
59 | + private Double profitRate; | ||
60 | + | ||
61 | + | ||
62 | +} |
src/main/java/com/order/erp/domain/vo/order/OrderTrackStageQueryVO.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 | + * 订单-跟单环节(OrderTrackStage)实体类 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:48 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@ToString | ||
19 | +@NoArgsConstructor | ||
20 | +@EqualsAndHashCode(callSuper = false) | ||
21 | +@SuperBuilder | ||
22 | +public class OrderTrackStageQueryVO extends BasePageVO implements Serializable { | ||
23 | + private static final long serialVersionUID = -84814967817913287L; | ||
24 | + | ||
25 | + private List<Long> ids; | ||
26 | + | ||
27 | + | ||
28 | + private Long id; | ||
29 | + /** | ||
30 | + * 订单id | ||
31 | + */ | ||
32 | + private Long orderId; | ||
33 | + /** | ||
34 | + * pp date | ||
35 | + */ | ||
36 | + private String ppTime; | ||
37 | + /** | ||
38 | + * pp样品确认意见 | ||
39 | + */ | ||
40 | + private String ppConfirmResult; | ||
41 | + /** | ||
42 | + * EXTRA,SHOWROOM,ONLINE sample发送时间 | ||
43 | + */ | ||
44 | + private String esoSampleSendTime; | ||
45 | + /** | ||
46 | + * shippment sample 发送时间 | ||
47 | + */ | ||
48 | + private String shippmentSampleSendTime; | ||
49 | + /** | ||
50 | + * shipment sample确认意见 | ||
51 | + */ | ||
52 | + private String shippmentSampleConfirmTime; | ||
53 | + /** | ||
54 | + * 自测通过时间 | ||
55 | + */ | ||
56 | + private String selfTestPassTime; | ||
57 | + /** | ||
58 | + * Aitex测试发送时间 | ||
59 | + */ | ||
60 | + private String aitexTestSendTime; | ||
61 | + /** | ||
62 | + * Aitex测试结果时间 | ||
63 | + */ | ||
64 | + private String aitexTestFinishTime; | ||
65 | + /** | ||
66 | + * SGS测试发送时间 | ||
67 | + */ | ||
68 | + private String sgsTestSendTime; | ||
69 | + /** | ||
70 | + * SGS测试结果时间 | ||
71 | + */ | ||
72 | + private String sgsTestFinishTime; | ||
73 | + /** | ||
74 | + * Barcode sticker arrival time | ||
75 | + */ | ||
76 | + private String barcodeStickerArrivalTime; | ||
77 | + /** | ||
78 | + * 最晚包材到货时间 | ||
79 | + */ | ||
80 | + private String latestArrivalTime; | ||
81 | + /** | ||
82 | + * 最晚订舱+报关资料时间 | ||
83 | + */ | ||
84 | + private String latestBkTime; | ||
85 | + | ||
86 | + | ||
87 | +} | ||
88 | + |
src/main/java/com/order/erp/domain/vo/order/OrderTrackStageVO.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 | + * 订单-跟单环节(OrderTrackStage)实体类 | ||
10 | + * | ||
11 | + * @author makejava | ||
12 | + * @since 2023-09-08 15:26:48 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@ToString | ||
17 | +@NoArgsConstructor | ||
18 | +@EqualsAndHashCode(callSuper = false) | ||
19 | +@SuperBuilder | ||
20 | +public class OrderTrackStageVO implements Serializable { | ||
21 | + private static final long serialVersionUID = -10371990687091593L; | ||
22 | + | ||
23 | + private Long id; | ||
24 | + /** | ||
25 | + * 订单id | ||
26 | + */ | ||
27 | + private Long orderId; | ||
28 | + /** | ||
29 | + * pp date | ||
30 | + */ | ||
31 | + private String ppTime; | ||
32 | + /** | ||
33 | + * pp样品确认意见 | ||
34 | + */ | ||
35 | + private String ppConfirmResult; | ||
36 | + /** | ||
37 | + * EXTRA,SHOWROOM,ONLINE sample发送时间 | ||
38 | + */ | ||
39 | + private String esoSampleSendTime; | ||
40 | + /** | ||
41 | + * shippment sample 发送时间 | ||
42 | + */ | ||
43 | + private String shippmentSampleSendTime; | ||
44 | + /** | ||
45 | + * shipment sample确认意见 | ||
46 | + */ | ||
47 | + private String shippmentSampleConfirmResult; | ||
48 | + /** | ||
49 | + * 自测通过时间 | ||
50 | + */ | ||
51 | + private String selfTestPassTime; | ||
52 | + /** | ||
53 | + * Aitex测试发送时间 | ||
54 | + */ | ||
55 | + private String aitexTestSendTime; | ||
56 | + /** | ||
57 | + * Aitex测试结果 | ||
58 | + */ | ||
59 | + private String aitexTestFinishResult; | ||
60 | + /** | ||
61 | + * SGS测试发送时间 | ||
62 | + */ | ||
63 | + private String sgsTestSendTime; | ||
64 | + /** | ||
65 | + * SGS测试结果 | ||
66 | + */ | ||
67 | + private String sgsTestFinishResult; | ||
68 | + /** | ||
69 | + * Barcode sticker arrival time | ||
70 | + */ | ||
71 | + private String barcodeStickerArrivalTime; | ||
72 | + /** | ||
73 | + * 最晚包材到货时间 | ||
74 | + */ | ||
75 | + private String latestArrivalTime; | ||
76 | + /** | ||
77 | + * 最晚订舱+报关资料时间 | ||
78 | + */ | ||
79 | + private String latestBkTime; | ||
80 | + | ||
81 | + | ||
82 | +} |
src/main/java/com/order/erp/mapper/order/OrderAuditLogMapper.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.OrderAuditLogDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 用户订单审批日志表(OrderAuditLog)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:41 | ||
11 | + */ | ||
12 | +public interface OrderAuditLogMapper extends BaseMapper<OrderAuditLogDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/mapper/order/OrderBaseInfoMapper.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.OrderBaseInfoDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 订单基础信息表(OrderBaseInfo)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:43 | ||
11 | + */ | ||
12 | +public interface OrderBaseInfoMapper extends BaseMapper<OrderBaseInfoDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/mapper/order/OrderCompletionReportMapper.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.OrderCompletionReportDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 订单-项目完成报告书(OrderCompletionReport)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:44 | ||
11 | + */ | ||
12 | +public interface OrderCompletionReportMapper extends BaseMapper<OrderCompletionReportDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/mapper/order/OrderFieldLockApplyMapper.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.OrderFieldLockApplyDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 用户订单-字段锁定申请表(OrderFieldLockApply)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:45 | ||
11 | + */ | ||
12 | +public interface OrderFieldLockApplyMapper extends BaseMapper<OrderFieldLockApplyDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/mapper/order/OrderFieldLockRecordMapper.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.OrderFieldLockRecordDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 用户订单-字段锁定记录表(OrderFieldLockRecord)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:45 | ||
11 | + */ | ||
12 | +public interface OrderFieldLockRecordMapper extends BaseMapper<OrderFieldLockRecordDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/mapper/order/OrderInspectionStageMapper.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.OrderInspectionStageDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 订单-质检环节(OrderInspectionStage)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:46 | ||
11 | + */ | ||
12 | +public interface OrderInspectionStageMapper extends BaseMapper<OrderInspectionStageDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/mapper/order/OrderOptLogMapper.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.OrderOptLogDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 用户订单操作日志表(OrderOptLog)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:46 | ||
11 | + */ | ||
12 | +public interface OrderOptLogMapper extends BaseMapper<OrderOptLogDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/mapper/order/OrderProfitAnalysisMapper.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.OrderProfitAnalysisDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 订单利润分析表(OrderProfitAnalysis)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:47 | ||
11 | + */ | ||
12 | +public interface OrderProfitAnalysisMapper extends BaseMapper<OrderProfitAnalysisDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/mapper/order/OrderTrackStageMapper.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.OrderTrackStageDO; | ||
5 | + | ||
6 | +/** | ||
7 | + * 订单-跟单环节(OrderTrackStage)表数据库访问层 | ||
8 | + * | ||
9 | + * @author makejava | ||
10 | + * @since 2023-09-08 15:26:48 | ||
11 | + */ | ||
12 | +public interface OrderTrackStageMapper extends BaseMapper<OrderTrackStageDO> { | ||
13 | + | ||
14 | + | ||
15 | +} | ||
16 | + |
src/main/java/com/order/erp/service/order/OrderAuditLogService.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.OrderAuditLogDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderAuditLogQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderAuditLogVO; | ||
8 | + | ||
9 | +/** | ||
10 | + * 用户订单审批日志表(OrderAuditLog)表服务接口 | ||
11 | + * | ||
12 | + * @author makejava | ||
13 | + * @since 2023-09-08 15:26:42 | ||
14 | + */ | ||
15 | +public interface OrderAuditLogService extends IService<OrderAuditLogDO> { | ||
16 | + | ||
17 | + /** | ||
18 | + * 通过ID查询单条数据 | ||
19 | + * | ||
20 | + * @param orderAuditLogQueryVO 主键 | ||
21 | + * @return 实例对象 | ||
22 | + */ | ||
23 | + ServerResult queryById(OrderAuditLogQueryVO orderAuditLogQueryVO); | ||
24 | + | ||
25 | + /** | ||
26 | + * 分页查询 | ||
27 | + * | ||
28 | + * @param orderAuditLogQueryVO 筛选条件 | ||
29 | + * @return 查询结果 | ||
30 | + */ | ||
31 | + ServerResult list(OrderAuditLogQueryVO orderAuditLogQueryVO); | ||
32 | + | ||
33 | + /** | ||
34 | + * 新增数据 | ||
35 | + * | ||
36 | + * @param orderAuditLogVO 数据VO | ||
37 | + * @return 新增结果 | ||
38 | + */ | ||
39 | + ServerResult add(OrderAuditLogVO orderAuditLogVO); | ||
40 | + | ||
41 | + /** | ||
42 | + * 修改数据 | ||
43 | + * | ||
44 | + * @param orderAuditLogVO 数据VO | ||
45 | + * @return 编辑结果 | ||
46 | + */ | ||
47 | + ServerResult edit(OrderAuditLogVO orderAuditLogVO); | ||
48 | + | ||
49 | + /** | ||
50 | + * 通过主键删除数据 | ||
51 | + * | ||
52 | + * @param orderAuditLogQueryVO 筛选条件 | ||
53 | + * @return 是否成功 | ||
54 | + */ | ||
55 | + ServerResult deleteById(OrderAuditLogQueryVO orderAuditLogQueryVO); | ||
56 | + | ||
57 | +} |
src/main/java/com/order/erp/service/order/OrderBaseInfoService.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.OrderBaseInfoDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderAddVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderBaseInfoQueryVO; | ||
8 | +import com.order.erp.domain.vo.order.OrderBaseInfoVO; | ||
9 | + | ||
10 | +/** | ||
11 | + * 订单基础信息表(OrderBaseInfo)表服务接口 | ||
12 | + * | ||
13 | + * @author makejava | ||
14 | + * @since 2023-09-08 15:26:43 | ||
15 | + */ | ||
16 | +public interface OrderBaseInfoService extends IService<OrderBaseInfoDO> { | ||
17 | + | ||
18 | + /** | ||
19 | + * 通过ID查询单条数据 | ||
20 | + * | ||
21 | + * @param orderBaseInfoQueryVO 主键 | ||
22 | + * @return 实例对象 | ||
23 | + */ | ||
24 | + ServerResult queryById(OrderBaseInfoQueryVO orderBaseInfoQueryVO); | ||
25 | + | ||
26 | + /** | ||
27 | + * 分页查询 | ||
28 | + * | ||
29 | + * @param orderBaseInfoQueryVO 筛选条件 | ||
30 | + * @return 查询结果 | ||
31 | + */ | ||
32 | + ServerResult list(OrderBaseInfoQueryVO orderBaseInfoQueryVO); | ||
33 | + | ||
34 | + | ||
35 | + /** | ||
36 | + * | ||
37 | + * @param orderBaseInfoQueryVO | ||
38 | + * @return | ||
39 | + */ | ||
40 | + ServerResult listByPage(OrderBaseInfoQueryVO orderBaseInfoQueryVO); | ||
41 | + | ||
42 | + /** | ||
43 | + * 新增数据 | ||
44 | + * | ||
45 | + * @param orderAddVO 数据VO | ||
46 | + * @return 新增结果 | ||
47 | + */ | ||
48 | + ServerResult add(OrderAddVO orderAddVO); | ||
49 | + | ||
50 | + /** | ||
51 | + * 修改数据 | ||
52 | + * | ||
53 | + * @param orderBaseInfoVO 数据VO | ||
54 | + * @return 编辑结果 | ||
55 | + */ | ||
56 | + ServerResult edit(OrderBaseInfoVO orderBaseInfoVO); | ||
57 | + | ||
58 | + /** | ||
59 | + * 通过主键删除数据 | ||
60 | + * | ||
61 | + * @param orderBaseInfoQueryVO 筛选条件 | ||
62 | + * @return 是否成功 | ||
63 | + */ | ||
64 | + ServerResult deleteById(OrderBaseInfoQueryVO orderBaseInfoQueryVO); | ||
65 | + | ||
66 | +} |
src/main/java/com/order/erp/service/order/OrderCompletionReportService.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.OrderCompletionReportDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderCompletionReportQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderCompletionReportVO; | ||
8 | + | ||
9 | +/** | ||
10 | + * 订单-项目完成报告书(OrderCompletionReport)表服务接口 | ||
11 | + * | ||
12 | + * @author makejava | ||
13 | + * @since 2023-09-08 15:26:44 | ||
14 | + */ | ||
15 | +public interface OrderCompletionReportService extends IService<OrderCompletionReportDO> { | ||
16 | + | ||
17 | + /** | ||
18 | + * 通过ID查询单条数据 | ||
19 | + * | ||
20 | + * @param orderCompletionReportQueryVO 主键 | ||
21 | + * @return 实例对象 | ||
22 | + */ | ||
23 | + ServerResult queryById(OrderCompletionReportQueryVO orderCompletionReportQueryVO); | ||
24 | + | ||
25 | + /** | ||
26 | + * 分页查询 | ||
27 | + * | ||
28 | + * @param orderCompletionReportQueryVO 筛选条件 | ||
29 | + * @return 查询结果 | ||
30 | + */ | ||
31 | + ServerResult list(OrderCompletionReportQueryVO orderCompletionReportQueryVO); | ||
32 | + | ||
33 | + /** | ||
34 | + * 新增数据 | ||
35 | + * | ||
36 | + * @param orderCompletionReportVO 数据VO | ||
37 | + * @return 新增结果 | ||
38 | + */ | ||
39 | + ServerResult add(OrderCompletionReportVO orderCompletionReportVO); | ||
40 | + | ||
41 | + /** | ||
42 | + * 修改数据 | ||
43 | + * | ||
44 | + * @param orderCompletionReportVO 数据VO | ||
45 | + * @return 编辑结果 | ||
46 | + */ | ||
47 | + ServerResult edit(OrderCompletionReportVO orderCompletionReportVO); | ||
48 | + | ||
49 | + /** | ||
50 | + * 通过主键删除数据 | ||
51 | + * | ||
52 | + * @param orderCompletionReportQueryVO 筛选条件 | ||
53 | + * @return 是否成功 | ||
54 | + */ | ||
55 | + ServerResult deleteById(OrderCompletionReportQueryVO orderCompletionReportQueryVO); | ||
56 | + | ||
57 | +} |
src/main/java/com/order/erp/service/order/OrderFieldLockApplyService.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.OrderFieldLockApplyDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderFieldLockApplyQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderFieldLockApplyVO; | ||
8 | + | ||
9 | +/** | ||
10 | + * 用户订单-字段锁定申请表(OrderFieldLockApply)表服务接口 | ||
11 | + * | ||
12 | + * @author makejava | ||
13 | + * @since 2023-09-08 15:26:45 | ||
14 | + */ | ||
15 | +public interface OrderFieldLockApplyService extends IService<OrderFieldLockApplyDO> { | ||
16 | + | ||
17 | + /** | ||
18 | + * 通过ID查询单条数据 | ||
19 | + * | ||
20 | + * @param orderFieldLockApplyQueryVO 主键 | ||
21 | + * @return 实例对象 | ||
22 | + */ | ||
23 | + ServerResult queryById(OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO); | ||
24 | + | ||
25 | + /** | ||
26 | + * 分页查询 | ||
27 | + * | ||
28 | + * @param orderFieldLockApplyQueryVO 筛选条件 | ||
29 | + * @return 查询结果 | ||
30 | + */ | ||
31 | + ServerResult list(OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO); | ||
32 | + | ||
33 | + /** | ||
34 | + * 新增数据 | ||
35 | + * | ||
36 | + * @param orderFieldLockApplyVO 数据VO | ||
37 | + * @return 新增结果 | ||
38 | + */ | ||
39 | + ServerResult add(OrderFieldLockApplyVO orderFieldLockApplyVO); | ||
40 | + | ||
41 | + /** | ||
42 | + * 修改数据 | ||
43 | + * | ||
44 | + * @param orderFieldLockApplyVO 数据VO | ||
45 | + * @return 编辑结果 | ||
46 | + */ | ||
47 | + ServerResult edit(OrderFieldLockApplyVO orderFieldLockApplyVO); | ||
48 | + | ||
49 | + /** | ||
50 | + * 通过主键删除数据 | ||
51 | + * | ||
52 | + * @param orderFieldLockApplyQueryVO 筛选条件 | ||
53 | + * @return 是否成功 | ||
54 | + */ | ||
55 | + ServerResult deleteById(OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO); | ||
56 | + | ||
57 | +} |
src/main/java/com/order/erp/service/order/OrderFieldLockRecordService.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.OrderFieldLockRecordDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderFieldLockRecordQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderFieldLockRecordVO; | ||
8 | + | ||
9 | +/** | ||
10 | + * 用户订单-字段锁定记录表(OrderFieldLockRecord)表服务接口 | ||
11 | + * | ||
12 | + * @author makejava | ||
13 | + * @since 2023-09-08 15:26:45 | ||
14 | + */ | ||
15 | +public interface OrderFieldLockRecordService extends IService<OrderFieldLockRecordDO> { | ||
16 | + | ||
17 | + /** | ||
18 | + * 通过ID查询单条数据 | ||
19 | + * | ||
20 | + * @param orderFieldLockRecordQueryVO 主键 | ||
21 | + * @return 实例对象 | ||
22 | + */ | ||
23 | + ServerResult queryById(OrderFieldLockRecordQueryVO orderFieldLockRecordQueryVO); | ||
24 | + | ||
25 | + /** | ||
26 | + * 分页查询 | ||
27 | + * | ||
28 | + * @param orderFieldLockRecordQueryVO 筛选条件 | ||
29 | + * @return 查询结果 | ||
30 | + */ | ||
31 | + ServerResult list(OrderFieldLockRecordQueryVO orderFieldLockRecordQueryVO); | ||
32 | + | ||
33 | + /** | ||
34 | + * 新增数据 | ||
35 | + * | ||
36 | + * @param orderFieldLockRecordVO 数据VO | ||
37 | + * @return 新增结果 | ||
38 | + */ | ||
39 | + ServerResult add(OrderFieldLockRecordVO orderFieldLockRecordVO); | ||
40 | + | ||
41 | + /** | ||
42 | + * 修改数据 | ||
43 | + * | ||
44 | + * @param orderFieldLockRecordVO 数据VO | ||
45 | + * @return 编辑结果 | ||
46 | + */ | ||
47 | + ServerResult edit(OrderFieldLockRecordVO orderFieldLockRecordVO); | ||
48 | + | ||
49 | + /** | ||
50 | + * 通过主键删除数据 | ||
51 | + * | ||
52 | + * @param orderFieldLockRecordQueryVO 筛选条件 | ||
53 | + * @return 是否成功 | ||
54 | + */ | ||
55 | + ServerResult deleteById(OrderFieldLockRecordQueryVO orderFieldLockRecordQueryVO); | ||
56 | + | ||
57 | +} |
src/main/java/com/order/erp/service/order/OrderInspectionStageService.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.OrderInspectionStageDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderInspectionStageQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderInspectionStageVO; | ||
8 | + | ||
9 | +/** | ||
10 | + * 订单-质检环节(OrderInspectionStage)表服务接口 | ||
11 | + * | ||
12 | + * @author makejava | ||
13 | + * @since 2023-09-08 15:26:46 | ||
14 | + */ | ||
15 | +public interface OrderInspectionStageService extends IService<OrderInspectionStageDO> { | ||
16 | + | ||
17 | + /** | ||
18 | + * 通过ID查询单条数据 | ||
19 | + * | ||
20 | + * @param orderInspectionStageQueryVO 主键 | ||
21 | + * @return 实例对象 | ||
22 | + */ | ||
23 | + ServerResult queryById(OrderInspectionStageQueryVO orderInspectionStageQueryVO); | ||
24 | + | ||
25 | + /** | ||
26 | + * 分页查询 | ||
27 | + * | ||
28 | + * @param orderInspectionStageQueryVO 筛选条件 | ||
29 | + * @return 查询结果 | ||
30 | + */ | ||
31 | + ServerResult list(OrderInspectionStageQueryVO orderInspectionStageQueryVO); | ||
32 | + | ||
33 | + /** | ||
34 | + * 新增数据 | ||
35 | + * | ||
36 | + * @param orderInspectionStageVO 数据VO | ||
37 | + * @return 新增结果 | ||
38 | + */ | ||
39 | + ServerResult add(OrderInspectionStageVO orderInspectionStageVO); | ||
40 | + | ||
41 | + /** | ||
42 | + * 修改数据 | ||
43 | + * | ||
44 | + * @param orderInspectionStageVO 数据VO | ||
45 | + * @return 编辑结果 | ||
46 | + */ | ||
47 | + ServerResult edit(OrderInspectionStageVO orderInspectionStageVO); | ||
48 | + | ||
49 | + /** | ||
50 | + * 通过主键删除数据 | ||
51 | + * | ||
52 | + * @param orderInspectionStageQueryVO 筛选条件 | ||
53 | + * @return 是否成功 | ||
54 | + */ | ||
55 | + ServerResult deleteById(OrderInspectionStageQueryVO orderInspectionStageQueryVO); | ||
56 | + | ||
57 | +} |
src/main/java/com/order/erp/service/order/OrderOptLogService.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.OrderOptLogDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderOptLogQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderOptLogVO; | ||
8 | + | ||
9 | +/** | ||
10 | + * 用户订单操作日志表(OrderOptLog)表服务接口 | ||
11 | + * | ||
12 | + * @author makejava | ||
13 | + * @since 2023-09-08 15:26:46 | ||
14 | + */ | ||
15 | +public interface OrderOptLogService extends IService<OrderOptLogDO> { | ||
16 | + | ||
17 | + /** | ||
18 | + * 通过ID查询单条数据 | ||
19 | + * | ||
20 | + * @param orderOptLogQueryVO 主键 | ||
21 | + * @return 实例对象 | ||
22 | + */ | ||
23 | + ServerResult queryById(OrderOptLogQueryVO orderOptLogQueryVO); | ||
24 | + | ||
25 | + /** | ||
26 | + * 分页查询 | ||
27 | + * | ||
28 | + * @param orderOptLogQueryVO 筛选条件 | ||
29 | + * @return 查询结果 | ||
30 | + */ | ||
31 | + ServerResult list(OrderOptLogQueryVO orderOptLogQueryVO); | ||
32 | + | ||
33 | + /** | ||
34 | + * 新增数据 | ||
35 | + * | ||
36 | + * @param orderOptLogVO 数据VO | ||
37 | + * @return 新增结果 | ||
38 | + */ | ||
39 | + ServerResult add(OrderOptLogVO orderOptLogVO); | ||
40 | + | ||
41 | + /** | ||
42 | + * 修改数据 | ||
43 | + * | ||
44 | + * @param orderOptLogVO 数据VO | ||
45 | + * @return 编辑结果 | ||
46 | + */ | ||
47 | + ServerResult edit(OrderOptLogVO orderOptLogVO); | ||
48 | + | ||
49 | + /** | ||
50 | + * 通过主键删除数据 | ||
51 | + * | ||
52 | + * @param orderOptLogQueryVO 筛选条件 | ||
53 | + * @return 是否成功 | ||
54 | + */ | ||
55 | + ServerResult deleteById(OrderOptLogQueryVO orderOptLogQueryVO); | ||
56 | + | ||
57 | +} |
src/main/java/com/order/erp/service/order/OrderProfitAnalysisService.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.OrderProfitAnalysisDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderProfitAnalysisQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderProfitAnalysisVO; | ||
8 | + | ||
9 | +/** | ||
10 | + * 订单利润分析表(OrderProfitAnalysis)表服务接口 | ||
11 | + * | ||
12 | + * @author makejava | ||
13 | + * @since 2023-09-08 15:26:47 | ||
14 | + */ | ||
15 | +public interface OrderProfitAnalysisService extends IService<OrderProfitAnalysisDO> { | ||
16 | + | ||
17 | + /** | ||
18 | + * 通过ID查询单条数据 | ||
19 | + * | ||
20 | + * @param orderProfitAnalysisQueryVO 主键 | ||
21 | + * @return 实例对象 | ||
22 | + */ | ||
23 | + ServerResult queryById(OrderProfitAnalysisQueryVO orderProfitAnalysisQueryVO); | ||
24 | + | ||
25 | + /** | ||
26 | + * 分页查询 | ||
27 | + * | ||
28 | + * @param orderProfitAnalysisQueryVO 筛选条件 | ||
29 | + * @return 查询结果 | ||
30 | + */ | ||
31 | + ServerResult list(OrderProfitAnalysisQueryVO orderProfitAnalysisQueryVO); | ||
32 | + | ||
33 | + /** | ||
34 | + * 新增数据 | ||
35 | + * | ||
36 | + * @param orderProfitAnalysisVO 数据VO | ||
37 | + * @return 新增结果 | ||
38 | + */ | ||
39 | + ServerResult add(OrderProfitAnalysisVO orderProfitAnalysisVO); | ||
40 | + | ||
41 | + /** | ||
42 | + * 修改数据 | ||
43 | + * | ||
44 | + * @param orderProfitAnalysisVO 数据VO | ||
45 | + * @return 编辑结果 | ||
46 | + */ | ||
47 | + ServerResult edit(OrderProfitAnalysisVO orderProfitAnalysisVO); | ||
48 | + | ||
49 | + /** | ||
50 | + * 通过主键删除数据 | ||
51 | + * | ||
52 | + * @param orderProfitAnalysisQueryVO 筛选条件 | ||
53 | + * @return 是否成功 | ||
54 | + */ | ||
55 | + ServerResult deleteById(OrderProfitAnalysisQueryVO orderProfitAnalysisQueryVO); | ||
56 | + | ||
57 | +} |
src/main/java/com/order/erp/service/order/OrderTrackStageService.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.OrderTrackStageDO; | ||
6 | +import com.order.erp.domain.vo.order.OrderTrackStageQueryVO; | ||
7 | +import com.order.erp.domain.vo.order.OrderTrackStageVO; | ||
8 | + | ||
9 | +/** | ||
10 | + * 订单-跟单环节(OrderTrackStage)表服务接口 | ||
11 | + * | ||
12 | + * @author makejava | ||
13 | + * @since 2023-09-08 15:26:48 | ||
14 | + */ | ||
15 | +public interface OrderTrackStageService extends IService<OrderTrackStageDO> { | ||
16 | + | ||
17 | + /** | ||
18 | + * 通过ID查询单条数据 | ||
19 | + * | ||
20 | + * @param orderTrackStageQueryVO 主键 | ||
21 | + * @return 实例对象 | ||
22 | + */ | ||
23 | + ServerResult queryById(OrderTrackStageQueryVO orderTrackStageQueryVO); | ||
24 | + | ||
25 | + /** | ||
26 | + * 分页查询 | ||
27 | + * | ||
28 | + * @param orderTrackStageQueryVO 筛选条件 | ||
29 | + * @return 查询结果 | ||
30 | + */ | ||
31 | + ServerResult list(OrderTrackStageQueryVO orderTrackStageQueryVO); | ||
32 | + | ||
33 | + /** | ||
34 | + * 新增数据 | ||
35 | + * | ||
36 | + * @param orderTrackStageVO 数据VO | ||
37 | + * @return 新增结果 | ||
38 | + */ | ||
39 | + ServerResult add(OrderTrackStageVO orderTrackStageVO); | ||
40 | + | ||
41 | + /** | ||
42 | + * 修改数据 | ||
43 | + * | ||
44 | + * @param orderTrackStageVO 数据VO | ||
45 | + * @return 编辑结果 | ||
46 | + */ | ||
47 | + ServerResult edit(OrderTrackStageVO orderTrackStageVO); | ||
48 | + | ||
49 | + /** | ||
50 | + * 通过主键删除数据 | ||
51 | + * | ||
52 | + * @param orderTrackStageQueryVO 筛选条件 | ||
53 | + * @return 是否成功 | ||
54 | + */ | ||
55 | + ServerResult deleteById(OrderTrackStageQueryVO orderTrackStageQueryVO); | ||
56 | + | ||
57 | +} |
src/main/java/com/order/erp/service/order/impl/OrderAuditLogServiceImpl.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.update.LambdaUpdateWrapper; | ||
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
7 | +import com.order.erp.common.constant.Constant; | ||
8 | +import com.order.erp.common.constant.ServerResult; | ||
9 | +import com.order.erp.domain.dto.order.OrderAuditLogDO; | ||
10 | +import com.order.erp.domain.vo.order.OrderAuditLogQueryVO; | ||
11 | +import com.order.erp.domain.vo.order.OrderAuditLogVO; | ||
12 | +import com.order.erp.mapper.order.OrderAuditLogMapper; | ||
13 | +import com.order.erp.service.order.OrderAuditLogService; | ||
14 | +import lombok.extern.slf4j.Slf4j; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.util.List; | ||
18 | +import java.util.Objects; | ||
19 | + | ||
20 | +/** | ||
21 | + * 用户订单审批日志表(OrderAuditLog)表服务实现类 | ||
22 | + * | ||
23 | + * @author makejava | ||
24 | + * @since 2023-09-08 15:26:42 | ||
25 | + */ | ||
26 | +@Slf4j | ||
27 | +@Service | ||
28 | +public class OrderAuditLogServiceImpl extends ServiceImpl<OrderAuditLogMapper, OrderAuditLogDO> implements OrderAuditLogService { | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * 通过ID查询单条数据 | ||
33 | + * <p> | ||
34 | + * orderAuditLogQueryVO 主键 | ||
35 | + * | ||
36 | + * @return 实例对象 | ||
37 | + */ | ||
38 | + @Override | ||
39 | + public ServerResult queryById(OrderAuditLogQueryVO orderAuditLogQueryVO) { | ||
40 | + if (Objects.isNull(orderAuditLogQueryVO.getId())) { | ||
41 | + return ServerResult.fail("id 不能为空"); | ||
42 | + } | ||
43 | + OrderAuditLogDO OrderAuditLogDo = getById(orderAuditLogQueryVO.getId()); | ||
44 | + if (Objects.isNull(OrderAuditLogDo)) { | ||
45 | + return ServerResult.success(null); | ||
46 | + } | ||
47 | + return ServerResult.success(BeanUtil.copyProperties(OrderAuditLogDo, OrderAuditLogVO.class)); | ||
48 | + } | ||
49 | + | ||
50 | + /** | ||
51 | + * 分页查询 | ||
52 | + * | ||
53 | + * @param orderAuditLogQueryVO 筛选条件 | ||
54 | + * @return 查询结果 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public ServerResult list(OrderAuditLogQueryVO orderAuditLogQueryVO) { | ||
58 | + | ||
59 | + return ServerResult.success(); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * 新增数据 | ||
64 | + * | ||
65 | + * @param orderAuditLogVO 实例对象 | ||
66 | + * @return 实例对象 | ||
67 | + */ | ||
68 | + @Override | ||
69 | + public ServerResult add(OrderAuditLogVO orderAuditLogVO) { | ||
70 | + //todo 校验 | ||
71 | + if (Objects.nonNull(orderAuditLogVO.getId())) { | ||
72 | + orderAuditLogVO.setId(null); | ||
73 | + } | ||
74 | + OrderAuditLogDO orderAuditLogDo = BeanUtil.copyProperties(orderAuditLogVO, OrderAuditLogDO.class); | ||
75 | + | ||
76 | + save(orderAuditLogDo); | ||
77 | + | ||
78 | + return ServerResult.success(); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 修改数据 | ||
83 | + * | ||
84 | + * @param orderAuditLogVO 实例对象 | ||
85 | + * @return 实例对象 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public ServerResult edit(OrderAuditLogVO orderAuditLogVO) { | ||
89 | + //todo 校验 | ||
90 | + if (Objects.isNull(orderAuditLogVO.getId())) { | ||
91 | + return ServerResult.fail("id 不能为空"); | ||
92 | + } | ||
93 | + OrderAuditLogDO orderAuditLogDo = BeanUtil.copyProperties(orderAuditLogVO, OrderAuditLogDO.class); | ||
94 | + | ||
95 | + updateById(orderAuditLogDo); | ||
96 | + | ||
97 | + return ServerResult.success(); | ||
98 | + } | ||
99 | + | ||
100 | + /** | ||
101 | + * 通过主键删除数据 | ||
102 | + * | ||
103 | + * @param orderAuditLogQueryVO 筛选条件 | ||
104 | + * @return 是否成功 | ||
105 | + */ | ||
106 | + @Override | ||
107 | + public ServerResult deleteById(OrderAuditLogQueryVO orderAuditLogQueryVO) { | ||
108 | + List<Long> ids = orderAuditLogQueryVO.getIds(); | ||
109 | + if (CollUtil.isEmpty(ids)) { | ||
110 | + return ServerResult.fail("ids 参数不能为空"); | ||
111 | + } | ||
112 | + List<OrderAuditLogDO> orderAuditLogList = listByIds(ids); | ||
113 | + if (CollUtil.isEmpty(orderAuditLogList)) { | ||
114 | + return ServerResult.success(); | ||
115 | + } | ||
116 | + //todo 校验是否可以逻辑删除 | ||
117 | + LambdaUpdateWrapper<OrderAuditLogDO> updateWrapper = new LambdaUpdateWrapper<OrderAuditLogDO>() | ||
118 | + .in(OrderAuditLogDO::getId, ids) | ||
119 | + .set(OrderAuditLogDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
120 | + update(updateWrapper); | ||
121 | + return ServerResult.success(); | ||
122 | + } | ||
123 | +} |
src/main/java/com/order/erp/service/order/impl/OrderBaseInfoServiceImpl.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.core.toolkit.CollectionUtils; | ||
9 | +import com.baomidou.mybatisplus.core.toolkit.StringUtils; | ||
10 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
11 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
12 | +import com.canrd.shop.common.constant.ServerResultCode; | ||
13 | +import com.order.erp.common.constant.Constant; | ||
14 | +import com.order.erp.common.constant.ServerResult; | ||
15 | +import com.order.erp.common.exception.BusinessException; | ||
16 | +import com.order.erp.domain.dto.BaseDO; | ||
17 | +import com.order.erp.domain.dto.order.*; | ||
18 | +import com.order.erp.domain.vo.order.*; | ||
19 | +import com.order.erp.mapper.order.OrderBaseInfoMapper; | ||
20 | +import com.order.erp.service.order.*; | ||
21 | +import lombok.extern.slf4j.Slf4j; | ||
22 | +import org.springframework.beans.BeanUtils; | ||
23 | +import org.springframework.stereotype.Service; | ||
24 | + | ||
25 | +import javax.annotation.Resource; | ||
26 | +import java.util.List; | ||
27 | +import java.util.Map; | ||
28 | +import java.util.Objects; | ||
29 | +import java.util.Set; | ||
30 | +import java.util.function.Function; | ||
31 | +import java.util.stream.Collectors; | ||
32 | + | ||
33 | +/** | ||
34 | + * 订单基础信息表(OrderBaseInfo)表服务实现类 | ||
35 | + * | ||
36 | + * @author makejava | ||
37 | + * @since 2023-09-08 15:26:43 | ||
38 | + */ | ||
39 | +@Slf4j | ||
40 | +@Service | ||
41 | +public class OrderBaseInfoServiceImpl extends ServiceImpl<OrderBaseInfoMapper, OrderBaseInfoDO> implements OrderBaseInfoService { | ||
42 | + | ||
43 | + | ||
44 | + @Resource | ||
45 | + private OrderProfitAnalysisService profitAnalysisService; | ||
46 | + | ||
47 | + @Resource | ||
48 | + private OrderCompletionReportService reportService; | ||
49 | + | ||
50 | + @Resource | ||
51 | + private OrderTrackStageService trackStageService; | ||
52 | + | ||
53 | + @Resource | ||
54 | + private OrderInspectionStageService inspectionStageService; | ||
55 | + | ||
56 | + /** | ||
57 | + * 通过ID查询单条数据 | ||
58 | + * <p> | ||
59 | + * orderBaseInfoQueryVO 主键 | ||
60 | + * | ||
61 | + * @return 实例对象 | ||
62 | + */ | ||
63 | + @Override | ||
64 | + public ServerResult queryById(OrderBaseInfoQueryVO orderBaseInfoQueryVO) { | ||
65 | + if (Objects.isNull(orderBaseInfoQueryVO.getId())) { | ||
66 | + return ServerResult.fail("id 不能为空"); | ||
67 | + } | ||
68 | + OrderBaseInfoDO OrderBaseInfoDo = getById(orderBaseInfoQueryVO.getId()); | ||
69 | + if (Objects.isNull(OrderBaseInfoDo)) { | ||
70 | + return ServerResult.success(null); | ||
71 | + } | ||
72 | + return ServerResult.success(BeanUtil.copyProperties(OrderBaseInfoDo, OrderBaseInfoVO.class)); | ||
73 | + } | ||
74 | + | ||
75 | + /** | ||
76 | + * 分页查询 | ||
77 | + * | ||
78 | + * @param orderBaseInfoQueryVO 筛选条件 | ||
79 | + * @return 查询结果 | ||
80 | + */ | ||
81 | + @Override | ||
82 | + public ServerResult list(OrderBaseInfoQueryVO orderBaseInfoQueryVO) { | ||
83 | + | ||
84 | + return ServerResult.success(); | ||
85 | + } | ||
86 | + | ||
87 | + @Override | ||
88 | + public ServerResult listByPage(OrderBaseInfoQueryVO queryVO) { | ||
89 | + LambdaQueryWrapper<OrderBaseInfoDO> queryWrapper = buildQueryByParam(queryVO); | ||
90 | + Page page = new Page<>(queryVO.getPageNo(), queryVO.getPageSize()); | ||
91 | + IPage<OrderBaseInfoDO> iPage = page(page, queryWrapper); | ||
92 | + | ||
93 | + Page<OrderInfoResultVO> webVOPage = new Page<>(); | ||
94 | + List<OrderBaseInfoDO> orderBaseInfoDOList = iPage.getRecords(); | ||
95 | + if (CollectionUtils.isNotEmpty(orderBaseInfoDOList)) { | ||
96 | + List<OrderInfoResultVO> resultVOList = orderBaseInfoDOList.stream().map(x -> { | ||
97 | + OrderInfoResultVO resultVO = new OrderInfoResultVO(); | ||
98 | + BeanUtils.copyProperties(x, resultVO); | ||
99 | + return resultVO; | ||
100 | + }).collect(Collectors.toList()); | ||
101 | + | ||
102 | + // 填充利润分析 | ||
103 | + fillProfitAnalysisInfo(resultVOList); | ||
104 | + | ||
105 | + // 填充项目报告 | ||
106 | + fillReportInfo(resultVOList); | ||
107 | + | ||
108 | + // 填充跟单信息 | ||
109 | + fillTrackStageInfo(resultVOList); | ||
110 | + | ||
111 | + // 填充质检信息 | ||
112 | + fillInspectionStageInfo(resultVOList); | ||
113 | + | ||
114 | + webVOPage.setRecords(resultVOList); | ||
115 | + } | ||
116 | + BeanUtils.copyProperties(page, webVOPage, "records"); | ||
117 | + return ServerResult.success(webVOPage); | ||
118 | + } | ||
119 | + | ||
120 | + /** | ||
121 | + * @param orderInfoResultVOList | ||
122 | + */ | ||
123 | + private void fillProfitAnalysisInfo(List<OrderInfoResultVO> orderInfoResultVOList) { | ||
124 | + if (CollectionUtils.isEmpty(orderInfoResultVOList)) { | ||
125 | + return; | ||
126 | + } | ||
127 | + | ||
128 | + Set<Long> orderIds = orderInfoResultVOList.stream().map(OrderInfoResultVO::getId).collect(Collectors.toSet()); | ||
129 | + List<OrderProfitAnalysisDO> orderProfitAnalysisDOS = profitAnalysisService.list(new LambdaQueryWrapper<OrderProfitAnalysisDO>() | ||
130 | + .eq(BaseDO::getEnableFlag, Constant.ENABLE_TEN) | ||
131 | + .in(OrderProfitAnalysisDO::getOrderId, orderIds)); | ||
132 | + if (CollectionUtils.isEmpty(orderProfitAnalysisDOS)) { | ||
133 | + return; | ||
134 | + } | ||
135 | + Map<Long, OrderProfitAnalysisDO> profitAnalysisDOMap = orderProfitAnalysisDOS.stream().collect(Collectors.toMap(OrderProfitAnalysisDO::getOrderId, Function.identity())); | ||
136 | + orderInfoResultVOList.forEach(result -> { | ||
137 | + if (profitAnalysisDOMap.containsKey(result.getId())) { | ||
138 | + OrderProfitAnalysisDO profitAnalysisDO = profitAnalysisDOMap.get(result.getId()); | ||
139 | + OrderProfitAnalysisVO profitAnalysisVO = new OrderProfitAnalysisVO(); | ||
140 | + BeanUtils.copyProperties(profitAnalysisDO, profitAnalysisVO); | ||
141 | + result.setProfitAnalysisInfo(profitAnalysisVO); | ||
142 | + } | ||
143 | + }); | ||
144 | + } | ||
145 | + | ||
146 | + /** | ||
147 | + * @param orderInfoResultVOList | ||
148 | + */ | ||
149 | + private void fillReportInfo(List<OrderInfoResultVO> orderInfoResultVOList) { | ||
150 | + if (CollectionUtils.isEmpty(orderInfoResultVOList)) { | ||
151 | + return; | ||
152 | + } | ||
153 | + | ||
154 | + Set<Long> orderIds = orderInfoResultVOList.stream().map(OrderInfoResultVO::getId).collect(Collectors.toSet()); | ||
155 | + List<OrderCompletionReportDO> orderCompletionReportDOS = reportService.list(new LambdaQueryWrapper<OrderCompletionReportDO>() | ||
156 | + .eq(BaseDO::getEnableFlag, Constant.ENABLE_TEN) | ||
157 | + .in(OrderCompletionReportDO::getOrderId, orderIds)); | ||
158 | + if (CollectionUtils.isEmpty(orderCompletionReportDOS)) { | ||
159 | + return; | ||
160 | + } | ||
161 | + Map<Long, OrderCompletionReportDO> completionReportDOMap = orderCompletionReportDOS.stream().collect(Collectors.toMap(OrderCompletionReportDO::getOrderId, Function.identity())); | ||
162 | + orderInfoResultVOList.forEach(result -> { | ||
163 | + if (completionReportDOMap.containsKey(result.getId())) { | ||
164 | + OrderCompletionReportDO completionReportDO = completionReportDOMap.get(result.getId()); | ||
165 | + OrderCompletionReportVO completionReportVO = new OrderCompletionReportVO(); | ||
166 | + BeanUtils.copyProperties(completionReportDO, completionReportVO); | ||
167 | + result.setReportInfo(completionReportVO); | ||
168 | + } | ||
169 | + }); | ||
170 | + } | ||
171 | + | ||
172 | + /** | ||
173 | + * @param orderInfoResultVOList | ||
174 | + */ | ||
175 | + private void fillTrackStageInfo(List<OrderInfoResultVO> orderInfoResultVOList) { | ||
176 | + if (CollectionUtils.isEmpty(orderInfoResultVOList)) { | ||
177 | + return; | ||
178 | + } | ||
179 | + | ||
180 | + Set<Long> orderIds = orderInfoResultVOList.stream().map(OrderInfoResultVO::getId).collect(Collectors.toSet()); | ||
181 | + List<OrderTrackStageDO> trackStageDOS = trackStageService.list(new LambdaQueryWrapper<OrderTrackStageDO>() | ||
182 | + .eq(BaseDO::getEnableFlag, Constant.ENABLE_TEN) | ||
183 | + .in(OrderTrackStageDO::getOrderId, orderIds)); | ||
184 | + if (CollectionUtils.isEmpty(trackStageDOS)) { | ||
185 | + return; | ||
186 | + } | ||
187 | + Map<Long, OrderTrackStageDO> trackStageDOMap = trackStageDOS.stream().collect(Collectors.toMap(OrderTrackStageDO::getOrderId, Function.identity())); | ||
188 | + orderInfoResultVOList.forEach(result -> { | ||
189 | + if (trackStageDOMap.containsKey(result.getId())) { | ||
190 | + OrderTrackStageDO trackStageDO = trackStageDOMap.get(result.getId()); | ||
191 | + OrderTrackStageVO trackStageVO = new OrderTrackStageVO(); | ||
192 | + BeanUtils.copyProperties(trackStageDO, trackStageVO); | ||
193 | + result.setTrackStageInfo(trackStageVO); | ||
194 | + } | ||
195 | + }); | ||
196 | + } | ||
197 | + | ||
198 | + /** | ||
199 | + * @param orderInfoResultVOList | ||
200 | + */ | ||
201 | + private void fillInspectionStageInfo(List<OrderInfoResultVO> orderInfoResultVOList) { | ||
202 | + if (CollectionUtils.isEmpty(orderInfoResultVOList)) { | ||
203 | + return; | ||
204 | + } | ||
205 | + | ||
206 | + Set<Long> orderIds = orderInfoResultVOList.stream().map(OrderInfoResultVO::getId).collect(Collectors.toSet()); | ||
207 | + List<OrderInspectionStageDO> inspectionStageDOS = inspectionStageService.list(new LambdaQueryWrapper<OrderInspectionStageDO>() | ||
208 | + .eq(BaseDO::getEnableFlag, Constant.ENABLE_TEN) | ||
209 | + .in(OrderInspectionStageDO::getOrderId, orderIds)); | ||
210 | + if (CollectionUtils.isEmpty(inspectionStageDOS)) { | ||
211 | + return; | ||
212 | + } | ||
213 | + Map<Long, OrderInspectionStageDO> inspectionStageDOMap = inspectionStageDOS.stream().collect(Collectors.toMap(OrderInspectionStageDO::getOrderId, Function.identity())); | ||
214 | + orderInfoResultVOList.forEach(result -> { | ||
215 | + if (inspectionStageDOMap.containsKey(result.getId())) { | ||
216 | + OrderInspectionStageDO inspectionStageDO = inspectionStageDOMap.get(result.getId()); | ||
217 | + OrderInspectionStageVO inspectionStageVO = new OrderInspectionStageVO(); | ||
218 | + BeanUtils.copyProperties(inspectionStageDO, inspectionStageVO); | ||
219 | + result.setInspectionStageInfo(inspectionStageVO); | ||
220 | + } | ||
221 | + }); | ||
222 | + } | ||
223 | + | ||
224 | + /** | ||
225 | + * @param queryVO | ||
226 | + * @return | ||
227 | + */ | ||
228 | + private LambdaQueryWrapper<OrderBaseInfoDO> buildQueryByParam(OrderBaseInfoQueryVO queryVO) { | ||
229 | + return new LambdaQueryWrapper<OrderBaseInfoDO>() | ||
230 | + .eq(BaseDO::getEnableFlag, Constant.ENABLE_TEN) | ||
231 | + .eq(StringUtils.isNotBlank(queryVO.getCustomerCode()), OrderBaseInfoDO::getCustomerCode, queryVO.getCustomerCode()) | ||
232 | + .eq(StringUtils.isNotBlank(queryVO.getProjectNo()), OrderBaseInfoDO::getProjectNo, queryVO.getProjectNo()) | ||
233 | + .eq(StringUtils.isNotBlank(queryVO.getProductionDepartment()), OrderBaseInfoDO::getProductionDepartment, queryVO.getProductionDepartment()) | ||
234 | + .eq(StringUtils.isNotBlank(queryVO.getInnerNo()), OrderBaseInfoDO::getInnerNo, queryVO.getInnerNo()) | ||
235 | + .eq(StringUtils.isNotBlank(queryVO.getCustomerPo()), OrderBaseInfoDO::getCustomerPo, queryVO.getCustomerPo()) | ||
236 | + .eq(StringUtils.isNotBlank(queryVO.getCustomerStyle()), OrderBaseInfoDO::getCustomerStyle, queryVO.getCustomerStyle()) | ||
237 | + .eq(StringUtils.isNotBlank(queryVO.getModeleLo()), OrderBaseInfoDO::getModeleLo, queryVO.getModeleLo()) | ||
238 | + .eq(StringUtils.isNotBlank(queryVO.getCollection()), OrderBaseInfoDO::getCollection, queryVO.getCollection()) | ||
239 | + .eq(StringUtils.isNotBlank(queryVO.getPoColor()), OrderBaseInfoDO::getPoColor, queryVO.getPoColor()) | ||
240 | + .eq(StringUtils.isNotBlank(queryVO.getCnColor()), OrderBaseInfoDO::getCnColor, queryVO.getCnColor()) | ||
241 | + .eq(StringUtils.isNotBlank(queryVO.getProductStyle()), OrderBaseInfoDO::getProductStyle, queryVO.getProductStyle()) | ||
242 | + .eq(StringUtils.isNotBlank(queryVO.getOutboundType()), OrderBaseInfoDO::getOutboundType, queryVO.getOutboundType()) | ||
243 | + .eq(StringUtils.isNotBlank(queryVO.getPacketType()), OrderBaseInfoDO::getPacketType, queryVO.getPacketType()) | ||
244 | + ; | ||
245 | + } | ||
246 | + | ||
247 | + /** | ||
248 | + * 新增数据 | ||
249 | + * | ||
250 | + * @param orderAddVO 实例对象 | ||
251 | + * @return 实例对象 | ||
252 | + */ | ||
253 | + @Override | ||
254 | + public ServerResult add(OrderAddVO orderAddVO) { | ||
255 | + OrderBaseInfoVO baseInfoVO = orderAddVO.getBaseInfo(); | ||
256 | + if (Objects.isNull(baseInfoVO)) { | ||
257 | + throw new BusinessException(ServerResultCode.ORDER_BASE_INFO_EMPTY); | ||
258 | + } | ||
259 | + OrderBaseInfoDO baseInfoDO = new OrderBaseInfoDO(); | ||
260 | + BeanUtils.copyProperties(baseInfoVO, baseInfoDO); | ||
261 | + save(baseInfoDO); | ||
262 | + | ||
263 | + OrderProfitAnalysisVO profitAnalysisVO = orderAddVO.getProfitAnalysisInfo(); | ||
264 | + if (Objects.nonNull(profitAnalysisVO)) { | ||
265 | + OrderProfitAnalysisDO profitAnalysisDO = new OrderProfitAnalysisDO(); | ||
266 | + BeanUtils.copyProperties(profitAnalysisVO, profitAnalysisDO); | ||
267 | + profitAnalysisDO.setOrderId(baseInfoDO.getId()); | ||
268 | + profitAnalysisService.save(profitAnalysisDO); | ||
269 | + } | ||
270 | + | ||
271 | + OrderCompletionReportVO reportVO = orderAddVO.getReportInfo(); | ||
272 | + if (Objects.nonNull(reportVO)) { | ||
273 | + OrderCompletionReportDO reportDO = new OrderCompletionReportDO(); | ||
274 | + BeanUtils.copyProperties(reportVO, reportDO); | ||
275 | + reportDO.setOrderId(baseInfoDO.getId()); | ||
276 | + reportService.save(reportDO); | ||
277 | + } | ||
278 | + | ||
279 | + OrderTrackStageVO trackStageVO = orderAddVO.getTrackStageInfo(); | ||
280 | + if (Objects.nonNull(trackStageVO)) { | ||
281 | + OrderTrackStageDO trackStageDO = new OrderTrackStageDO(); | ||
282 | + BeanUtils.copyProperties(trackStageVO, trackStageDO); | ||
283 | + trackStageDO.setOrderId(baseInfoDO.getId()); | ||
284 | + trackStageService.save(trackStageDO); | ||
285 | + } | ||
286 | + | ||
287 | + OrderInspectionStageVO inspectionStageVO = orderAddVO.getInspectionStageInfo(); | ||
288 | + if (Objects.nonNull(inspectionStageVO)) { | ||
289 | + OrderInspectionStageDO inspectionStageDO = new OrderInspectionStageDO(); | ||
290 | + BeanUtils.copyProperties(inspectionStageVO, inspectionStageDO); | ||
291 | + inspectionStageDO.setOrderId(baseInfoDO.getId()); | ||
292 | + inspectionStageService.save(inspectionStageDO); | ||
293 | + } | ||
294 | + | ||
295 | + return ServerResult.success(); | ||
296 | + } | ||
297 | + | ||
298 | + /** | ||
299 | + * 修改数据 | ||
300 | + * | ||
301 | + * @param orderBaseInfoVO 实例对象 | ||
302 | + * @return 实例对象 | ||
303 | + */ | ||
304 | + @Override | ||
305 | + public ServerResult edit(OrderBaseInfoVO orderBaseInfoVO) { | ||
306 | + //todo 校验 | ||
307 | + if (Objects.isNull(orderBaseInfoVO.getId())) { | ||
308 | + return ServerResult.fail("id 不能为空"); | ||
309 | + } | ||
310 | + OrderBaseInfoDO orderBaseInfoDo = BeanUtil.copyProperties(orderBaseInfoVO, OrderBaseInfoDO.class); | ||
311 | + | ||
312 | + updateById(orderBaseInfoDo); | ||
313 | + | ||
314 | + return ServerResult.success(); | ||
315 | + } | ||
316 | + | ||
317 | + /** | ||
318 | + * 通过主键删除数据 | ||
319 | + * | ||
320 | + * @param orderBaseInfoQueryVO 筛选条件 | ||
321 | + * @return 是否成功 | ||
322 | + */ | ||
323 | + @Override | ||
324 | + public ServerResult deleteById(OrderBaseInfoQueryVO orderBaseInfoQueryVO) { | ||
325 | + List<Long> ids = orderBaseInfoQueryVO.getIds(); | ||
326 | + if (CollUtil.isEmpty(ids)) { | ||
327 | + return ServerResult.fail("ids 参数不能为空"); | ||
328 | + } | ||
329 | + List<OrderBaseInfoDO> orderBaseInfoList = listByIds(ids); | ||
330 | + if (CollUtil.isEmpty(orderBaseInfoList)) { | ||
331 | + return ServerResult.success(); | ||
332 | + } | ||
333 | + //todo 校验是否可以逻辑删除 | ||
334 | + LambdaUpdateWrapper<OrderBaseInfoDO> updateWrapper = new LambdaUpdateWrapper<OrderBaseInfoDO>() | ||
335 | + .in(OrderBaseInfoDO::getId, ids) | ||
336 | + .set(OrderBaseInfoDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
337 | + update(updateWrapper); | ||
338 | + return ServerResult.success(); | ||
339 | + } | ||
340 | +} |
src/main/java/com/order/erp/service/order/impl/OrderCompletionReportServiceImpl.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.update.LambdaUpdateWrapper; | ||
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
7 | +import com.order.erp.common.constant.Constant; | ||
8 | +import com.order.erp.common.constant.ServerResult; | ||
9 | +import com.order.erp.domain.dto.order.OrderCompletionReportDO; | ||
10 | +import com.order.erp.domain.vo.order.OrderCompletionReportQueryVO; | ||
11 | +import com.order.erp.domain.vo.order.OrderCompletionReportVO; | ||
12 | +import com.order.erp.mapper.order.OrderCompletionReportMapper; | ||
13 | +import com.order.erp.service.order.OrderCompletionReportService; | ||
14 | +import lombok.extern.slf4j.Slf4j; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.util.List; | ||
18 | +import java.util.Objects; | ||
19 | + | ||
20 | +/** | ||
21 | + * 订单-项目完成报告书(OrderCompletionReport)表服务实现类 | ||
22 | + * | ||
23 | + * @author makejava | ||
24 | + * @since 2023-09-08 15:26:44 | ||
25 | + */ | ||
26 | +@Slf4j | ||
27 | +@Service | ||
28 | +public class OrderCompletionReportServiceImpl extends ServiceImpl<OrderCompletionReportMapper, OrderCompletionReportDO> implements OrderCompletionReportService { | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * 通过ID查询单条数据 | ||
33 | + * <p> | ||
34 | + * orderCompletionReportQueryVO 主键 | ||
35 | + * | ||
36 | + * @return 实例对象 | ||
37 | + */ | ||
38 | + @Override | ||
39 | + public ServerResult queryById(OrderCompletionReportQueryVO orderCompletionReportQueryVO) { | ||
40 | + if (Objects.isNull(orderCompletionReportQueryVO.getId())) { | ||
41 | + return ServerResult.fail("id 不能为空"); | ||
42 | + } | ||
43 | + OrderCompletionReportDO OrderCompletionReportDo = getById(orderCompletionReportQueryVO.getId()); | ||
44 | + if (Objects.isNull(OrderCompletionReportDo)) { | ||
45 | + return ServerResult.success(null); | ||
46 | + } | ||
47 | + return ServerResult.success(BeanUtil.copyProperties(OrderCompletionReportDo, OrderCompletionReportVO.class)); | ||
48 | + } | ||
49 | + | ||
50 | + /** | ||
51 | + * 分页查询 | ||
52 | + * | ||
53 | + * @param orderCompletionReportQueryVO 筛选条件 | ||
54 | + * @return 查询结果 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public ServerResult list(OrderCompletionReportQueryVO orderCompletionReportQueryVO) { | ||
58 | + | ||
59 | + return ServerResult.success(); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * 新增数据 | ||
64 | + * | ||
65 | + * @param orderCompletionReportVO 实例对象 | ||
66 | + * @return 实例对象 | ||
67 | + */ | ||
68 | + @Override | ||
69 | + public ServerResult add(OrderCompletionReportVO orderCompletionReportVO) { | ||
70 | + //todo 校验 | ||
71 | + if (Objects.nonNull(orderCompletionReportVO.getId())) { | ||
72 | + orderCompletionReportVO.setId(null); | ||
73 | + } | ||
74 | + OrderCompletionReportDO orderCompletionReportDo = BeanUtil.copyProperties(orderCompletionReportVO, OrderCompletionReportDO.class); | ||
75 | + | ||
76 | + save(orderCompletionReportDo); | ||
77 | + | ||
78 | + return ServerResult.success(); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 修改数据 | ||
83 | + * | ||
84 | + * @param orderCompletionReportVO 实例对象 | ||
85 | + * @return 实例对象 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public ServerResult edit(OrderCompletionReportVO orderCompletionReportVO) { | ||
89 | + //todo 校验 | ||
90 | + if (Objects.isNull(orderCompletionReportVO.getId())) { | ||
91 | + return ServerResult.fail("id 不能为空"); | ||
92 | + } | ||
93 | + OrderCompletionReportDO orderCompletionReportDo = BeanUtil.copyProperties(orderCompletionReportVO, OrderCompletionReportDO.class); | ||
94 | + | ||
95 | + updateById(orderCompletionReportDo); | ||
96 | + | ||
97 | + return ServerResult.success(); | ||
98 | + } | ||
99 | + | ||
100 | + /** | ||
101 | + * 通过主键删除数据 | ||
102 | + * | ||
103 | + * @param orderCompletionReportQueryVO 筛选条件 | ||
104 | + * @return 是否成功 | ||
105 | + */ | ||
106 | + @Override | ||
107 | + public ServerResult deleteById(OrderCompletionReportQueryVO orderCompletionReportQueryVO) { | ||
108 | + List<Long> ids = orderCompletionReportQueryVO.getIds(); | ||
109 | + if (CollUtil.isEmpty(ids)) { | ||
110 | + return ServerResult.fail("ids 参数不能为空"); | ||
111 | + } | ||
112 | + List<OrderCompletionReportDO> orderCompletionReportList = listByIds(ids); | ||
113 | + if (CollUtil.isEmpty(orderCompletionReportList)) { | ||
114 | + return ServerResult.success(); | ||
115 | + } | ||
116 | + //todo 校验是否可以逻辑删除 | ||
117 | + LambdaUpdateWrapper<OrderCompletionReportDO> updateWrapper = new LambdaUpdateWrapper<OrderCompletionReportDO>() | ||
118 | + .in(OrderCompletionReportDO::getId, ids) | ||
119 | + .set(OrderCompletionReportDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
120 | + update(updateWrapper); | ||
121 | + return ServerResult.success(); | ||
122 | + } | ||
123 | +} |
src/main/java/com/order/erp/service/order/impl/OrderFieldLockApplyServiceImpl.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.update.LambdaUpdateWrapper; | ||
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
7 | +import com.order.erp.common.constant.Constant; | ||
8 | +import com.order.erp.common.constant.ServerResult; | ||
9 | +import com.order.erp.domain.dto.order.OrderFieldLockApplyDO; | ||
10 | +import com.order.erp.domain.vo.order.OrderFieldLockApplyQueryVO; | ||
11 | +import com.order.erp.domain.vo.order.OrderFieldLockApplyVO; | ||
12 | +import com.order.erp.mapper.order.OrderFieldLockApplyMapper; | ||
13 | +import com.order.erp.service.order.OrderFieldLockApplyService; | ||
14 | +import lombok.extern.slf4j.Slf4j; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.util.List; | ||
18 | +import java.util.Objects; | ||
19 | + | ||
20 | +/** | ||
21 | + * 用户订单-字段锁定申请表(OrderFieldLockApply)表服务实现类 | ||
22 | + * | ||
23 | + * @author makejava | ||
24 | + * @since 2023-09-08 15:26:45 | ||
25 | + */ | ||
26 | +@Slf4j | ||
27 | +@Service | ||
28 | +public class OrderFieldLockApplyServiceImpl extends ServiceImpl<OrderFieldLockApplyMapper, OrderFieldLockApplyDO> implements OrderFieldLockApplyService { | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * 通过ID查询单条数据 | ||
33 | + * <p> | ||
34 | + * orderFieldLockApplyQueryVO 主键 | ||
35 | + * | ||
36 | + * @return 实例对象 | ||
37 | + */ | ||
38 | + @Override | ||
39 | + public ServerResult queryById(OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) { | ||
40 | + if (Objects.isNull(orderFieldLockApplyQueryVO.getId())) { | ||
41 | + return ServerResult.fail("id 不能为空"); | ||
42 | + } | ||
43 | + OrderFieldLockApplyDO OrderFieldLockApplyDo = getById(orderFieldLockApplyQueryVO.getId()); | ||
44 | + if (Objects.isNull(OrderFieldLockApplyDo)) { | ||
45 | + return ServerResult.success(null); | ||
46 | + } | ||
47 | + return ServerResult.success(BeanUtil.copyProperties(OrderFieldLockApplyDo, OrderFieldLockApplyVO.class)); | ||
48 | + } | ||
49 | + | ||
50 | + /** | ||
51 | + * 分页查询 | ||
52 | + * | ||
53 | + * @param orderFieldLockApplyQueryVO 筛选条件 | ||
54 | + * @return 查询结果 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public ServerResult list(OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) { | ||
58 | + | ||
59 | + return ServerResult.success(); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * 新增数据 | ||
64 | + * | ||
65 | + * @param orderFieldLockApplyVO 实例对象 | ||
66 | + * @return 实例对象 | ||
67 | + */ | ||
68 | + @Override | ||
69 | + public ServerResult add(OrderFieldLockApplyVO orderFieldLockApplyVO) { | ||
70 | + //todo 校验 | ||
71 | + if (Objects.nonNull(orderFieldLockApplyVO.getId())) { | ||
72 | + orderFieldLockApplyVO.setId(null); | ||
73 | + } | ||
74 | + OrderFieldLockApplyDO orderFieldLockApplyDo = BeanUtil.copyProperties(orderFieldLockApplyVO, OrderFieldLockApplyDO.class); | ||
75 | + | ||
76 | + save(orderFieldLockApplyDo); | ||
77 | + | ||
78 | + return ServerResult.success(); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 修改数据 | ||
83 | + * | ||
84 | + * @param orderFieldLockApplyVO 实例对象 | ||
85 | + * @return 实例对象 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public ServerResult edit(OrderFieldLockApplyVO orderFieldLockApplyVO) { | ||
89 | + //todo 校验 | ||
90 | + if (Objects.isNull(orderFieldLockApplyVO.getId())) { | ||
91 | + return ServerResult.fail("id 不能为空"); | ||
92 | + } | ||
93 | + OrderFieldLockApplyDO orderFieldLockApplyDo = BeanUtil.copyProperties(orderFieldLockApplyVO, OrderFieldLockApplyDO.class); | ||
94 | + | ||
95 | + updateById(orderFieldLockApplyDo); | ||
96 | + | ||
97 | + return ServerResult.success(); | ||
98 | + } | ||
99 | + | ||
100 | + /** | ||
101 | + * 通过主键删除数据 | ||
102 | + * | ||
103 | + * @param orderFieldLockApplyQueryVO 筛选条件 | ||
104 | + * @return 是否成功 | ||
105 | + */ | ||
106 | + @Override | ||
107 | + public ServerResult deleteById(OrderFieldLockApplyQueryVO orderFieldLockApplyQueryVO) { | ||
108 | + List<Long> ids = orderFieldLockApplyQueryVO.getIds(); | ||
109 | + if (CollUtil.isEmpty(ids)) { | ||
110 | + return ServerResult.fail("ids 参数不能为空"); | ||
111 | + } | ||
112 | + List<OrderFieldLockApplyDO> orderFieldLockApplyList = listByIds(ids); | ||
113 | + if (CollUtil.isEmpty(orderFieldLockApplyList)) { | ||
114 | + return ServerResult.success(); | ||
115 | + } | ||
116 | + //todo 校验是否可以逻辑删除 | ||
117 | + LambdaUpdateWrapper<OrderFieldLockApplyDO> updateWrapper = new LambdaUpdateWrapper<OrderFieldLockApplyDO>() | ||
118 | + .in(OrderFieldLockApplyDO::getId, ids) | ||
119 | + .set(OrderFieldLockApplyDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
120 | + update(updateWrapper); | ||
121 | + return ServerResult.success(); | ||
122 | + } | ||
123 | +} |
src/main/java/com/order/erp/service/order/impl/OrderFieldLockRecordServiceImpl.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.update.LambdaUpdateWrapper; | ||
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
7 | +import com.order.erp.common.constant.Constant; | ||
8 | +import com.order.erp.common.constant.ServerResult; | ||
9 | +import com.order.erp.domain.dto.order.OrderFieldLockRecordDO; | ||
10 | +import com.order.erp.domain.vo.order.OrderFieldLockRecordQueryVO; | ||
11 | +import com.order.erp.domain.vo.order.OrderFieldLockRecordVO; | ||
12 | +import com.order.erp.mapper.order.OrderFieldLockRecordMapper; | ||
13 | +import com.order.erp.service.order.OrderFieldLockRecordService; | ||
14 | +import lombok.extern.slf4j.Slf4j; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.util.List; | ||
18 | +import java.util.Objects; | ||
19 | + | ||
20 | +/** | ||
21 | + * 用户订单-字段锁定记录表(OrderFieldLockRecord)表服务实现类 | ||
22 | + * | ||
23 | + * @author makejava | ||
24 | + * @since 2023-09-08 15:26:45 | ||
25 | + */ | ||
26 | +@Slf4j | ||
27 | +@Service | ||
28 | +public class OrderFieldLockRecordServiceImpl extends ServiceImpl<OrderFieldLockRecordMapper, OrderFieldLockRecordDO> implements OrderFieldLockRecordService { | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * 通过ID查询单条数据 | ||
33 | + * <p> | ||
34 | + * orderFieldLockRecordQueryVO 主键 | ||
35 | + * | ||
36 | + * @return 实例对象 | ||
37 | + */ | ||
38 | + @Override | ||
39 | + public ServerResult queryById(OrderFieldLockRecordQueryVO orderFieldLockRecordQueryVO) { | ||
40 | + if (Objects.isNull(orderFieldLockRecordQueryVO.getId())) { | ||
41 | + return ServerResult.fail("id 不能为空"); | ||
42 | + } | ||
43 | + OrderFieldLockRecordDO OrderFieldLockRecordDo = getById(orderFieldLockRecordQueryVO.getId()); | ||
44 | + if (Objects.isNull(OrderFieldLockRecordDo)) { | ||
45 | + return ServerResult.success(null); | ||
46 | + } | ||
47 | + return ServerResult.success(BeanUtil.copyProperties(OrderFieldLockRecordDo, OrderFieldLockRecordVO.class)); | ||
48 | + } | ||
49 | + | ||
50 | + /** | ||
51 | + * 分页查询 | ||
52 | + * | ||
53 | + * @param orderFieldLockRecordQueryVO 筛选条件 | ||
54 | + * @return 查询结果 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public ServerResult list(OrderFieldLockRecordQueryVO orderFieldLockRecordQueryVO) { | ||
58 | + | ||
59 | + return ServerResult.success(); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * 新增数据 | ||
64 | + * | ||
65 | + * @param orderFieldLockRecordVO 实例对象 | ||
66 | + * @return 实例对象 | ||
67 | + */ | ||
68 | + @Override | ||
69 | + public ServerResult add(OrderFieldLockRecordVO orderFieldLockRecordVO) { | ||
70 | + //todo 校验 | ||
71 | + if (Objects.nonNull(orderFieldLockRecordVO.getId())) { | ||
72 | + orderFieldLockRecordVO.setId(null); | ||
73 | + } | ||
74 | + OrderFieldLockRecordDO orderFieldLockRecordDo = BeanUtil.copyProperties(orderFieldLockRecordVO, OrderFieldLockRecordDO.class); | ||
75 | + | ||
76 | + save(orderFieldLockRecordDo); | ||
77 | + | ||
78 | + return ServerResult.success(); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 修改数据 | ||
83 | + * | ||
84 | + * @param orderFieldLockRecordVO 实例对象 | ||
85 | + * @return 实例对象 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public ServerResult edit(OrderFieldLockRecordVO orderFieldLockRecordVO) { | ||
89 | + //todo 校验 | ||
90 | + if (Objects.isNull(orderFieldLockRecordVO.getId())) { | ||
91 | + return ServerResult.fail("id 不能为空"); | ||
92 | + } | ||
93 | + OrderFieldLockRecordDO orderFieldLockRecordDo = BeanUtil.copyProperties(orderFieldLockRecordVO, OrderFieldLockRecordDO.class); | ||
94 | + | ||
95 | + updateById(orderFieldLockRecordDo); | ||
96 | + | ||
97 | + return ServerResult.success(); | ||
98 | + } | ||
99 | + | ||
100 | + /** | ||
101 | + * 通过主键删除数据 | ||
102 | + * | ||
103 | + * @param orderFieldLockRecordQueryVO 筛选条件 | ||
104 | + * @return 是否成功 | ||
105 | + */ | ||
106 | + @Override | ||
107 | + public ServerResult deleteById(OrderFieldLockRecordQueryVO orderFieldLockRecordQueryVO) { | ||
108 | + List<Long> ids = orderFieldLockRecordQueryVO.getIds(); | ||
109 | + if (CollUtil.isEmpty(ids)) { | ||
110 | + return ServerResult.fail("ids 参数不能为空"); | ||
111 | + } | ||
112 | + List<OrderFieldLockRecordDO> orderFieldLockRecordList = listByIds(ids); | ||
113 | + if (CollUtil.isEmpty(orderFieldLockRecordList)) { | ||
114 | + return ServerResult.success(); | ||
115 | + } | ||
116 | + //todo 校验是否可以逻辑删除 | ||
117 | + LambdaUpdateWrapper<OrderFieldLockRecordDO> updateWrapper = new LambdaUpdateWrapper<OrderFieldLockRecordDO>() | ||
118 | + .in(OrderFieldLockRecordDO::getId, ids) | ||
119 | + .set(OrderFieldLockRecordDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
120 | + update(updateWrapper); | ||
121 | + return ServerResult.success(); | ||
122 | + } | ||
123 | +} |
src/main/java/com/order/erp/service/order/impl/OrderInspectionStageServiceImpl.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.update.LambdaUpdateWrapper; | ||
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
7 | +import com.order.erp.common.constant.Constant; | ||
8 | +import com.order.erp.common.constant.ServerResult; | ||
9 | +import com.order.erp.domain.dto.order.OrderInspectionStageDO; | ||
10 | +import com.order.erp.domain.vo.order.OrderInspectionStageQueryVO; | ||
11 | +import com.order.erp.domain.vo.order.OrderInspectionStageVO; | ||
12 | +import com.order.erp.mapper.order.OrderInspectionStageMapper; | ||
13 | +import com.order.erp.service.order.OrderInspectionStageService; | ||
14 | +import lombok.extern.slf4j.Slf4j; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.util.List; | ||
18 | +import java.util.Objects; | ||
19 | + | ||
20 | +/** | ||
21 | + * 订单-质检环节(OrderInspectionStage)表服务实现类 | ||
22 | + * | ||
23 | + * @author makejava | ||
24 | + * @since 2023-09-08 15:26:46 | ||
25 | + */ | ||
26 | +@Slf4j | ||
27 | +@Service | ||
28 | +public class OrderInspectionStageServiceImpl extends ServiceImpl<OrderInspectionStageMapper, OrderInspectionStageDO> implements OrderInspectionStageService { | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * 通过ID查询单条数据 | ||
33 | + * <p> | ||
34 | + * orderInspectionStageQueryVO 主键 | ||
35 | + * | ||
36 | + * @return 实例对象 | ||
37 | + */ | ||
38 | + @Override | ||
39 | + public ServerResult queryById(OrderInspectionStageQueryVO orderInspectionStageQueryVO) { | ||
40 | + if (Objects.isNull(orderInspectionStageQueryVO.getId())) { | ||
41 | + return ServerResult.fail("id 不能为空"); | ||
42 | + } | ||
43 | + OrderInspectionStageDO OrderInspectionStageDo = getById(orderInspectionStageQueryVO.getId()); | ||
44 | + if (Objects.isNull(OrderInspectionStageDo)) { | ||
45 | + return ServerResult.success(null); | ||
46 | + } | ||
47 | + return ServerResult.success(BeanUtil.copyProperties(OrderInspectionStageDo, OrderInspectionStageVO.class)); | ||
48 | + } | ||
49 | + | ||
50 | + /** | ||
51 | + * 分页查询 | ||
52 | + * | ||
53 | + * @param orderInspectionStageQueryVO 筛选条件 | ||
54 | + * @return 查询结果 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public ServerResult list(OrderInspectionStageQueryVO orderInspectionStageQueryVO) { | ||
58 | + | ||
59 | + return ServerResult.success(); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * 新增数据 | ||
64 | + * | ||
65 | + * @param orderInspectionStageVO 实例对象 | ||
66 | + * @return 实例对象 | ||
67 | + */ | ||
68 | + @Override | ||
69 | + public ServerResult add(OrderInspectionStageVO orderInspectionStageVO) { | ||
70 | + //todo 校验 | ||
71 | + if (Objects.nonNull(orderInspectionStageVO.getId())) { | ||
72 | + orderInspectionStageVO.setId(null); | ||
73 | + } | ||
74 | + OrderInspectionStageDO orderInspectionStageDo = BeanUtil.copyProperties(orderInspectionStageVO, OrderInspectionStageDO.class); | ||
75 | + | ||
76 | + save(orderInspectionStageDo); | ||
77 | + | ||
78 | + return ServerResult.success(); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 修改数据 | ||
83 | + * | ||
84 | + * @param orderInspectionStageVO 实例对象 | ||
85 | + * @return 实例对象 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public ServerResult edit(OrderInspectionStageVO orderInspectionStageVO) { | ||
89 | + //todo 校验 | ||
90 | + if (Objects.isNull(orderInspectionStageVO.getId())) { | ||
91 | + return ServerResult.fail("id 不能为空"); | ||
92 | + } | ||
93 | + OrderInspectionStageDO orderInspectionStageDo = BeanUtil.copyProperties(orderInspectionStageVO, OrderInspectionStageDO.class); | ||
94 | + | ||
95 | + updateById(orderInspectionStageDo); | ||
96 | + | ||
97 | + return ServerResult.success(); | ||
98 | + } | ||
99 | + | ||
100 | + /** | ||
101 | + * 通过主键删除数据 | ||
102 | + * | ||
103 | + * @param orderInspectionStageQueryVO 筛选条件 | ||
104 | + * @return 是否成功 | ||
105 | + */ | ||
106 | + @Override | ||
107 | + public ServerResult deleteById(OrderInspectionStageQueryVO orderInspectionStageQueryVO) { | ||
108 | + List<Long> ids = orderInspectionStageQueryVO.getIds(); | ||
109 | + if (CollUtil.isEmpty(ids)) { | ||
110 | + return ServerResult.fail("ids 参数不能为空"); | ||
111 | + } | ||
112 | + List<OrderInspectionStageDO> orderInspectionStageList = listByIds(ids); | ||
113 | + if (CollUtil.isEmpty(orderInspectionStageList)) { | ||
114 | + return ServerResult.success(); | ||
115 | + } | ||
116 | + //todo 校验是否可以逻辑删除 | ||
117 | + LambdaUpdateWrapper<OrderInspectionStageDO> updateWrapper = new LambdaUpdateWrapper<OrderInspectionStageDO>() | ||
118 | + .in(OrderInspectionStageDO::getId, ids) | ||
119 | + .set(OrderInspectionStageDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
120 | + update(updateWrapper); | ||
121 | + return ServerResult.success(); | ||
122 | + } | ||
123 | +} |
src/main/java/com/order/erp/service/order/impl/OrderOptLogServiceImpl.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.update.LambdaUpdateWrapper; | ||
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
7 | +import com.order.erp.common.constant.Constant; | ||
8 | +import com.order.erp.common.constant.ServerResult; | ||
9 | +import com.order.erp.domain.dto.order.OrderOptLogDO; | ||
10 | +import com.order.erp.domain.vo.order.OrderOptLogQueryVO; | ||
11 | +import com.order.erp.domain.vo.order.OrderOptLogVO; | ||
12 | +import com.order.erp.mapper.order.OrderOptLogMapper; | ||
13 | +import com.order.erp.service.order.OrderOptLogService; | ||
14 | +import lombok.extern.slf4j.Slf4j; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.util.List; | ||
18 | +import java.util.Objects; | ||
19 | + | ||
20 | +/** | ||
21 | + * 用户订单操作日志表(OrderOptLog)表服务实现类 | ||
22 | + * | ||
23 | + * @author makejava | ||
24 | + * @since 2023-09-08 15:26:47 | ||
25 | + */ | ||
26 | +@Slf4j | ||
27 | +@Service | ||
28 | +public class OrderOptLogServiceImpl extends ServiceImpl<OrderOptLogMapper, OrderOptLogDO> implements OrderOptLogService { | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * 通过ID查询单条数据 | ||
33 | + * <p> | ||
34 | + * orderOptLogQueryVO 主键 | ||
35 | + * | ||
36 | + * @return 实例对象 | ||
37 | + */ | ||
38 | + @Override | ||
39 | + public ServerResult queryById(OrderOptLogQueryVO orderOptLogQueryVO) { | ||
40 | + if (Objects.isNull(orderOptLogQueryVO.getId())) { | ||
41 | + return ServerResult.fail("id 不能为空"); | ||
42 | + } | ||
43 | + OrderOptLogDO OrderOptLogDo = getById(orderOptLogQueryVO.getId()); | ||
44 | + if (Objects.isNull(OrderOptLogDo)) { | ||
45 | + return ServerResult.success(null); | ||
46 | + } | ||
47 | + return ServerResult.success(BeanUtil.copyProperties(OrderOptLogDo, OrderOptLogVO.class)); | ||
48 | + } | ||
49 | + | ||
50 | + /** | ||
51 | + * 分页查询 | ||
52 | + * | ||
53 | + * @param orderOptLogQueryVO 筛选条件 | ||
54 | + * @return 查询结果 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public ServerResult list(OrderOptLogQueryVO orderOptLogQueryVO) { | ||
58 | + | ||
59 | + return ServerResult.success(); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * 新增数据 | ||
64 | + * | ||
65 | + * @param orderOptLogVO 实例对象 | ||
66 | + * @return 实例对象 | ||
67 | + */ | ||
68 | + @Override | ||
69 | + public ServerResult add(OrderOptLogVO orderOptLogVO) { | ||
70 | + //todo 校验 | ||
71 | + if (Objects.nonNull(orderOptLogVO.getId())) { | ||
72 | + orderOptLogVO.setId(null); | ||
73 | + } | ||
74 | + OrderOptLogDO orderOptLogDo = BeanUtil.copyProperties(orderOptLogVO, OrderOptLogDO.class); | ||
75 | + | ||
76 | + save(orderOptLogDo); | ||
77 | + | ||
78 | + return ServerResult.success(); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 修改数据 | ||
83 | + * | ||
84 | + * @param orderOptLogVO 实例对象 | ||
85 | + * @return 实例对象 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public ServerResult edit(OrderOptLogVO orderOptLogVO) { | ||
89 | + //todo 校验 | ||
90 | + if (Objects.isNull(orderOptLogVO.getId())) { | ||
91 | + return ServerResult.fail("id 不能为空"); | ||
92 | + } | ||
93 | + OrderOptLogDO orderOptLogDo = BeanUtil.copyProperties(orderOptLogVO, OrderOptLogDO.class); | ||
94 | + | ||
95 | + updateById(orderOptLogDo); | ||
96 | + | ||
97 | + return ServerResult.success(); | ||
98 | + } | ||
99 | + | ||
100 | + /** | ||
101 | + * 通过主键删除数据 | ||
102 | + * | ||
103 | + * @param orderOptLogQueryVO 筛选条件 | ||
104 | + * @return 是否成功 | ||
105 | + */ | ||
106 | + @Override | ||
107 | + public ServerResult deleteById(OrderOptLogQueryVO orderOptLogQueryVO) { | ||
108 | + List<Long> ids = orderOptLogQueryVO.getIds(); | ||
109 | + if (CollUtil.isEmpty(ids)) { | ||
110 | + return ServerResult.fail("ids 参数不能为空"); | ||
111 | + } | ||
112 | + List<OrderOptLogDO> orderOptLogList = listByIds(ids); | ||
113 | + if (CollUtil.isEmpty(orderOptLogList)) { | ||
114 | + return ServerResult.success(); | ||
115 | + } | ||
116 | + //todo 校验是否可以逻辑删除 | ||
117 | + LambdaUpdateWrapper<OrderOptLogDO> updateWrapper = new LambdaUpdateWrapper<OrderOptLogDO>() | ||
118 | + .in(OrderOptLogDO::getId, ids) | ||
119 | + .set(OrderOptLogDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
120 | + update(updateWrapper); | ||
121 | + return ServerResult.success(); | ||
122 | + } | ||
123 | +} |
src/main/java/com/order/erp/service/order/impl/OrderProfitAnalysisServiceImpl.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.update.LambdaUpdateWrapper; | ||
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
7 | +import com.order.erp.common.constant.Constant; | ||
8 | +import com.order.erp.common.constant.ServerResult; | ||
9 | +import com.order.erp.domain.dto.order.OrderProfitAnalysisDO; | ||
10 | +import com.order.erp.domain.vo.order.OrderProfitAnalysisQueryVO; | ||
11 | +import com.order.erp.domain.vo.order.OrderProfitAnalysisVO; | ||
12 | +import com.order.erp.mapper.order.OrderProfitAnalysisMapper; | ||
13 | +import com.order.erp.service.order.OrderProfitAnalysisService; | ||
14 | +import lombok.extern.slf4j.Slf4j; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.util.List; | ||
18 | +import java.util.Objects; | ||
19 | + | ||
20 | +/** | ||
21 | + * 订单利润分析表(OrderProfitAnalysis)表服务实现类 | ||
22 | + * | ||
23 | + * @author makejava | ||
24 | + * @since 2023-09-08 15:26:47 | ||
25 | + */ | ||
26 | +@Slf4j | ||
27 | +@Service | ||
28 | +public class OrderProfitAnalysisServiceImpl extends ServiceImpl<OrderProfitAnalysisMapper, OrderProfitAnalysisDO> implements OrderProfitAnalysisService { | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * 通过ID查询单条数据 | ||
33 | + * <p> | ||
34 | + * orderProfitAnalysisQueryVO 主键 | ||
35 | + * | ||
36 | + * @return 实例对象 | ||
37 | + */ | ||
38 | + @Override | ||
39 | + public ServerResult queryById(OrderProfitAnalysisQueryVO orderProfitAnalysisQueryVO) { | ||
40 | + if (Objects.isNull(orderProfitAnalysisQueryVO.getId())) { | ||
41 | + return ServerResult.fail("id 不能为空"); | ||
42 | + } | ||
43 | + OrderProfitAnalysisDO OrderProfitAnalysisDo = getById(orderProfitAnalysisQueryVO.getId()); | ||
44 | + if (Objects.isNull(OrderProfitAnalysisDo)) { | ||
45 | + return ServerResult.success(null); | ||
46 | + } | ||
47 | + return ServerResult.success(BeanUtil.copyProperties(OrderProfitAnalysisDo, OrderProfitAnalysisVO.class)); | ||
48 | + } | ||
49 | + | ||
50 | + /** | ||
51 | + * 分页查询 | ||
52 | + * | ||
53 | + * @param orderProfitAnalysisQueryVO 筛选条件 | ||
54 | + * @return 查询结果 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public ServerResult list(OrderProfitAnalysisQueryVO orderProfitAnalysisQueryVO) { | ||
58 | + | ||
59 | + return ServerResult.success(); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * 新增数据 | ||
64 | + * | ||
65 | + * @param orderProfitAnalysisVO 实例对象 | ||
66 | + * @return 实例对象 | ||
67 | + */ | ||
68 | + @Override | ||
69 | + public ServerResult add(OrderProfitAnalysisVO orderProfitAnalysisVO) { | ||
70 | + //todo 校验 | ||
71 | + if (Objects.nonNull(orderProfitAnalysisVO.getId())) { | ||
72 | + orderProfitAnalysisVO.setId(null); | ||
73 | + } | ||
74 | + OrderProfitAnalysisDO orderProfitAnalysisDo = BeanUtil.copyProperties(orderProfitAnalysisVO, OrderProfitAnalysisDO.class); | ||
75 | + | ||
76 | + save(orderProfitAnalysisDo); | ||
77 | + | ||
78 | + return ServerResult.success(); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 修改数据 | ||
83 | + * | ||
84 | + * @param orderProfitAnalysisVO 实例对象 | ||
85 | + * @return 实例对象 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public ServerResult edit(OrderProfitAnalysisVO orderProfitAnalysisVO) { | ||
89 | + //todo 校验 | ||
90 | + if (Objects.isNull(orderProfitAnalysisVO.getId())) { | ||
91 | + return ServerResult.fail("id 不能为空"); | ||
92 | + } | ||
93 | + OrderProfitAnalysisDO orderProfitAnalysisDo = BeanUtil.copyProperties(orderProfitAnalysisVO, OrderProfitAnalysisDO.class); | ||
94 | + | ||
95 | + updateById(orderProfitAnalysisDo); | ||
96 | + | ||
97 | + return ServerResult.success(); | ||
98 | + } | ||
99 | + | ||
100 | + /** | ||
101 | + * 通过主键删除数据 | ||
102 | + * | ||
103 | + * @param orderProfitAnalysisQueryVO 筛选条件 | ||
104 | + * @return 是否成功 | ||
105 | + */ | ||
106 | + @Override | ||
107 | + public ServerResult deleteById(OrderProfitAnalysisQueryVO orderProfitAnalysisQueryVO) { | ||
108 | + List<Long> ids = orderProfitAnalysisQueryVO.getIds(); | ||
109 | + if (CollUtil.isEmpty(ids)) { | ||
110 | + return ServerResult.fail("ids 参数不能为空"); | ||
111 | + } | ||
112 | + List<OrderProfitAnalysisDO> orderProfitAnalysisList = listByIds(ids); | ||
113 | + if (CollUtil.isEmpty(orderProfitAnalysisList)) { | ||
114 | + return ServerResult.success(); | ||
115 | + } | ||
116 | + //todo 校验是否可以逻辑删除 | ||
117 | + LambdaUpdateWrapper<OrderProfitAnalysisDO> updateWrapper = new LambdaUpdateWrapper<OrderProfitAnalysisDO>() | ||
118 | + .in(OrderProfitAnalysisDO::getId, ids) | ||
119 | + .set(OrderProfitAnalysisDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
120 | + update(updateWrapper); | ||
121 | + return ServerResult.success(); | ||
122 | + } | ||
123 | +} |
src/main/java/com/order/erp/service/order/impl/OrderTrackStageServiceImpl.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.update.LambdaUpdateWrapper; | ||
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
7 | +import com.order.erp.common.constant.Constant; | ||
8 | +import com.order.erp.common.constant.ServerResult; | ||
9 | +import com.order.erp.domain.dto.order.OrderTrackStageDO; | ||
10 | +import com.order.erp.domain.vo.order.OrderTrackStageQueryVO; | ||
11 | +import com.order.erp.domain.vo.order.OrderTrackStageVO; | ||
12 | +import com.order.erp.mapper.order.OrderTrackStageMapper; | ||
13 | +import com.order.erp.service.order.OrderTrackStageService; | ||
14 | +import lombok.extern.slf4j.Slf4j; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.util.List; | ||
18 | +import java.util.Objects; | ||
19 | + | ||
20 | +/** | ||
21 | + * 订单-跟单环节(OrderTrackStage)表服务实现类 | ||
22 | + * | ||
23 | + * @author makejava | ||
24 | + * @since 2023-09-08 15:26:48 | ||
25 | + */ | ||
26 | +@Slf4j | ||
27 | +@Service | ||
28 | +public class OrderTrackStageServiceImpl extends ServiceImpl<OrderTrackStageMapper, OrderTrackStageDO> implements OrderTrackStageService { | ||
29 | + | ||
30 | + | ||
31 | + /** | ||
32 | + * 通过ID查询单条数据 | ||
33 | + * <p> | ||
34 | + * orderTrackStageQueryVO 主键 | ||
35 | + * | ||
36 | + * @return 实例对象 | ||
37 | + */ | ||
38 | + @Override | ||
39 | + public ServerResult queryById(OrderTrackStageQueryVO orderTrackStageQueryVO) { | ||
40 | + if (Objects.isNull(orderTrackStageQueryVO.getId())) { | ||
41 | + return ServerResult.fail("id 不能为空"); | ||
42 | + } | ||
43 | + OrderTrackStageDO OrderTrackStageDo = getById(orderTrackStageQueryVO.getId()); | ||
44 | + if (Objects.isNull(OrderTrackStageDo)) { | ||
45 | + return ServerResult.success(null); | ||
46 | + } | ||
47 | + return ServerResult.success(BeanUtil.copyProperties(OrderTrackStageDo, OrderTrackStageVO.class)); | ||
48 | + } | ||
49 | + | ||
50 | + /** | ||
51 | + * 分页查询 | ||
52 | + * | ||
53 | + * @param orderTrackStageQueryVO 筛选条件 | ||
54 | + * @return 查询结果 | ||
55 | + */ | ||
56 | + @Override | ||
57 | + public ServerResult list(OrderTrackStageQueryVO orderTrackStageQueryVO) { | ||
58 | + | ||
59 | + return ServerResult.success(); | ||
60 | + } | ||
61 | + | ||
62 | + /** | ||
63 | + * 新增数据 | ||
64 | + * | ||
65 | + * @param orderTrackStageVO 实例对象 | ||
66 | + * @return 实例对象 | ||
67 | + */ | ||
68 | + @Override | ||
69 | + public ServerResult add(OrderTrackStageVO orderTrackStageVO) { | ||
70 | + //todo 校验 | ||
71 | + if (Objects.nonNull(orderTrackStageVO.getId())) { | ||
72 | + orderTrackStageVO.setId(null); | ||
73 | + } | ||
74 | + OrderTrackStageDO orderTrackStageDo = BeanUtil.copyProperties(orderTrackStageVO, OrderTrackStageDO.class); | ||
75 | + | ||
76 | + save(orderTrackStageDo); | ||
77 | + | ||
78 | + return ServerResult.success(); | ||
79 | + } | ||
80 | + | ||
81 | + /** | ||
82 | + * 修改数据 | ||
83 | + * | ||
84 | + * @param orderTrackStageVO 实例对象 | ||
85 | + * @return 实例对象 | ||
86 | + */ | ||
87 | + @Override | ||
88 | + public ServerResult edit(OrderTrackStageVO orderTrackStageVO) { | ||
89 | + //todo 校验 | ||
90 | + if (Objects.isNull(orderTrackStageVO.getId())) { | ||
91 | + return ServerResult.fail("id 不能为空"); | ||
92 | + } | ||
93 | + OrderTrackStageDO orderTrackStageDo = BeanUtil.copyProperties(orderTrackStageVO, OrderTrackStageDO.class); | ||
94 | + | ||
95 | + updateById(orderTrackStageDo); | ||
96 | + | ||
97 | + return ServerResult.success(); | ||
98 | + } | ||
99 | + | ||
100 | + /** | ||
101 | + * 通过主键删除数据 | ||
102 | + * | ||
103 | + * @param orderTrackStageQueryVO 筛选条件 | ||
104 | + * @return 是否成功 | ||
105 | + */ | ||
106 | + @Override | ||
107 | + public ServerResult deleteById(OrderTrackStageQueryVO orderTrackStageQueryVO) { | ||
108 | + List<Long> ids = orderTrackStageQueryVO.getIds(); | ||
109 | + if (CollUtil.isEmpty(ids)) { | ||
110 | + return ServerResult.fail("ids 参数不能为空"); | ||
111 | + } | ||
112 | + List<OrderTrackStageDO> orderTrackStageList = listByIds(ids); | ||
113 | + if (CollUtil.isEmpty(orderTrackStageList)) { | ||
114 | + return ServerResult.success(); | ||
115 | + } | ||
116 | + //todo 校验是否可以逻辑删除 | ||
117 | + LambdaUpdateWrapper<OrderTrackStageDO> updateWrapper = new LambdaUpdateWrapper<OrderTrackStageDO>() | ||
118 | + .in(OrderTrackStageDO::getId, ids) | ||
119 | + .set(OrderTrackStageDO::getEnableFlag, Constant.UNABLE_TWENTY); | ||
120 | + update(updateWrapper); | ||
121 | + return ServerResult.success(); | ||
122 | + } | ||
123 | +} |