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

xignzi006 发布系统代码

上级 5c236679
......@@ -192,14 +192,6 @@ public class Purchase_requisition_line extends EntityMP implements Serializable
@JSONField(name = "move_dest_id")
@JsonProperty("move_dest_id")
private Long moveDestId;
/**
* 计量单位类别
*/
@DEField(name = "product_uom_category_id")
@TableField(value = "product_uom_category_id")
@JSONField(name = "product_uom_category_id")
@JsonProperty("product_uom_category_id")
private Long productUomCategoryId;
/**
* 单位
*/
......@@ -237,13 +229,6 @@ public class Purchase_requisition_line extends EntityMP implements Serializable
@JSONField(name = "move_dest_name")
@JsonProperty("move_dest_name")
private String moveDestName;
/**
* 计量单位类别
*/
@TableField(exist = false)
@JSONField(name = "product_uom_category_name")
@JsonProperty("product_uom_category_name")
private String productUomCategoryName;
/**
* 单位
*/
......@@ -316,14 +301,6 @@ public class Purchase_requisition_line extends EntityMP implements Serializable
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_move movedest;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_uom.domain.Uom_category productuomcategory;
/**
*
*/
......@@ -476,14 +453,6 @@ public class Purchase_requisition_line extends EntityMP implements Serializable
this.modify("move_dest_id",moveDestId);
}
/**
* 设置 [计量单位类别]
*/
public void setProductUomCategoryId(Long productUomCategoryId){
this.productUomCategoryId = productUomCategoryId ;
this.modify("product_uom_category_id",productUomCategoryId);
}
/**
* 设置 [单位]
*/
......
......@@ -131,13 +131,6 @@ public class Purchase_requisition_lineSearchContext extends QueryWrapperContext<
if(!ObjectUtils.isEmpty(this.n_move_dest_id_eq)){
this.getSearchCond().eq("move_dest_id", n_move_dest_id_eq);
}
}
private Long n_product_uom_category_id_eq;//[计量单位类别]
public void setN_product_uom_category_id_eq(Long n_product_uom_category_id_eq) {
this.n_product_uom_category_id_eq = n_product_uom_category_id_eq;
if(!ObjectUtils.isEmpty(this.n_product_uom_category_id_eq)){
this.getSearchCond().eq("product_uom_category_id", n_product_uom_category_id_eq);
}
}
private Long n_product_uom_id_eq;//[单位]
public void setN_product_uom_id_eq(Long n_product_uom_id_eq) {
......@@ -194,20 +187,6 @@ public class Purchase_requisition_lineSearchContext extends QueryWrapperContext<
if(!ObjectUtils.isEmpty(this.n_move_dest_name_like)){
this.getSearchCond().like("move_dest_name", n_move_dest_name_like);
}
}
private String n_product_uom_category_name_eq;//[计量单位类别]
public void setN_product_uom_category_name_eq(String n_product_uom_category_name_eq) {
this.n_product_uom_category_name_eq = n_product_uom_category_name_eq;
if(!ObjectUtils.isEmpty(this.n_product_uom_category_name_eq)){
this.getSearchCond().eq("product_uom_category_name", n_product_uom_category_name_eq);
}
}
private String n_product_uom_category_name_like;//[计量单位类别]
public void setN_product_uom_category_name_like(String n_product_uom_category_name_like) {
this.n_product_uom_category_name_like = n_product_uom_category_name_like;
if(!ObjectUtils.isEmpty(this.n_product_uom_category_name_like)){
this.getSearchCond().like("product_uom_category_name", n_product_uom_category_name_like);
}
}
private String n_product_uom_name_eq;//[单位]
public void setN_product_uom_name_eq(String n_product_uom_name_eq) {
......
......@@ -76,8 +76,6 @@ public interface Purchase_requisition_lineMapper extends BaseMapper<Purchase_req
List<Purchase_requisition_line> selectByMoveDestId(@Param("id") Serializable id) ;
List<Purchase_requisition_line> selectByProductUomCategoryId(@Param("id") Serializable id) ;
List<Purchase_requisition_line> selectByProductUomId(@Param("id") Serializable id) ;
}
......@@ -52,8 +52,6 @@ public interface IPurchase_requisition_lineService extends IService<Purchase_req
void removeByWriteUid(Long id) ;
List<Purchase_requisition_line> selectByMoveDestId(Long id) ;
void removeByMoveDestId(Long id) ;
List<Purchase_requisition_line> selectByProductUomCategoryId(Long id) ;
void removeByProductUomCategoryId(Long id) ;
List<Purchase_requisition_line> selectByProductUomId(Long id) ;
void removeByProductUomId(Long id) ;
/**
......
......@@ -68,9 +68,6 @@ public class Purchase_requisition_lineServiceImpl extends ServiceImpl<Purchase_r
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_moveService stockMoveService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_uom.service.IUom_categoryService uomCategoryService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_uom.service.IUom_uomService uomUomService;
protected int batchSize = 500;
......@@ -249,16 +246,6 @@ public class Purchase_requisition_lineServiceImpl extends ServiceImpl<Purchase_r
this.remove(new QueryWrapper<Purchase_requisition_line>().eq("move_dest_id",id));
}
@Override
public List<Purchase_requisition_line> selectByProductUomCategoryId(Long id) {
return baseMapper.selectByProductUomCategoryId(id);
}
@Override
public void removeByProductUomCategoryId(Long id) {
this.remove(new QueryWrapper<Purchase_requisition_line>().eq("product_uom_category_id",id));
}
@Override
public List<Purchase_requisition_line> selectByProductUomId(Long id) {
return baseMapper.selectByProductUomId(id);
......@@ -356,16 +343,6 @@ public class Purchase_requisition_lineServiceImpl extends ServiceImpl<Purchase_r
}
et.setMoveDestName(movedest.getName());
}
//实体关系[DER1N_PURCHASE_REQUISITION_LINE_UOM_CATEGORY_PRODUCT_UOM_CATEGORY_ID]
if(!ObjectUtils.isEmpty(et.getProductUomCategoryId())){
cn.ibizlab.businesscentral.core.odoo_uom.domain.Uom_category productuomcategory=et.getProductuomcategory();
if(ObjectUtils.isEmpty(productuomcategory)){
cn.ibizlab.businesscentral.core.odoo_uom.domain.Uom_category majorEntity=uomCategoryService.get(et.getProductUomCategoryId());
et.setProductuomcategory(majorEntity);
productuomcategory=majorEntity;
}
et.setProductUomCategoryName(productuomcategory.getName());
}
//实体关系[DER1N_PURCHASE_REQUISITION_LINE_UOM_UOM_PRODUCT_UOM_ID]
if(!ObjectUtils.isEmpty(et.getProductUomId())){
cn.ibizlab.businesscentral.core.odoo_uom.domain.Uom_uom productuom=et.getProductuom();
......
......@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
@Service("Uom_categoryServiceImpl")
public class Uom_categoryServiceImpl extends ServiceImpl<Uom_categoryMapper, Uom_category> implements IUom_categoryService {
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_purchase.service.IPurchase_requisition_lineService purchaseRequisitionLineService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_uom.service.IUom_uomService uomUomService;
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Purchase_requisition_lineResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_CATEGORY_ID, t121.NAME AS PRODUCT_UOM_CATEGORY_NAME, t1.PRODUCT_UOM_ID, t131.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_CATEGORY t121 ON t1.PRODUCT_UOM_CATEGORY_ID = t121.ID LEFT JOIN UOM_UOM t131 ON t1.PRODUCT_UOM_ID = t131.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -28,13 +28,11 @@
<result property="productName" column="product_name" />
<result property="companyId" column="company_id" />
<result property="moveDestId" column="move_dest_id" />
<result property="productUomCategoryId" column="product_uom_category_id" />
<result property="productUomId" column="product_uom_id" />
<result property="accountAnalyticId" column="account_analytic_id" />
<result property="accountAnalyticName" column="account_analytic_name" />
<result property="companyName" column="company_name" />
<result property="moveDestName" column="move_dest_name" />
<result property="productUomCategoryName" column="product_uom_category_name" />
<result property="productUomName" column="product_uom_name" />
<result property="LastUpdate" column="__last_update" />
......@@ -54,8 +52,6 @@
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="movedest" javaType="cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_move" column="move_dest_id" select="cn.ibizlab.businesscentral.core.odoo_stock.mapper.Stock_moveMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="productuomcategory" javaType="cn.ibizlab.businesscentral.core.odoo_uom.domain.Uom_category" column="product_uom_category_id" select="cn.ibizlab.businesscentral.core.odoo_uom.mapper.Uom_categoryMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="productuom" javaType="cn.ibizlab.businesscentral.core.odoo_uom.domain.Uom_uom" column="product_uom_id" select="cn.ibizlab.businesscentral.core.odoo_uom.mapper.Uom_uomMapper.selectById" fetchType="lazy"></association>
</resultMap>
......@@ -107,13 +103,6 @@
<include refid="Default" />
) t1
where move_dest_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PURCHASE_REQUISITION_LINE_UOM_CATEGORY_PRODUCT_UOM_CATEGORY_ID] -->
<select id="selectByProductUomCategoryId" resultMap="Purchase_requisition_lineResultMap">
select t1.* from (
<include refid="Default" />
) t1
where product_uom_category_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_PURCHASE_REQUISITION_LINE_UOM_UOM_PRODUCT_UOM_ID] -->
<select id="selectByProductUomId" resultMap="Purchase_requisition_lineResultMap">
......@@ -134,12 +123,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_CATEGORY_ID, t121.NAME AS PRODUCT_UOM_CATEGORY_NAME, t1.PRODUCT_UOM_ID, t131.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_CATEGORY t121 ON t1.PRODUCT_UOM_CATEGORY_ID = t121.ID LEFT JOIN UOM_UOM t131 ON t1.PRODUCT_UOM_ID = t131.ID
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_CATEGORY_ID, t121.NAME AS PRODUCT_UOM_CATEGORY_NAME, t1.PRODUCT_UOM_ID, t131.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_CATEGORY t121 ON t1.PRODUCT_UOM_CATEGORY_ID = t121.ID LEFT JOIN UOM_UOM t131 ON t1.PRODUCT_UOM_ID = t131.ID
<![CDATA[ SELECT t1.ACCOUNT_ANALYTIC_ID, t81.NAME AS ACCOUNT_ANALYTIC_NAME, t1.COMPANY_ID, t101.NAME AS COMPANY_NAME, t1.CREATE_DATE, t1.CREATE_UID, t21.NAME AS CREATE_UNAME, t1.DISPLAY_NAME, t1.ID, t1.MOVE_DEST_ID, t111.NAME AS MOVE_DEST_NAME, t1.NAME, t1.PRICE_UNIT, t1.PRODUCT_ID, t71.NAME AS PRODUCT_NAME, t1.PRODUCT_QTY, t1.PRODUCT_UOM_ID, t121.NAME AS PRODUCT_UOM_NAME, t1.QTY_ORDERED, t1.REQUISITION_ID, t51.NAME AS REQUISITION_NAME, t1.SCHEDULE_DATE, t1.WRITE_DATE, t1.WRITE_UID, t41.NAME AS WRITE_UNAME FROM PURCHASE_REQUISITION_LINE t1 LEFT JOIN RES_USERS t11 ON t1.CREATE_UID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN RES_USERS t31 ON t1.WRITE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN PURCHASE_REQUISITION t51 ON t1.REQUISITION_ID = t51.ID LEFT JOIN PRODUCT_PRODUCT t61 ON t1.PRODUCT_ID = t61.ID LEFT JOIN PRODUCT_TEMPLATE t71 ON t61.PRODUCT_TMPL_ID = t71.ID LEFT JOIN ACCOUNT_ANALYTIC_ACCOUNT t81 ON t1.ACCOUNT_ANALYTIC_ID = t81.ID LEFT JOIN RES_COMPANY t91 ON t1.COMPANY_ID = t91.ID LEFT JOIN RES_PARTNER t101 ON t91.PARTNER_ID = t101.ID LEFT JOIN STOCK_MOVE t111 ON t1.MOVE_DEST_ID = t111.ID LEFT JOIN UOM_UOM t121 ON t1.PRODUCT_UOM_ID = t121.ID
]]>
</sql>
</mapper>
......
......@@ -124286,22 +124286,6 @@
"major_field":0
},
{
"fieldname":"PRODUCT_UOM_CATEGORY_ID" ,
"codename":"Product_uom_category_id",
"field_logic_name":"计量单位类别",
"entity_name":"Purchase_requisition_line",
"ref_de":"UOM_CATEGORY",
"ref_field_name":"ID",
"relation_name":"DER1N_PURCHASE_REQUISITION_LINE_UOM_CATEGORY_PRODUCT_UOM_CATEGORY_ID",
"relation_codename":"ProductUomCategory",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"major_field":0
},
{
"fieldname":"PRODUCT_UOM_ID" ,
"codename":"Product_uom_id",
"field_logic_name":"单位",
......@@ -124385,23 +124369,6 @@
"major_field":0
},
{
"fieldname":"PRODUCT_UOM_CATEGORY_NAME" ,
"codename":"Product_uom_category_name",
"field_logic_name":"计量单位类别",
"entity_name":"Purchase_requisition_line",
"ref_de":"UOM_CATEGORY",
"ref_field_name":"NAME",
"relation_name":"DER1N_PURCHASE_REQUISITION_LINE_UOM_CATEGORY_PRODUCT_UOM_CATEGORY_ID",
"relation_codename":"ProductUomCategory",
"field_type":"PICKUPTEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"major_field":0
},
{
"fieldname":"PRODUCT_UOM_NAME" ,
"codename":"Product_uom_name",
"field_logic_name":"单位",
......@@ -124476,12 +124443,6 @@
"entity_name":"PURCHASE_REQUISITION_LINE",
"ref_entity_name":"STOCK_MOVE"
},
{"name":"DER1N_PURCHASE_REQUISITION_LINE_UOM_CATEGORY_PRODUCT_UOM_CATEGORY_ID",
"relation_type":"DER1N",
"code_name":"ProductUomCategory",
"entity_name":"PURCHASE_REQUISITION_LINE",
"ref_entity_name":"UOM_CATEGORY"
},
{"name":"DER1N_PURCHASE_REQUISITION_LINE_UOM_UOM_PRODUCT_UOM_ID",
"relation_type":"DER1N",
"code_name":"ProductUom",
......@@ -177826,12 +177787,6 @@
}
],
"subEntitys":[
{"name":"DER1N_PURCHASE_REQUISITION_LINE_UOM_CATEGORY_PRODUCT_UOM_CATEGORY_ID",
"relation_type":"DER1N",
"code_name":"ProductUomCategory",
"entity_name":"PURCHASE_REQUISITION_LINE",
"ref_entity_name":"UOM_CATEGORY"
},
{"name":"DER1N_UOM_UOM__UOM_CATEGORY__CATEGORY_ID",
"relation_type":"DER1N",
"code_name":"Odoo_category",
......@@ -198,15 +198,6 @@ public class Purchase_requisition_lineDTO extends DTOBase implements Serializabl
@JsonSerialize(using = ToStringSerializer.class)
private Long moveDestId;
/**
* 属性 [PRODUCT_UOM_CATEGORY_ID]
*
*/
@JSONField(name = "product_uom_category_id")
@JsonProperty("product_uom_category_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long productUomCategoryId;
/**
* 属性 [PRODUCT_UOM_ID]
*
......@@ -252,15 +243,6 @@ public class Purchase_requisition_lineDTO extends DTOBase implements Serializabl
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String moveDestName;
/**
* 属性 [PRODUCT_UOM_CATEGORY_NAME]
*
*/
@JSONField(name = "product_uom_category_name")
@JsonProperty("product_uom_category_name")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String productUomCategoryName;
/**
* 属性 [PRODUCT_UOM_NAME]
*
......@@ -392,14 +374,6 @@ public class Purchase_requisition_lineDTO extends DTOBase implements Serializabl
this.modify("move_dest_id",moveDestId);
}
/**
* 设置 [PRODUCT_UOM_CATEGORY_ID]
*/
public void setProductUomCategoryId(Long productUomCategoryId){
this.productUomCategoryId = productUomCategoryId ;
this.modify("product_uom_category_id",productUomCategoryId);
}
/**
* 设置 [PRODUCT_UOM_ID]
*/
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册