Commit 7d5d25ba authored by wangqiang's avatar wangqiang

采购计划绑定支出合同功能开发

parent 66415d68
package com.yonde.dcs.plan.common.vo;
import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.time.LocalDateTime;
import java.util.ArrayList;
import cn.hutool.core.convert.Convert;
import com.yonde.dex.basedata.entity.annotation.XmlElementProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import lombok.ToString;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigInteger;
import org.springframework.data.annotation.Transient;
import lombok.experimental.Delegate;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.XmlAttribute;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.yonde.dex.basedata.entity.xmladapters.LocalDateTimeXmlAdapter;
import lombok.Data;
import com.yonde.dex.basedata.entity.annotation.*;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.yonde.dex.basedata.entity.vo.IdOnlyVO;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.lang.TypeReference;
import com.yonde.dex.basedata.entity.data.VersionRelationType;
import com.yonde.dcs.plan.common.vo.ExtPuchasePlanAttributeVO;
import com.yonde.dcs.plan.common.vo.ExtExpenditureContractVO;
import com.yonde.dex.basedata.entity.vo.DxIdVOEmbeddable;
import com.yonde.dex.basedata.entity.vo.IdVO;
import com.yonde.dex.linkdata.plugin.common.DxLinkDataVOHolder;
import com.yonde.dex.linkdata.plugin.common.DxLinkDataVOEmbeddable;
import com.yonde.dex.basedata.entity.users.DxUserVO;
/**
* @description: ExtPurPlanExtExpendContractLink-VO
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
@JsonTypeInfo( use = JsonTypeInfo.Id.CLASS, property = "dxClassname", visible = true, defaultImpl = ExtPurPlanExtExpendContractLinkVO.class)
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
@DexTypeVersionProp(propName = "target", join = @VersionProperty(curVersion = VersionRelationType.NONE, refVersion = VersionRelationType.ITERATION))
@DexTypeVersionProp(propName = "source", join = @VersionProperty(curVersion = VersionRelationType.NONE, refVersion = VersionRelationType.ITERATION))
public class ExtPurPlanExtExpendContractLinkVO extends IdOnlyVO implements IdVO ,DxLinkDataVOHolder<ExtPuchasePlanAttributeVO, ExtExpenditureContractVO>{
public static final String DX_ID_EMBEDDABLE_PROP_NAME = "dxIdEmbeddable";
public static final String DX_LINK_DATA_EMBEDDABLE_PROP_NAME = "dxLinkDataEmbeddable";
/**
* dao扩展对象
*/
@DexEmbedded()
@JsonIgnore
private DxIdVOEmbeddable dxIdEmbeddable;
/**
* 扩展VO属性
*/
@DexEmbedded()
@JsonIgnore
private DxLinkDataVOEmbeddable<ExtPuchasePlanAttributeVO, ExtExpenditureContractVO> dxLinkDataEmbeddable;
}
package com.yonde.dcs.plan.core.controller;
import org.springframework.stereotype.Controller;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import java.util.List;
import com.yonde.dcs.plan.common.vo.ExtPurPlanExtExpendContractLinkVO;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Autowired;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
import com.yonde.dcs.plan.core.service.ExtPurPlanExtExpendContractLinkService;
import com.yonde.dex.basedata.entity.api.ApiResult;
import com.yonde.dcs.plan.core.controller.shadow.ExtPurPlanExtExpendContractLinkControllerShadow;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
/**
* @description: ExtPurPlanExtExpendContractLink-Controller
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
@Api(tags = "ExtPurPlanExtExpendContractLink管理服务")
@RequestMapping("/ExtPurPlanExtExpendContractLink")
@ResponseBody()
@Controller(ExtPurPlanExtExpendContractLinkController.BEAN_NAME)
public class ExtPurPlanExtExpendContractLinkController<V extends ExtPurPlanExtExpendContractLinkVO, S extends ExtPurPlanExtExpendContractLinkService<V>> extends ExtPurPlanExtExpendContractLinkControllerShadow<V, S> {
}
package com.yonde.dcs.plan.core.controller.shadow;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import java.util.List;
import com.yonde.dcs.plan.common.vo.ExtPurPlanExtExpendContractLinkVO;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Autowired;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
import com.yonde.dcs.plan.core.service.ExtPurPlanExtExpendContractLinkService;
import com.yonde.dcs.plan.core.service.impl.ExtPurPlanExtExpendContractLinkServiceImpl;
import com.yonde.dex.basedata.entity.api.ApiResult;
import javax.annotation.Resource;
import com.yonde.dex.linkdata.plugin.core.controller.DxLinkDataController;
import com.yonde.dex.baseweb.AbstractBaseController;
/**
* @description: ExtPurPlanExtExpendContractLink-Controller
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
public class ExtPurPlanExtExpendContractLinkControllerShadow<V extends ExtPurPlanExtExpendContractLinkVO, S extends ExtPurPlanExtExpendContractLinkService<V>> implements AbstractBaseController<V, S> ,DxLinkDataController<V, S>{
public static final String BEAN_NAME = "extPurPlanExtExpendContractLinkController";
/**
* 注入
*/
@Resource(name = ExtPurPlanExtExpendContractLinkServiceImpl.BEAN_NAME)
private ExtPurPlanExtExpendContractLinkService<V> extPurPlanExtExpendContractLinkService;
/**
* getService
*/
@Override
public S getService() {
return (S)this.extPurPlanExtExpendContractLinkService;
}
}
package com.yonde.dcs.plan.core.repository;
import com.yonde.dcs.plan.entity.po.ExtPurPlanExtExpendContractLink;
import com.yonde.dcs.plan.core.repository.shadow.ExtPurPlanExtExpendContractLinkRepositoryShadow;
/**
* @description: ExtPurPlanExtExpendContractLink-repository
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
public interface ExtPurPlanExtExpendContractLinkRepository<P extends ExtPurPlanExtExpendContractLink> extends ExtPurPlanExtExpendContractLinkRepositoryShadow<P> {
}
package com.yonde.dcs.plan.core.repository.shadow;
import com.yonde.dcs.plan.entity.po.ExtPurPlanExtExpendContractLink;
import org.springframework.data.repository.NoRepositoryBean;
import com.yonde.dex.dao.business.repository.BaseRepository;
import com.yonde.dex.linkdata.plugin.core.repository.DxLinkDataRepository;
/**
* @description: ExtPurPlanExtExpendContractLink-repository
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
@NoRepositoryBean
public interface ExtPurPlanExtExpendContractLinkRepositoryShadow<P extends ExtPurPlanExtExpendContractLink> extends BaseRepository<P> ,DxLinkDataRepository<P> {
String BEAN_NAME = "extPurPlanExtExpendContractLinkRepository";
}
package com.yonde.dcs.plan.core.service;
import com.yonde.dcs.plan.common.vo.ExtPurPlanExtExpendContractLinkVO;
import com.yonde.dcs.plan.core.service.shadow.ExtPurPlanExtExpendContractLinkServiceShadow;
/**
* @description: ExtPurPlanExtExpendContractLink-service
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
public interface ExtPurPlanExtExpendContractLinkService<V extends ExtPurPlanExtExpendContractLinkVO> extends ExtPurPlanExtExpendContractLinkServiceShadow<V> {
}
package com.yonde.dcs.plan.core.service.impl;
import org.springframework.stereotype.Service;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.yonde.dcs.plan.common.vo.ExtPurPlanExtExpendContractLinkVO;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Autowired;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import com.yonde.dcs.plan.core.service.ExtPurPlanExtExpendContractLinkService;
import com.yonde.dcs.plan.core.repository.ExtPurPlanExtExpendContractLinkRepository;
import com.yonde.dcs.plan.entity.po.ExtPurPlanExtExpendContractLink;
import javax.annotation.Resource;
/**
* @description: ExtPurPlanExtExpendContractLink-ServiceImpl
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
@Slf4j
@Service(ExtPurPlanExtExpendContractLinkServiceImpl.BEAN_NAME)
public class ExtPurPlanExtExpendContractLinkServiceImpl<V extends ExtPurPlanExtExpendContractLinkVO> implements ExtPurPlanExtExpendContractLinkService<V>{
public static final String BEAN_NAME = "extPurPlanExtExpendContractLinkServiceImpl";
@Autowired
ExtPurPlanExtExpendContractLinkRepository<ExtPurPlanExtExpendContractLink> extPurPlanExtExpendContractLinkRepository;
}
package com.yonde.dcs.plan.core.service.shadow;
import com.yonde.dcs.plan.common.vo.ExtPurPlanExtExpendContractLinkVO;
import com.yonde.dcs.plan.feign.ExtPurPlanExtExpendContractLinkServiceFeign;
import com.yonde.dex.linkdata.plugin.core.service.DxLinkDataService;
import com.yonde.dex.dao.service.BaseIdEntityService;
/**
* @description: ExtPurPlanExtExpendContractLink-service
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
public interface ExtPurPlanExtExpendContractLinkServiceShadow<V extends ExtPurPlanExtExpendContractLinkVO> extends ExtPurPlanExtExpendContractLinkServiceFeign<V>, BaseIdEntityService<V> ,DxLinkDataService<V> {
}
package com.yonde.dcs.plan.entity.po;
import org.springframework.data.annotation.CreatedBy;
import javax.persistence.UniqueConstraint;
import java.util.Date;
import java.time.LocalDateTime;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.LastModifiedDate;
import com.yonde.dex.dao.entity.base.IdEntity;
import org.springframework.data.annotation.LastModifiedBy;
import javax.persistence.Column;
import org.springframework.data.annotation.CreatedDate;
import com.yonde.dex.basedata.entity.annotation.DexEmbedded;
import lombok.Data;
import com.yonde.dex.basedata.entity.annotation.*;
import java.math.BigInteger;
import javax.persistence.*;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.yonde.dex.dao.entity.base.IdEntity;
import javax.persistence.Column;
import com.yonde.dex.linkdata.plugin.entities.DxLinkDataHolder;
import com.yonde.dex.dao.entity.base.DxIdEntityEmbeddable;
import com.yonde.dex.dao.entity.base.IdOnlyEntity;
import com.yonde.dex.linkdata.plugin.entities.DxLinkDataEmbeddable;
/**
* @description: ExtPurPlanExtExpendContractLink-PO实体
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
@Entity
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Data
@Table(name = "EXT_PUR_PLAN_EXT_EXPEND_CONTRA")
public class ExtPurPlanExtExpendContractLink extends IdOnlyEntity implements IdEntity ,DxLinkDataHolder{
/**
* dao扩展对象
*/
@DexEmbedded()
@Embedded()
private DxIdEntityEmbeddable dxIdEmbeddable;
/**
* 扩展PO属性
*/
@DexEmbedded()
@Embedded()
private DxLinkDataEmbeddable dxLinkDataEmbeddable;
}
package com.yonde.dcs.plan.feign;
import com.yonde.dcs.plan.common.vo.ExtPurPlanExtExpendContractLinkVO;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import com.yonde.dcs.plan.feign.shadow.ExtPurPlanExtExpendContractLinkServiceFeignShadow;
/**
* @description: ExtPurPlanExtExpendContractLink-Feign
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
@Api(tags = "ExtPurPlanExtExpendContractLink-FEIGN")
@FeignClient(value = "${dcs.feign.INET-PLAN}", path = "/ExtPurPlanExtExpendContractLink")
public interface ExtPurPlanExtExpendContractLinkServiceFeign<V extends ExtPurPlanExtExpendContractLinkVO> extends ExtPurPlanExtExpendContractLinkServiceFeignShadow<V> {
}
package com.yonde.dcs.plan.feign.shadow;
import com.yonde.dcs.plan.common.vo.ExtPurPlanExtExpendContractLinkVO;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import com.yonde.dex.dao.service.remotes.BaseFeign;
import com.yonde.dex.linkdata.plugin.feign.DxLinkDataFeign;
/**
* @description: ExtPurPlanExtExpendContractLink-Feign
* @author: dexadmin
* @version: V
* @date: 2024-10-18 10:16:37
**/
public interface ExtPurPlanExtExpendContractLinkServiceFeignShadow<V extends ExtPurPlanExtExpendContractLinkVO> extends BaseFeign<V> ,DxLinkDataFeign<V> {
String BEAN_NAME = "extPurPlanExtExpendContractLinkServiceFeign";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment