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

xignzi006 发布系统代码,后台体系[Spring Boot]

上级 5e8521f0
......@@ -646,13 +646,6 @@ public class Product_template extends EntityMP implements Serializable {
@JSONField(name = "item_ids")
@JsonProperty("item_ids")
private String itemIds;
/**
* 进项税
*/
@TableField(exist = false)
@JSONField(name = "supplier_taxes_id")
@JsonProperty("supplier_taxes_id")
private String supplierTaxesId;
/**
* 体积
*/
......@@ -868,13 +861,6 @@ public class Product_template extends EntityMP implements Serializable {
@JSONField(name = "bom_count")
@JsonProperty("bom_count")
private Integer bomCount;
/**
* 销项税
*/
@TableField(exist = false)
@JSONField(name = "taxes_id")
@JsonProperty("taxes_id")
private String taxesId;
/**
* 错误数
*/
......@@ -1237,6 +1223,22 @@ public class Product_template extends EntityMP implements Serializable {
@JsonProperty("uom_po_id")
private Long uomPoId;
/**
* 进项税
*/
@TableField(exist = false)
@JSONField(name = "supplier_taxes_id")
@JsonProperty("supplier_taxes_id")
private String supplierTaxesId;
/**
* 销项税
*/
@TableField(exist = false)
@JSONField(name = "taxes_id")
@JsonProperty("taxes_id")
private String taxesId;
/**
*
*/
......@@ -1719,6 +1721,22 @@ public class Product_template extends EntityMP implements Serializable {
this.modify("uom_po_id",uomPoId);
}
/**
* 设置 [进项税]
*/
public void setSupplierTaxesId(String supplierTaxesId){
this.supplierTaxesId = supplierTaxesId ;
this.modify("supplier_taxes_id",supplierTaxesId);
}
/**
* 设置 [销项税]
*/
public void setTaxesId(String taxesId){
this.taxesId = taxesId ;
this.modify("taxes_id",taxesId);
}
@Override
public Serializable getDefaultKey(boolean gen) {
......
......@@ -75,4 +75,10 @@ public interface Product_templateMapper extends BaseMapper<Product_template>{
List<Product_template> selectByUomPoId(@Param("id") Serializable id) ;
boolean saveRelByOdooProd(@Param("prod_id") Long prod_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> account_taxes);
boolean saveRelByOdooProd(@Param("prod_id") Long prod_id, List<cn.ibizlab.businesscentral.util.domain.MultiSelectItem> account_taxes);
}
......@@ -126,6 +126,10 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
@Override
@Transactional
public boolean create(Product_template et) {
String supplier_taxes_id = et.getSupplierTaxesId() ;
String taxes_id = et.getTaxesId() ;
boolean mail_create_nosubscribe = et.get("mail_create_nosubscribe") != null;
boolean mail_create_nolog = et.get("mail_create_nolog") != null;
boolean mail_notrack = et.get("mail_notrack") != null;
......@@ -145,6 +149,14 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
if (messageinfo && !mail_notrack) {
}
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getSupplierTaxesId())){
this.baseMapper.saveRelByOdooProd(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(supplier_taxes_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
this.baseMapper.saveRelByOdooProd(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(taxes_id, cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
return true;
}
......@@ -158,6 +170,20 @@ public class Product_templateServiceImpl extends EBSServiceImpl<Product_template
@Override
@Transactional
public boolean update(Product_template et) {
if(et.getFocusNull().contains("supplier_taxes_id") || org.apache.commons.lang3.StringUtils.isNotBlank(et.getSupplierTaxesId())){
productSupplierTaxesRelService.removeByProdId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getSupplierTaxesId())){
this.baseMapper.saveRelByOdooProd(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getSupplierTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
}
if(et.getFocusNull().contains("taxes_id") || org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
productTaxesRelService.removeByProdId(et.getId());
if(org.apache.commons.lang3.StringUtils.isNotBlank(et.getTaxesId())){
this.baseMapper.saveRelByOdooProd(et.getId() , com.alibaba.fastjson.JSONArray.parseArray(et.getTaxesId(), cn.ibizlab.businesscentral.util.domain.MultiSelectItem.class));
}
}
Product_template old = new Product_template() ;
CachedBeanCopier.copy(get(et.getId()), old);
boolean mail_notrack = et.get("mail_notrack") != null;
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Product_templateResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.AVAILABLE_IN_POS, t1.AVAILABLE_THRESHOLD, t1.CAN_BE_EXPENSED, t1.CATEG_ID, t71.NAME AS CATEG_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CUSTOM_MESSAGE, t1.DEFAULT_CODE, t1.DESCRIPTION, t1.DESCRIPTION_PICKING, t1.DESCRIPTION_PICKINGIN, t1.DESCRIPTION_PICKINGOUT, t1.DESCRIPTION_PURCHASE, t1.DESCRIPTION_SALE, t1.EVENT_OK, t1.EXPENSE_POLICY, t1.ID, t1.INVENTORY_AVAILABILITY, t1.INVOICE_POLICY, t1.IS_PUBLISHED, t1.LIST_PRICE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.POS_CATEG_ID, t1.PRODUCE_DELAY, t1.PURCHASE_LINE_WARN, t1.PURCHASE_LINE_WARN_MSG, t1.PURCHASE_METHOD, t1.PURCHASE_OK, t1.RATING_LAST_VALUE, t1.RENTAL, t1.SALE_DELAY, t1.SALE_LINE_WARN, t1.SALE_LINE_WARN_MSG, t1.SALE_OK, t1.SEQUENCE, t1.SERVICE_TO_PURCHASE, t1.SERVICE_TYPE, t1.TO_WEIGHT, t1.TRACKING, t1.TYPE, t1.UOM_ID, t41.NAME AS UOM_NAME, t1.UOM_PO_ID, t31.NAME AS UOM_PO_ID_TEXT, t1.VOLUME, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WEBSITE_SEQUENCE, t1.WEBSITE_SIZE_X, t1.WEBSITE_SIZE_Y, t1.WEIGHT, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM PRODUCT_TEMPLATE t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN UOM_UOM t31 ON t1.UOM_PO_ID = t31.ID LEFT JOIN UOM_UOM t41 ON t1.UOM_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_CATEGORY t71 ON t1.CATEG_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.AVAILABLE_IN_POS, t1.AVAILABLE_THRESHOLD, t1.CAN_BE_EXPENSED, t1.CATEG_ID, t71.NAME AS CATEG_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CUSTOM_MESSAGE, t1.DEFAULT_CODE, t1.DESCRIPTION, t1.DESCRIPTION_PICKING, t1.DESCRIPTION_PICKINGIN, t1.DESCRIPTION_PICKINGOUT, t1.DESCRIPTION_PURCHASE, t1.DESCRIPTION_SALE, t1.EVENT_OK, t1.EXPENSE_POLICY, t1.ID, t1.INVENTORY_AVAILABILITY, t1.INVOICE_POLICY, t1.IS_PUBLISHED, t1.LIST_PRICE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.POS_CATEG_ID, t1.PRODUCE_DELAY, t1.PURCHASE_LINE_WARN, t1.PURCHASE_LINE_WARN_MSG, t1.PURCHASE_METHOD, t1.PURCHASE_OK, t1.RATING_LAST_VALUE, t1.RENTAL, t1.SALE_DELAY, t1.SALE_LINE_WARN, t1.SALE_LINE_WARN_MSG, t1.SALE_OK, t1.SEQUENCE, t1.SERVICE_TO_PURCHASE, t1.SERVICE_TYPE, (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM PRODUCT_SUPPLIER_TAXES_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.TAX_ID = M2.ID WHERE M1.PROD_ID =T1.ID ) T) AS SUPPLIER_TAXES_ID, (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM PRODUCT_TAXES_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.TAX_ID = M2.ID WHERE M1.PROD_ID =T1.ID ) T) AS TAXES_ID, t1.TO_WEIGHT, t1.TRACKING, t1.TYPE, t1.UOM_ID, t41.NAME AS UOM_NAME, t1.UOM_PO_ID, t31.NAME AS UOM_PO_ID_TEXT, t1.VOLUME, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WEBSITE_SEQUENCE, t1.WEBSITE_SIZE_X, t1.WEBSITE_SIZE_Y, t1.WEIGHT, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM PRODUCT_TEMPLATE t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN UOM_UOM t31 ON t1.UOM_PO_ID = t31.ID LEFT JOIN UOM_UOM t41 ON t1.UOM_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_CATEGORY t71 ON t1.CATEG_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -87,7 +87,6 @@
<result property="toWeight" column="to_weight" />
<result property="validProductAttributeValueWnvaIds" column="valid_product_attribute_value_wnva_ids" />
<result property="itemIds" column="item_ids" />
<result property="supplierTaxesId" column="supplier_taxes_id" />
<result property="propertyStockProduction" column="property_stock_production" />
<result property="activityUserId" column="activity_user_id" />
<result property="propertyStockInventory" column="property_stock_inventory" />
......@@ -112,7 +111,6 @@
<result property="purchaseMethod" column="purchase_method" />
<result property="produceDelay" column="produce_delay" />
<result property="bomCount" column="bom_count" />
<result property="taxesId" column="taxes_id" />
<result property="messageHasErrorCounter" column="message_has_error_counter" />
<result property="canBeExpensed" column="can_be_expensed" />
<result property="saleOk" column="sale_ok" />
......@@ -159,6 +157,8 @@
<result property="writeUid" column="write_uid" />
<result property="uomId" column="uom_id" />
<result property="uomPoId" column="uom_po_id" />
<result property="supplierTaxesId" column="supplier_taxes_id" />
<result property="taxesId" column="taxes_id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
......@@ -234,9 +234,31 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.AVAILABLE_IN_POS, t1.AVAILABLE_THRESHOLD, t1.CAN_BE_EXPENSED, t1.CATEG_ID, t71.NAME AS CATEG_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CUSTOM_MESSAGE, t1.DEFAULT_CODE, t1.DESCRIPTION, t1.DESCRIPTION_PICKING, t1.DESCRIPTION_PICKINGIN, t1.DESCRIPTION_PICKINGOUT, t1.DESCRIPTION_PURCHASE, t1.DESCRIPTION_SALE, t1.EVENT_OK, t1.EXPENSE_POLICY, t1.ID, t1.INVENTORY_AVAILABILITY, t1.INVOICE_POLICY, t1.IS_PUBLISHED, t1.LIST_PRICE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.POS_CATEG_ID, t1.PRODUCE_DELAY, t1.PURCHASE_LINE_WARN, t1.PURCHASE_LINE_WARN_MSG, t1.PURCHASE_METHOD, t1.PURCHASE_OK, t1.RATING_LAST_VALUE, t1.RENTAL, t1.SALE_DELAY, t1.SALE_LINE_WARN, t1.SALE_LINE_WARN_MSG, t1.SALE_OK, t1.SEQUENCE, t1.SERVICE_TO_PURCHASE, t1.SERVICE_TYPE, t1.TO_WEIGHT, t1.TRACKING, t1.TYPE, t1.UOM_ID, t41.NAME AS UOM_NAME, t1.UOM_PO_ID, t31.NAME AS UOM_PO_ID_TEXT, t1.VOLUME, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WEBSITE_SEQUENCE, t1.WEBSITE_SIZE_X, t1.WEBSITE_SIZE_Y, t1.WEIGHT, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM PRODUCT_TEMPLATE t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN UOM_UOM t31 ON t1.UOM_PO_ID = t31.ID LEFT JOIN UOM_UOM t41 ON t1.UOM_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_CATEGORY t71 ON t1.CATEG_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
<![CDATA[ SELECT t1.ACTIVE, t1.AVAILABLE_IN_POS, t1.AVAILABLE_THRESHOLD, t1.CAN_BE_EXPENSED, t1.CATEG_ID, t71.NAME AS CATEG_ID_TEXT, t1.COLOR, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t61.NAME AS CREATE_UID_TEXT, t1.CUSTOM_MESSAGE, t1.DEFAULT_CODE, t1.DESCRIPTION, t1.DESCRIPTION_PICKING, t1.DESCRIPTION_PICKINGIN, t1.DESCRIPTION_PICKINGOUT, t1.DESCRIPTION_PURCHASE, t1.DESCRIPTION_SALE, t1.EVENT_OK, t1.EXPENSE_POLICY, t1.ID, t1.INVENTORY_AVAILABILITY, t1.INVOICE_POLICY, t1.IS_PUBLISHED, t1.LIST_PRICE, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.POS_CATEG_ID, t1.PRODUCE_DELAY, t1.PURCHASE_LINE_WARN, t1.PURCHASE_LINE_WARN_MSG, t1.PURCHASE_METHOD, t1.PURCHASE_OK, t1.RATING_LAST_VALUE, t1.RENTAL, t1.SALE_DELAY, t1.SALE_LINE_WARN, t1.SALE_LINE_WARN_MSG, t1.SALE_OK, t1.SEQUENCE, t1.SERVICE_TO_PURCHASE, t1.SERVICE_TYPE, (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM PRODUCT_SUPPLIER_TAXES_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.TAX_ID = M2.ID WHERE M1.PROD_ID =T1.ID ) T) AS SUPPLIER_TAXES_ID, (SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM PRODUCT_TAXES_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.TAX_ID = M2.ID WHERE M1.PROD_ID =T1.ID ) T) AS TAXES_ID, t1.TO_WEIGHT, t1.TRACKING, t1.TYPE, t1.UOM_ID, t41.NAME AS UOM_NAME, t1.UOM_PO_ID, t31.NAME AS UOM_PO_ID_TEXT, t1.VOLUME, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WEBSITE_SEQUENCE, t1.WEBSITE_SIZE_X, t1.WEBSITE_SIZE_Y, t1.WEIGHT, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM PRODUCT_TEMPLATE t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARTNER_ID = t21.ID LEFT JOIN UOM_UOM t31 ON t1.UOM_PO_ID = t31.ID LEFT JOIN UOM_UOM t41 ON t1.UOM_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_CATEGORY t71 ON t1.CATEG_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID
]]>
</sql>
<insert id="saveRelByOdooProd" parameterType="map">
INSERT INTO PRODUCT_SUPPLIER_TAXES_REL(
PROD_ID,TAX_ID
)values
<foreach collection="account_taxes" item="item" separator=",">
(${prod_id},#{item.srfkey})
</foreach>
ON CONFLICT (PROD_ID,TAX_ID)
DO NOTHING;
</insert>
<insert id="saveRelByOdooProd" parameterType="map">
INSERT INTO PRODUCT_TAXES_REL(
PROD_ID,TAX_ID
)values
<foreach collection="account_taxes" item="item" separator=",">
(${prod_id},#{item.srfkey})
</foreach>
ON CONFLICT (PROD_ID,TAX_ID)
DO NOTHING;
</insert>
</mapper>
......@@ -124731,20 +124731,6 @@
"major_field":0
},
{
"fieldname":"SUPPLIER_TAXES_ID" ,
"codename":"Supplier_taxes_id",
"field_logic_name":"进项税",
"entity_name":"Product_template",
"field_type":"LONGTEXT",
"nullable":1,
"physical_field":0,
"data_type":"TEXT",
"data_length":1048576,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"VOLUME" ,
"codename":"Volume",
"field_logic_name":"体积",
......@@ -125137,20 +125123,6 @@
"major_field":0
},
{
"fieldname":"TAXES_ID" ,
"codename":"Taxes_id",
"field_logic_name":"销项税",
"entity_name":"Product_template",
"field_type":"LONGTEXT",
"nullable":1,
"physical_field":0,
"data_type":"TEXT",
"data_length":1048576,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"MESSAGE_HAS_ERROR_COUNTER" ,
"codename":"Message_has_error_counter",
"field_logic_name":"错误数",
......@@ -125868,6 +125840,36 @@
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"SUPPLIER_TAXES_ID" ,
"codename":"Supplier_taxes_id",
"field_logic_name":"进项税",
"entity_name":"Product_template",
"field_type":"ONE2MANYDATA",
"nullable":1,
"physical_field":0,
"data_type":"TEXT",
"data_length":1048576,
"expression":"(SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM PRODUCT_SUPPLIER_TAXES_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.TAX_ID = M2.ID WHERE M1.PROD_ID =T1.ID ) T)",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"TAXES_ID" ,
"codename":"Taxes_id",
"field_logic_name":"销项税",
"entity_name":"Product_template",
"field_type":"ONE2MANYDATA",
"nullable":1,
"physical_field":0,
"data_type":"TEXT",
"data_length":1048576,
"expression":"(SELECT ARRAY_TO_JSON(ARRAY_AGG(T.*)) FROM (SELECT M2.ID AS SRFKEY, M2.NAME AS SRFMAJORTEXT FROM PRODUCT_TAXES_REL M1 LEFT JOIN ACCOUNT_TAX M2 ON M1.TAX_ID = M2.ID WHERE M1.PROD_ID =T1.ID ) T)",
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
......@@ -733,15 +733,6 @@ public class Product_templateDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String itemIds;
/**
* 属性 [SUPPLIER_TAXES_ID]
*
*/
@JSONField(name = "supplier_taxes_id")
@JsonProperty("supplier_taxes_id")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String supplierTaxesId;
/**
* 属性 [VOLUME]
*
......@@ -989,15 +980,6 @@ public class Product_templateDTO extends DTOBase implements Serializable {
@JsonProperty("bom_count")
private Integer bomCount;
/**
* 属性 [TAXES_ID]
*
*/
@JSONField(name = "taxes_id")
@JsonProperty("taxes_id")
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String taxesId;
/**
* 属性 [MESSAGE_HAS_ERROR_COUNTER]
*
......@@ -1428,6 +1410,20 @@ public class Product_templateDTO extends DTOBase implements Serializable {
@NotNull(message = "[采购计量单位]不允许为空!")
private Long uomPoId;
/**
* 属性 [SUPPLIER_TAXES_ID]
*
*/
@JSONField(name = "supplier_taxes_id")
@JsonProperty("supplier_taxes_id")
private String supplierTaxesId;
/**
* 属性 [TAXES_ID]
*
*/
@JSONField(name = "taxes_id")
@JsonProperty("taxes_id")
private String taxesId;
/**
* 设置 [MESSAGE_MAIN_ATTACHMENT_ID]
......@@ -1861,6 +1857,22 @@ public class Product_templateDTO extends DTOBase implements Serializable {
this.modify("uom_po_id",uomPoId);
}
/**
* 设置 [SUPPLIER_TAXES_ID]
*/
public void setSupplierTaxesId(String supplierTaxesId){
this.supplierTaxesId = supplierTaxesId ;
this.modify("supplier_taxes_id",supplierTaxesId);
}
/**
* 设置 [TAXES_ID]
*/
public void setTaxesId(String taxesId){
this.taxesId = taxesId ;
this.modify("taxes_id",taxesId);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册