提交 57cddbb3 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 a47f68bb
...@@ -264,6 +264,22 @@ public class Product_supplierinfo extends EntityMP implements Serializable { ...@@ -264,6 +264,22 @@ public class Product_supplierinfo extends EntityMP implements Serializable {
@JSONField(name = "name_text") @JSONField(name = "name_text")
@JsonProperty("name_text") @JsonProperty("name_text")
private String nameText; private String nameText;
/**
* ID
*/
@DEField(name = "purchase_requisition_line_id")
@TableField(value = "purchase_requisition_line_id")
@JSONField(name = "purchase_requisition_line_id")
@JsonProperty("purchase_requisition_line_id")
private Long purchaseRequisitionLineId;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_purchase.domain.Purchase_requisition_line odooPurchaseRequisitionLine;
/** /**
* *
...@@ -447,6 +463,14 @@ public class Product_supplierinfo extends EntityMP implements Serializable { ...@@ -447,6 +463,14 @@ public class Product_supplierinfo extends EntityMP implements Serializable {
this.modify("name",name); this.modify("name",name);
} }
/**
* 设置 [ID]
*/
public void setPurchaseRequisitionLineId(Long purchaseRequisitionLineId){
this.purchaseRequisitionLineId = purchaseRequisitionLineId ;
this.modify("purchase_requisition_line_id",purchaseRequisitionLineId);
}
@Override @Override
public Serializable getDefaultKey(boolean gen) { public Serializable getDefaultKey(boolean gen) {
......
...@@ -174,6 +174,13 @@ public class Product_supplierinfoSearchContext extends QueryWrapperContext<Produ ...@@ -174,6 +174,13 @@ public class Product_supplierinfoSearchContext extends QueryWrapperContext<Produ
this.getSearchCond().like("name_text", n_name_text_like); this.getSearchCond().like("name_text", n_name_text_like);
} }
} }
private Long n_purchase_requisition_line_id_eq;//[ID]
public void setN_purchase_requisition_line_id_eq(Long n_purchase_requisition_line_id_eq) {
this.n_purchase_requisition_line_id_eq = n_purchase_requisition_line_id_eq;
if(!ObjectUtils.isEmpty(this.n_purchase_requisition_line_id_eq)){
this.getSearchCond().eq("purchase_requisition_line_id", n_purchase_requisition_line_id_eq);
}
}
/** /**
* 启用快速搜索 * 启用快速搜索
......
...@@ -62,6 +62,8 @@ public interface Product_supplierinfoMapper extends BaseMapper<Product_supplieri ...@@ -62,6 +62,8 @@ public interface Product_supplierinfoMapper extends BaseMapper<Product_supplieri
@Delete("${sql}") @Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param); boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<Product_supplierinfo> selectByPurchaseRequisitionLineId(@Param("id") Serializable id) ;
List<Product_supplierinfo> selectByName(@Param("id") Serializable id) ; List<Product_supplierinfo> selectByName(@Param("id") Serializable id) ;
List<Product_supplierinfo> selectByProductId(@Param("id") Serializable id) ; List<Product_supplierinfo> selectByProductId(@Param("id") Serializable id) ;
......
...@@ -38,6 +38,8 @@ public interface IProduct_supplierinfoService extends IService<Product_supplieri ...@@ -38,6 +38,8 @@ public interface IProduct_supplierinfoService extends IService<Product_supplieri
boolean save(Product_supplierinfo et) ; boolean save(Product_supplierinfo et) ;
void saveBatch(List<Product_supplierinfo> list) ; void saveBatch(List<Product_supplierinfo> list) ;
Page<Product_supplierinfo> searchDefault(Product_supplierinfoSearchContext context) ; Page<Product_supplierinfo> searchDefault(Product_supplierinfoSearchContext context) ;
List<Product_supplierinfo> selectByPurchaseRequisitionLineId(Long id) ;
void removeByPurchaseRequisitionLineId(Long id) ;
List<Product_supplierinfo> selectByName(Long id) ; List<Product_supplierinfo> selectByName(Long id) ;
void removeByName(Long id) ; void removeByName(Long id) ;
List<Product_supplierinfo> selectByProductId(Long id) ; List<Product_supplierinfo> selectByProductId(Long id) ;
......
...@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils; ...@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils;
@Service("Product_supplierinfoServiceImpl") @Service("Product_supplierinfoServiceImpl")
public class Product_supplierinfoServiceImpl extends ServiceImpl<Product_supplierinfoMapper, Product_supplierinfo> implements IProduct_supplierinfoService { public class Product_supplierinfoServiceImpl extends ServiceImpl<Product_supplierinfoMapper, Product_supplierinfo> implements IProduct_supplierinfoService {
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_purchase.service.IPurchase_requisition_lineService purchaseRequisitionLineService;
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_base.service.IRes_supplierService resSupplierService; protected cn.ibizlab.businesscentral.core.odoo_base.service.IRes_supplierService resSupplierService;
...@@ -173,6 +176,16 @@ public class Product_supplierinfoServiceImpl extends ServiceImpl<Product_supplie ...@@ -173,6 +176,16 @@ public class Product_supplierinfoServiceImpl extends ServiceImpl<Product_supplie
} }
@Override
public List<Product_supplierinfo> selectByPurchaseRequisitionLineId(Long id) {
return baseMapper.selectByPurchaseRequisitionLineId(id);
}
@Override
public void removeByPurchaseRequisitionLineId(Long id) {
this.remove(new QueryWrapper<Product_supplierinfo>().eq("purchase_requisition_line_id",id));
}
@Override @Override
public List<Product_supplierinfo> selectByName(Long id) { public List<Product_supplierinfo> selectByName(Long id) {
return baseMapper.selectByName(id); return baseMapper.selectByName(id);
......
...@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils; ...@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils;
@Service("Purchase_requisition_lineServiceImpl") @Service("Purchase_requisition_lineServiceImpl")
public class Purchase_requisition_lineServiceImpl extends ServiceImpl<Purchase_requisition_lineMapper, Purchase_requisition_line> implements IPurchase_requisition_lineService { public class Purchase_requisition_lineServiceImpl extends ServiceImpl<Purchase_requisition_lineMapper, Purchase_requisition_line> implements IPurchase_requisition_lineService {
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_supplierinfoService productSupplierinfoService;
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_account.service.IAccount_analytic_accountService accountAnalyticAccountService; protected cn.ibizlab.businesscentral.core.odoo_account.service.IAccount_analytic_accountService accountAnalyticAccountService;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Product_supplierinfoResultMap" databaseId="postgresql"> <select id="selectById" resultMap="Product_supplierinfoResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t1.NAME = t111.ID ) t1 where id=#{id}]]> <![CDATA[select t1.* from (SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.PURCHASE_REQUISITION_LINE_ID, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t1.NAME = t111.ID ) t1 where id=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -36,8 +36,11 @@ ...@@ -36,8 +36,11 @@
<result property="writeUid" column="write_uid" /> <result property="writeUid" column="write_uid" />
<result property="name" column="name" /> <result property="name" column="name" />
<result property="nameText" column="name_text" /> <result property="nameText" column="name_text" />
<result property="purchaseRequisitionLineId" column="purchase_requisition_line_id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooPurchaseRequisitionLine" javaType="cn.ibizlab.businesscentral.core.odoo_purchase.domain.Purchase_requisition_line" column="purchase_requisition_line_id" select="cn.ibizlab.businesscentral.core.odoo_purchase.mapper.Purchase_requisition_lineMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooName" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_supplier" column="name" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_supplierMapper.selectById" fetchType="lazy"></association> <association property="odooName" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_supplier" column="name" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_supplierMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
...@@ -54,6 +57,13 @@ ...@@ -54,6 +57,13 @@
<association property="odooWrite" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users" column="write_uid" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_usersMapper.selectById" fetchType="lazy"></association> <association property="odooWrite" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users" column="write_uid" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_usersMapper.selectById" fetchType="lazy"></association>
</resultMap> </resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PRODUCT_SUPPLIERINFO_PURCHASE_REQUISITION_LINE_PURCHASE_REQUISITION_LINE_ID] -->
<select id="selectByPurchaseRequisitionLineId" resultMap="Product_supplierinfoResultMap">
select t1.* from (
<include refid="Default" />
) t1
where purchase_requisition_line_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PRODUCT_SUPPLIERINFO_RES_SUPPLIER_NAME] --> <!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PRODUCT_SUPPLIERINFO_RES_SUPPLIER_NAME] -->
<select id="selectByName" resultMap="Product_supplierinfoResultMap"> <select id="selectByName" resultMap="Product_supplierinfoResultMap">
select t1.* from ( select t1.* from (
...@@ -115,12 +125,12 @@ ...@@ -115,12 +125,12 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql"> <sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t1.NAME = t111.ID <![CDATA[ SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.PURCHASE_REQUISITION_LINE_ID, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t1.NAME = t111.ID
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="postgresql"> <sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t1.NAME = t111.ID <![CDATA[ SELECT t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t11.NAME AS CURRENCY_ID_TEXT, t1.DATE_END, t1.DATE_START, t1.DELAY, t1.ID, t1.MIN_QTY, t1.NAME, t111.NAME AS NAME_TEXT, t1.PRICE, t1.PRODUCT_CODE, t1.PRODUCT_ID, t81.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_NAME, t1.PRODUCT_TMPL_ID, t21.NAME AS PRODUCT_TMPL_ID_TEXT, t21.UOM_PO_ID AS PRODUCT_UOM, t1.PURCHASE_REQUISITION_LINE_ID, t1.SEQUENCE, t1.WRITE_DATE, t1.WRITE_UID, t101.NAME AS WRITE_UID_TEXT FROM PRODUCT_SUPPLIERINFO t1 LEFT JOIN RES_CURRENCY t11 ON t1.CURRENCY_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t1.PRODUCT_TMPL_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.CREATE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN RES_USERS t91 ON t1.WRITE_UID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t1.NAME = t111.ID
]]> ]]>
</sql> </sql>
</mapper> </mapper>
......
...@@ -115404,11 +115404,34 @@ ...@@ -115404,11 +115404,34 @@
"data_length":100, "data_length":100,
"key_field":0, "key_field":0,
"major_field":1 "major_field":1
},
{
"fieldname":"PURCHASE_REQUISITION_LINE_ID" ,
"codename":"Purchase_requisition_line_id",
"field_logic_name":"ID",
"entity_name":"Product_supplierinfo",
"ref_de":"PURCHASE_REQUISITION_LINE",
"ref_field_name":"ID",
"relation_name":"DER1N_PRODUCT_SUPPLIERINFO_PURCHASE_REQUISITION_LINE_PURCHASE_REQUISITION_LINE_ID",
"relation_codename":"Odoo_purchase_requisition_line",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"data_length":20,
"key_field":0,
"major_field":0
} }
], ],
"subEntitys":[ "subEntitys":[
], ],
"parentEntitys":[ "parentEntitys":[
{"name":"DER1N_PRODUCT_SUPPLIERINFO_PURCHASE_REQUISITION_LINE_PURCHASE_REQUISITION_LINE_ID",
"relation_type":"DER1N",
"code_name":"Odoo_purchase_requisition_line",
"entity_name":"PRODUCT_SUPPLIERINFO",
"ref_entity_name":"PURCHASE_REQUISITION_LINE"
},
{"name":"DER1N_PRODUCT_SUPPLIERINFO_RES_SUPPLIER_NAME", {"name":"DER1N_PRODUCT_SUPPLIERINFO_RES_SUPPLIER_NAME",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"Odoo_name", "code_name":"Odoo_name",
...@@ -124977,6 +125000,12 @@ ...@@ -124977,6 +125000,12 @@
} }
], ],
"subEntitys":[ "subEntitys":[
{"name":"DER1N_PRODUCT_SUPPLIERINFO_PURCHASE_REQUISITION_LINE_PURCHASE_REQUISITION_LINE_ID",
"relation_type":"DER1N",
"code_name":"Odoo_purchase_requisition_line",
"entity_name":"PRODUCT_SUPPLIERINFO",
"ref_entity_name":"PURCHASE_REQUISITION_LINE"
}
], ],
"parentEntitys":[ "parentEntitys":[
{"name":"DER1N_PURCHASE_REQUISITION_LINE_ACCOUNT_ANALYTIC_ACCOUNT_ACCOUNT_ANALYTIC_ID", {"name":"DER1N_PURCHASE_REQUISITION_LINE_ACCOUNT_ANALYTIC_ACCOUNT_ACCOUNT_ANALYTIC_ID",
...@@ -289,6 +289,15 @@ public class Product_supplierinfoDTO extends DTOBase implements Serializable { ...@@ -289,6 +289,15 @@ public class Product_supplierinfoDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String nameText; private String nameText;
/**
* 属性 [PURCHASE_REQUISITION_LINE_ID]
*
*/
@JSONField(name = "purchase_requisition_line_id")
@JsonProperty("purchase_requisition_line_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long purchaseRequisitionLineId;
/** /**
* 设置 [PRODUCT_CODE] * 设置 [PRODUCT_CODE]
...@@ -394,6 +403,14 @@ public class Product_supplierinfoDTO extends DTOBase implements Serializable { ...@@ -394,6 +403,14 @@ public class Product_supplierinfoDTO extends DTOBase implements Serializable {
this.modify("name",name); this.modify("name",name);
} }
/**
* 设置 [PURCHASE_REQUISITION_LINE_ID]
*/
public void setPurchaseRequisitionLineId(Long purchaseRequisitionLineId){
this.purchaseRequisitionLineId = purchaseRequisitionLineId ;
this.modify("purchase_requisition_line_id",purchaseRequisitionLineId);
}
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册