feat(REQ-3300) - 添加变洽签关联内容的查询接口定义
This commit is contained in:
parent
e74fa12350
commit
1f0e4e168d
@ -1,7 +1,12 @@
|
||||
package cn.axzo.visa.api.changerecord;
|
||||
|
||||
import cn.axzo.framework.domain.web.result.ApiResult;
|
||||
import cn.axzo.visa.api.enums.VisaRelationFieldEnum;
|
||||
import cn.axzo.visa.api.response.VisaRelationResp;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author xudawei
|
||||
* @date 2025/01/15
|
||||
@ -10,6 +15,9 @@ import org.springframework.cloud.openfeign.FeignClient;
|
||||
@FeignClient(name = "nanopart", url = "${axzo.service.nanopart:http://nanopart:8080}")
|
||||
public interface ChangeRecordRelationApi {
|
||||
|
||||
ApiResult<List<VisaRelationResp>> listByVisaId(String visaId);
|
||||
|
||||
ApiResult<List<VisaRelationResp>> listByVisaId(String visaId, VisaRelationFieldEnum fieldEnum);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,50 @@
|
||||
package cn.axzo.visa.api.response;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 变洽签关联的行数据相应模型
|
||||
*
|
||||
* @author wangli
|
||||
* @since 2025-01-16 09:50
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class VisaRelationResp {
|
||||
|
||||
private Long id;
|
||||
/**
|
||||
* 变洽签主单据编号
|
||||
*/
|
||||
private String visaId;
|
||||
/**
|
||||
* 变洽签单据关联的行数据类型
|
||||
* {@link cn.axzo.visa.api.enums.VisaRelationFieldEnum}
|
||||
*/
|
||||
private String varName;
|
||||
|
||||
/**
|
||||
* 数据类型的扩展内容
|
||||
*/
|
||||
private String varExt;
|
||||
/**
|
||||
* 数据值的 java 类型
|
||||
*/
|
||||
private String varType;
|
||||
/**
|
||||
* 数据值
|
||||
*/
|
||||
private String content;
|
||||
/**
|
||||
* 数据值的一些额外描述
|
||||
*/
|
||||
private String content_ext;
|
||||
|
||||
}
|
||||
@ -1,12 +1,17 @@
|
||||
package cn.axzo.visa.server.controller;
|
||||
|
||||
import cn.axzo.framework.domain.web.result.ApiResult;
|
||||
import cn.axzo.visa.api.changerecord.ChangeRecordRelationApi;
|
||||
import cn.axzo.visa.api.enums.VisaRelationFieldEnum;
|
||||
import cn.axzo.visa.api.response.VisaRelationResp;
|
||||
import cn.axzo.visa.server.service.ChangeRecordRelationService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author xudawei
|
||||
* @date 2025/01/15
|
||||
@ -20,4 +25,13 @@ public class ChangeRecordRelationController implements ChangeRecordRelationApi {
|
||||
@Autowired
|
||||
private ChangeRecordRelationService changeRecordRelationService;
|
||||
|
||||
@Override
|
||||
public ApiResult<List<VisaRelationResp>> listByVisaId(String visaId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApiResult<List<VisaRelationResp>> listByVisaId(String visaId, VisaRelationFieldEnum fieldEnum) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -56,8 +56,8 @@ public class ChangeRecordRelation extends BaseEntity<ChangeRecordRelation> {
|
||||
/**
|
||||
* 内容描述
|
||||
*/
|
||||
@TableField(value = "description")
|
||||
private String description;
|
||||
@TableField(value = "content_ext")
|
||||
private String content_ext;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
|
||||
Loading…
Reference in New Issue
Block a user