diff --git a/cf-module-infra/cf-module-infra-biz/pom.xml b/cf-module-infra/cf-module-infra-biz/pom.xml
index 3f53410dc..c8ac36b85 100644
--- a/cf-module-infra/cf-module-infra-biz/pom.xml
+++ b/cf-module-infra/cf-module-infra-biz/pom.xml
@@ -169,6 +169,46 @@
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ ${maven.dependency.plugin.version}
+
+
+ prepare-package
+
+ copy-dependencies
+
+
+
+ target/lib
+
+ com.cf.imes
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ ${maven.assembly.plugin.version}
+
+ false
+
+
+ src/main/build/assembly.xml
+
+
+
+
+ bundle
+ package
+
+ single
+
+
+
+
diff --git a/cf-module-infra/cf-module-infra-biz/src/main/build/assembly.xml b/cf-module-infra/cf-module-infra-biz/src/main/build/assembly.xml
new file mode 100644
index 000000000..6569531ff
--- /dev/null
+++ b/cf-module-infra/cf-module-infra-biz/src/main/build/assembly.xml
@@ -0,0 +1,39 @@
+
+ bundle
+
+ tar.gz
+
+ false
+
+
+
+
+ ${basedir}/src/main/resources
+ config
+
+ application-${profileActive}.yaml
+ bootstrap-${profileActive}.yaml
+ bootstrap.yaml
+
+
+
+
+
+ ${basedir}/target/lib
+
+ *.jar
+
+
+ lib
+
+
+
+ ${project.build.directory}
+ /
+
+ ${project.artifactId}.jar
+
+
+
+
+
\ No newline at end of file
diff --git a/cf-module-infra/cf-module-infra-biz/src/main/resources/application-test.yaml b/cf-module-infra/cf-module-infra-biz/src/main/resources/application-test.yaml
new file mode 100644
index 000000000..110cf76c9
--- /dev/null
+++ b/cf-module-infra/cf-module-infra-biz/src/main/resources/application-test.yaml
@@ -0,0 +1,4 @@
+spring:
+ main:
+ allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
+ allow-bean-definition-overriding: true # 允许 Bean 覆盖,例如说 Feign 等会存在重复定义的服务
\ No newline at end of file
diff --git a/cf-module-infra/cf-module-infra-biz/src/main/resources/bootstrap-test.yaml b/cf-module-infra/cf-module-infra-biz/src/main/resources/bootstrap-test.yaml
new file mode 100644
index 000000000..90fc424cd
--- /dev/null
+++ b/cf-module-infra/cf-module-infra-biz/src/main/resources/bootstrap-test.yaml
@@ -0,0 +1,23 @@
+--- #################### 注册中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ server-addr: 192.168.1.204:8848
+ discovery:
+ namespace: imes-test # 命名空间。这里使用 dev 开发环境
+ metadata:
+ version: 1.0.0 # 服务实例的版本号,可用于灰度发布
+
+--- #################### 配置中心相关配置 ####################
+
+spring:
+ cloud:
+ nacos:
+ # Nacos Config 配置项,对应 NacosConfigProperties 配置属性类
+ config:
+ server-addr: 192.168.1.204:8848 # Nacos 服务器地址
+ namespace: imes-test # 命名空间 dev 的ID,不能直接使用 dev 名称。创建命名空间的时候需要指定ID为 dev,这里使用 dev 开发环境
+ group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
+ name: ${spring.application.name} # 使用的 Nacos 配置集的 dataId,默认为 spring.application.name
+ file-extension: yaml # 使用的 Nacos 配置集的 dataId 的文件拓展名,同时也是 Nacos 配置集的配置格式,默认为 properties
\ No newline at end of file
diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderController.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderController.java
index 1dce77e80..7a41e5b66 100644
--- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderController.java
+++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderController.java
@@ -70,14 +70,14 @@ public class OrderController {
@PostMapping("/create")
@Operation(summary = "创建生产单")
- @PreAuthorize("@ss.hasPermission('executor:order:create')")
+ @PreAuthorize("@ss.hasPermission('production:manager-list:create')")
public CommonResult createOrder(@Valid @RequestBody OrderSaveReqVO createReqVO) {
return success(orderService.createOrder(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新生产单")
- @PreAuthorize("@ss.hasPermission('executor:order:update')")
+ @PreAuthorize("@ss.hasPermission('production:manager-list:edit')")
public CommonResult updateOrder(@Valid @RequestBody OrderSaveReqVO updateReqVO) {
orderService.updateOrder(updateReqVO);
return success(true);
@@ -90,7 +90,7 @@ public class OrderController {
@Parameter(name = "orderId", description = "生产单编号", required = true, example = "1024"),
@Parameter(name = "bodyIds", description = "柜体编号集合", required = true, example = "1,2")
})
- @PreAuthorize("@ss.hasPermission('executor:order:delete')")
+ @PreAuthorize("@ss.hasPermission('production:manager-list:deleteCabinet')")
public CommonResult deleteBody(@RequestParam("orderId") Long orderId, @RequestParam("bodyIds") Set bodyIds) {
orderService.deleteBodyByOrder(orderId, bodyIds);
return success(true);
@@ -99,7 +99,7 @@ public class OrderController {
@DeleteMapping("/delete")
@Operation(summary = "作废")
@Parameter(name = "orderId", description = "生产单id", required = true, example = "1")
- @PreAuthorize("@ss.hasPermission('executor:order:delete')")
+ @PreAuthorize("@ss.hasPermission('production:manager-list:nullify')")
public CommonResult deleteOrder(@RequestParam("orderId") Long orderId) {
orderService.deleteOrder(orderId);
return success(true);
@@ -108,7 +108,7 @@ public class OrderController {
@PutMapping("/restore")
@Operation(summary = "还原")
@Parameter(name = "orderId", description = "生产单id", required = true, example = "1")
- @PreAuthorize("@ss.hasPermission('executor:order:update')")
+ @PreAuthorize("@ss.hasPermission('production:manager-list:backOrder')")
public CommonResult restoreOrder(@RequestBody JSONObject jsonObject) {
Long orderId = jsonObject.getLong("orderId");
orderService.restoreOrder(orderId);
@@ -118,7 +118,7 @@ public class OrderController {
@GetMapping("/get")
@Operation(summary = "获得(单个)生产单")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
- @PreAuthorize("@ss.hasPermission('executor:order:query')")
+ @PreAuthorize("@ss.hasPermission('production:manager-list:detail')")
public CommonResult getOrder(@RequestParam("id") Long id) {
OrderDO order = orderService.getOrder(id);
return success(BeanUtils.toBean(order, OrderRespVO.class));
@@ -126,7 +126,7 @@ public class OrderController {
@GetMapping("/page")
@Operation(summary = "获得生产单分页")
- @PreAuthorize("@ss.hasPermission('executor:order:query')")
+ @PreAuthorize("@ss.hasPermission('productManager:List')")
public CommonResult> getOrderPage(@Valid OrderPageReqVO pageReqVO) {
PageResult pageResult = orderService.getOrderPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, OrderRespVO.class));
@@ -142,7 +142,7 @@ public class OrderController {
@GetMapping("/get-room")
@Operation(summary = "生产单详情-房间和柜体id")
@Parameter(name = "orderId", description = "生产单编号", required = true, example = "1024")
- @PreAuthorize("@ss.hasPermission('executor:order:query')")
+ @PreAuthorize("@ss.hasPermission('production:manager-list:detail')")
public CommonResult> getRoom(@RequestParam("orderId") Long orderId) {
List orderBodyMap = orderService.getOrderBody(orderId);
return success(orderBodyMap);
@@ -151,7 +151,7 @@ public class OrderController {
@GetMapping("/get-module")
@Operation(summary = "生产单详情-数量信息")
@Parameter(name = "orderId", description = "生产单编号", example = "1024")
- @PreAuthorize("@ss.hasPermission('executor:order:query')")
+ @PreAuthorize("@ss.hasPermission('production:manager-list:detail')")
public CommonResult