生产单新增逻辑

This commit is contained in:
lym
2024-04-08 14:01:24 +08:00
parent 3c3453f985
commit 1dfdfedc5a
104 changed files with 2121 additions and 1096 deletions
@@ -0,0 +1,25 @@
package com.cf.imes.module.system.api.process;
import com.cf.imes.module.system.dal.mysql.process.ProcessGroupMapper;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import static com.cf.imes.framework.common.exception.util.ServiceExceptionUtil.exception;
import static com.cf.imes.module.system.enums.ErrorCodeConstants.PROCESS_GROUP_NOT_EXISTS;
@RestController // 提供 RESTful API 接口,给 Feign 调用
@Validated
public class ProcessGroupApiImpl implements ProcessGroupApi {
@Resource
private ProcessGroupMapper processGroupMapper;
@Override
public Boolean getProcessGroup(Long groupId) {
if (processGroupMapper.selectById(groupId) == null)
return false;
return true;
}
}