11 changed files with 142 additions and 2 deletions
@ -0,0 +1,25 @@ |
|||||
|
package org.dromara.system.api; |
||||
|
|
||||
|
import org.dromara.system.api.domain.bo.RemoteLogininforBo; |
||||
|
import org.dromara.system.api.domain.vo.RemoteAiLabelPostVo; |
||||
|
import org.dromara.system.api.domain.vo.RemoteDeptVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @auther yq |
||||
|
* @data 2025/3/12 |
||||
|
*/ |
||||
|
public interface RemoteLablePostService { |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 根据岗位编码和部门id进行查询绑定的标签集合 |
||||
|
* @param postCode 岗位编码 |
||||
|
* @param deptId 部门id |
||||
|
* @return 标签集合 |
||||
|
* |
||||
|
* */ |
||||
|
List<RemoteAiLabelPostVo> selectLableByList(String postCode, Long deptId); |
||||
|
|
||||
|
} |
@ -0,0 +1,56 @@ |
|||||
|
package org.dromara.system.api.domain.vo; |
||||
|
|
||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||
|
import io.github.linpeilie.annotations.AutoMapper; |
||||
|
import lombok.Data; |
||||
|
import org.dromara.system.domain.AiLabel; |
||||
|
|
||||
|
import java.io.Serial; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* ai 识别类型视图对象 ai_label |
||||
|
* |
||||
|
* @author LionLi |
||||
|
* @date 2025-03-11 |
||||
|
*/ |
||||
|
@Data |
||||
|
|
||||
|
public class RemoteAiLabelPostVo implements Serializable { |
||||
|
|
||||
|
@Serial |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
// @ExcelProperty(value = "id")
|
||||
|
private Long lableId; |
||||
|
|
||||
|
/** |
||||
|
* 标签名-英 |
||||
|
*/ |
||||
|
|
||||
|
private String labelEn; |
||||
|
|
||||
|
/** |
||||
|
* 标签名-中 |
||||
|
*/ |
||||
|
|
||||
|
private String labelCn; |
||||
|
|
||||
|
/** |
||||
|
* 算法类型 |
||||
|
*/ |
||||
|
private String aiType; |
||||
|
|
||||
|
/** |
||||
|
* 算法名称 |
||||
|
*/ |
||||
|
private String aiName; |
||||
|
|
||||
|
private Long postId; |
||||
|
private String postName; |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
package org.dromara.system.dubbo; |
||||
|
|
||||
|
import lombok.RequiredArgsConstructor; |
||||
|
import org.apache.dubbo.config.annotation.DubboService; |
||||
|
import org.dromara.common.core.utils.MapstructUtils; |
||||
|
import org.dromara.system.api.RemoteLablePostService; |
||||
|
import org.dromara.system.api.domain.vo.RemoteAiLabelPostVo; |
||||
|
import org.dromara.system.api.domain.vo.RemoteDictDataVo; |
||||
|
import org.dromara.system.domain.vo.AiLablePostVo; |
||||
|
import org.dromara.system.domain.vo.SysPostVo; |
||||
|
import org.dromara.system.service.IAiLablePostService; |
||||
|
import org.dromara.system.service.ISysPostService; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @auther yq |
||||
|
* @data 2025/3/12 |
||||
|
*/ |
||||
|
@RequiredArgsConstructor |
||||
|
@Service |
||||
|
@DubboService |
||||
|
public class RemoteLablePostServicelmpl implements RemoteLablePostService { |
||||
|
|
||||
|
private final ISysPostService sysPostService; |
||||
|
private final IAiLablePostService aiLablePostService; |
||||
|
|
||||
|
@Override |
||||
|
public List<RemoteAiLabelPostVo> selectLableByList(String postCode, Long deptId) { |
||||
|
SysPostVo sysPostVo = sysPostService.selectLableByList(postCode, deptId); |
||||
|
if(sysPostVo != null){ |
||||
|
List<AiLablePostVo> aiLablePostVos = aiLablePostService.queryListByLable(sysPostVo.getPostId()); |
||||
|
return MapstructUtils.convert(aiLablePostVos, RemoteAiLabelPostVo.class); |
||||
|
} |
||||
|
return new ArrayList<>(); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue