优化
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package top.wms.admin.controller.materialProcess;
|
||||
|
||||
import top.continew.starter.extension.crud.enums.Api;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import top.continew.starter.extension.crud.annotation.CrudRequestMapping;
|
||||
import top.continew.starter.extension.crud.model.resp.LabelValueResp;
|
||||
import top.continew.starter.log.annotation.Log;
|
||||
import top.wms.admin.common.controller.BaseController;
|
||||
import top.wms.admin.materialProcess.model.query.MaterialProcessQuery;
|
||||
import top.wms.admin.materialProcess.model.req.MaterialProcessReq;
|
||||
import top.wms.admin.materialProcess.model.resp.MaterialProcessResp;
|
||||
import top.wms.admin.materialProcess.service.MaterialProcessService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 海康物料流程管理 API
|
||||
*
|
||||
* @author zc
|
||||
* @since 2026/03/16 17:22
|
||||
*/
|
||||
@Tag(name = "海康物料流程管理 API")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@CrudRequestMapping(value = "/materialProcess/materialProcess", api = {Api.PAGE, Api.DETAIL, Api.ADD, Api.UPDATE, Api.DELETE, Api.EXPORT})
|
||||
public class MaterialProcessController extends BaseController<MaterialProcessService, MaterialProcessResp, MaterialProcessResp, MaterialProcessQuery, MaterialProcessReq> {
|
||||
|
||||
|
||||
@Log(ignore = true)
|
||||
@GetMapping("/selectList")
|
||||
public List<LabelValueResp> getSelectList() {
|
||||
return baseService.getSelectList();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package top.wms.admin.controller.materialType;
|
||||
|
||||
import top.continew.starter.extension.crud.enums.Api;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import top.continew.starter.extension.crud.annotation.CrudRequestMapping;
|
||||
import top.continew.starter.extension.crud.model.resp.LabelValueResp;
|
||||
import top.continew.starter.log.annotation.Log;
|
||||
import top.wms.admin.common.controller.BaseController;
|
||||
import top.wms.admin.materialType.model.query.MaterialTypeQuery;
|
||||
import top.wms.admin.materialType.model.req.MaterialTypeReq;
|
||||
import top.wms.admin.materialType.model.resp.MaterialTypeResp;
|
||||
import top.wms.admin.materialType.service.MaterialTypeService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 物料品类管理 API
|
||||
*
|
||||
* @author zc
|
||||
* @since 2026/03/16 11:18
|
||||
*/
|
||||
@Tag(name = "物料品类管理 API")
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@CrudRequestMapping(value = "/materialType/materialType", api = {Api.PAGE, Api.ADD, Api.UPDATE, Api.DELETE, Api.EXPORT})
|
||||
public class MaterialTypeController extends BaseController<MaterialTypeService, MaterialTypeResp, MaterialTypeResp, MaterialTypeQuery, MaterialTypeReq> {
|
||||
|
||||
|
||||
@Log(ignore = true)
|
||||
@GetMapping("/selectList")
|
||||
public List<LabelValueResp> getSelectList() {
|
||||
return baseService.getSelectList();
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,7 @@ public class CommandService {
|
||||
@Autowired
|
||||
private ChannelManager channelManager;
|
||||
|
||||
@Scheduled(cron = "*/1 * * * * ?")
|
||||
// @Scheduled(cron = "*/1 * * * * ?")
|
||||
public void sendAndWait() {
|
||||
// 1. 检查连接
|
||||
log.info("查询时间========");
|
||||
|
||||
@@ -41,6 +41,12 @@ public class WorkOrderController extends BaseController<WorkOrderService, WorkOr
|
||||
return baseService.getWorkOrderInfos(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 打印标签时调用得接口
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Log(ignore = true)
|
||||
@SaCheckPermission("workOrder:record:detail")
|
||||
@GetMapping(value = "/{id}")
|
||||
|
||||
@@ -49,7 +49,7 @@ public class AHDZCConnect {
|
||||
|
||||
private ScheduledExecutorService executorService;
|
||||
|
||||
@PostConstruct
|
||||
// @PostConstruct
|
||||
public void init() {
|
||||
// 项目启动时初始化并启动服务
|
||||
ScaleService();
|
||||
@@ -57,7 +57,7 @@ public class AHDZCConnect {
|
||||
|
||||
}
|
||||
|
||||
@PreDestroy
|
||||
// @PreDestroy
|
||||
public void destroy() {
|
||||
// 项目关闭时停止服务
|
||||
stop();
|
||||
|
||||
Reference in New Issue
Block a user