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

xignzi006 发布系统代码 [Spring Boot]

上级 9f40f2c6
...@@ -259,9 +259,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re ...@@ -259,9 +259,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_inventoryService stockInventoryService; protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_inventoryService stockInventoryService;
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_locationService stockLocationService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_move_lineService stockMoveLineService; protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_move_lineService stockMoveLineService;
@Autowired @Autowired
@Lazy @Lazy
...@@ -461,7 +458,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re ...@@ -461,7 +458,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re
snailmailLetterService.resetByPartnerId(key); snailmailLetterService.resetByPartnerId(key);
stockInventoryLineService.resetByPartnerId(key); stockInventoryLineService.resetByPartnerId(key);
stockInventoryService.resetByPartnerId(key); stockInventoryService.resetByPartnerId(key);
stockLocationService.resetByPartnerId(key);
stockMoveLineService.resetByOwnerId(key); stockMoveLineService.resetByOwnerId(key);
stockMoveService.resetByPartnerId(key); stockMoveService.resetByPartnerId(key);
stockMoveService.resetByRestrictPartnerId(key); stockMoveService.resetByRestrictPartnerId(key);
...@@ -568,7 +564,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re ...@@ -568,7 +564,6 @@ public class Res_partnerServiceImpl extends EBSServiceImpl<Res_partnerMapper, Re
snailmailLetterService.resetByPartnerId(idList); snailmailLetterService.resetByPartnerId(idList);
stockInventoryLineService.resetByPartnerId(idList); stockInventoryLineService.resetByPartnerId(idList);
stockInventoryService.resetByPartnerId(idList); stockInventoryService.resetByPartnerId(idList);
stockLocationService.resetByPartnerId(idList);
stockMoveLineService.resetByOwnerId(idList); stockMoveLineService.resetByOwnerId(idList);
stockMoveService.resetByPartnerId(idList); stockMoveService.resetByPartnerId(idList);
stockMoveService.resetByRestrictPartnerId(idList); stockMoveService.resetByRestrictPartnerId(idList);
......
...@@ -56,9 +56,6 @@ public class Product_putawayServiceImpl extends EBSServiceImpl<Product_putawayMa ...@@ -56,9 +56,6 @@ public class Product_putawayServiceImpl extends EBSServiceImpl<Product_putawayMa
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_fixed_putaway_stratService stockFixedPutawayStratService; protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_fixed_putaway_stratService stockFixedPutawayStratService;
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_locationService stockLocationService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_base.service.IRes_usersService resUsersService; protected cn.ibizlab.businesscentral.core.odoo_base.service.IRes_usersService resUsersService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -132,7 +129,6 @@ public class Product_putawayServiceImpl extends EBSServiceImpl<Product_putawayMa ...@@ -132,7 +129,6 @@ public class Product_putawayServiceImpl extends EBSServiceImpl<Product_putawayMa
@Transactional @Transactional
public boolean remove(Long key) { public boolean remove(Long key) {
stockFixedPutawayStratService.resetByPutawayId(key); stockFixedPutawayStratService.resetByPutawayId(key);
stockLocationService.resetByPutawayStrategyId(key);
boolean result=removeById(key); boolean result=removeById(key);
return result ; return result ;
} }
...@@ -141,7 +137,6 @@ public class Product_putawayServiceImpl extends EBSServiceImpl<Product_putawayMa ...@@ -141,7 +137,6 @@ public class Product_putawayServiceImpl extends EBSServiceImpl<Product_putawayMa
@Transactional @Transactional
public void removeBatch(Collection<Long> idList) { public void removeBatch(Collection<Long> idList) {
stockFixedPutawayStratService.resetByPutawayId(idList); stockFixedPutawayStratService.resetByPutawayId(idList);
stockLocationService.resetByPutawayStrategyId(idList);
removeByIds(idList); removeByIds(idList);
} }
......
...@@ -186,13 +186,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -186,13 +186,6 @@ public class Stock_location extends EntityMP implements Serializable {
@JSONField(name = "child_ids") @JSONField(name = "child_ids")
@JsonProperty("child_ids") @JsonProperty("child_ids")
private String childIds; private String childIds;
/**
* 上级位置
*/
@TableField(exist = false)
@JSONField(name = "location_id_text")
@JsonProperty("location_id_text")
private String locationIdText;
/** /**
* 公司 * 公司
*/ */
...@@ -214,13 +207,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -214,13 +207,6 @@ public class Stock_location extends EntityMP implements Serializable {
@JSONField(name = "valuation_out_account_id_text") @JSONField(name = "valuation_out_account_id_text")
@JsonProperty("valuation_out_account_id_text") @JsonProperty("valuation_out_account_id_text")
private String valuationOutAccountIdText; private String valuationOutAccountIdText;
/**
* 所有者
*/
@TableField(exist = false)
@JSONField(name = "partner_id_text")
@JsonProperty("partner_id_text")
private String partnerIdText;
/** /**
* 下架策略 * 下架策略
*/ */
...@@ -228,13 +214,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -228,13 +214,6 @@ public class Stock_location extends EntityMP implements Serializable {
@JSONField(name = "removal_strategy_id_text") @JSONField(name = "removal_strategy_id_text")
@JsonProperty("removal_strategy_id_text") @JsonProperty("removal_strategy_id_text")
private String removalStrategyIdText; private String removalStrategyIdText;
/**
* 上架策略
*/
@TableField(exist = false)
@JSONField(name = "putaway_strategy_id_text")
@JsonProperty("putaway_strategy_id_text")
private String putawayStrategyIdText;
/** /**
* 最后更新者 * 最后更新者
*/ */
...@@ -281,14 +260,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -281,14 +260,6 @@ public class Stock_location extends EntityMP implements Serializable {
@JSONField(name = "company_id") @JSONField(name = "company_id")
@JsonProperty("company_id") @JsonProperty("company_id")
private Long companyId; private Long companyId;
/**
* 上级位置
*/
@DEField(name = "location_id")
@TableField(value = "location_id")
@JSONField(name = "location_id")
@JsonProperty("location_id")
private Long locationId;
/** /**
* 库存计价科目(出向) * 库存计价科目(出向)
*/ */
...@@ -297,22 +268,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -297,22 +268,6 @@ public class Stock_location extends EntityMP implements Serializable {
@JSONField(name = "valuation_out_account_id") @JSONField(name = "valuation_out_account_id")
@JsonProperty("valuation_out_account_id") @JsonProperty("valuation_out_account_id")
private Long valuationOutAccountId; private Long valuationOutAccountId;
/**
* 所有者
*/
@DEField(name = "partner_id")
@TableField(value = "partner_id")
@JSONField(name = "partner_id")
@JsonProperty("partner_id")
private Long partnerId;
/**
* 上架策略
*/
@DEField(name = "putaway_strategy_id")
@TableField(value = "putaway_strategy_id")
@JSONField(name = "putaway_strategy_id")
@JsonProperty("putaway_strategy_id")
private Long putawayStrategyId;
/** /**
* 下架策略 * 下架策略
*/ */
...@@ -338,14 +293,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -338,14 +293,6 @@ public class Stock_location extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooValuationOutAccount; private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooValuationOutAccount;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_product.domain.Product_putaway odooPutawayStrategy;
/** /**
* *
*/ */
...@@ -362,14 +309,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -362,14 +309,6 @@ public class Stock_location extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_base.domain.Res_company odooCompany; private cn.ibizlab.businesscentral.core.odoo_base.domain.Res_company odooCompany;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_base.domain.Res_partner odooPartner;
/** /**
* *
*/ */
...@@ -386,14 +325,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -386,14 +325,6 @@ public class Stock_location extends EntityMP implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users odooWrite; private cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users odooWrite;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_location odooLocation;
/** /**
...@@ -508,14 +439,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -508,14 +439,6 @@ public class Stock_location extends EntityMP implements Serializable {
this.modify("company_id",companyId); this.modify("company_id",companyId);
} }
/**
* 设置 [上级位置]
*/
public void setLocationId(Long locationId){
this.locationId = locationId ;
this.modify("location_id",locationId);
}
/** /**
* 设置 [库存计价科目(出向)] * 设置 [库存计价科目(出向)]
*/ */
...@@ -524,22 +447,6 @@ public class Stock_location extends EntityMP implements Serializable { ...@@ -524,22 +447,6 @@ public class Stock_location extends EntityMP implements Serializable {
this.modify("valuation_out_account_id",valuationOutAccountId); this.modify("valuation_out_account_id",valuationOutAccountId);
} }
/**
* 设置 [所有者]
*/
public void setPartnerId(Long partnerId){
this.partnerId = partnerId ;
this.modify("partner_id",partnerId);
}
/**
* 设置 [上架策略]
*/
public void setPutawayStrategyId(Long putawayStrategyId){
this.putawayStrategyId = putawayStrategyId ;
this.modify("putaway_strategy_id",putawayStrategyId);
}
/** /**
* 设置 [下架策略] * 设置 [下架策略]
*/ */
......
...@@ -40,20 +40,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat ...@@ -40,20 +40,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat
if(!ObjectUtils.isEmpty(this.n_usage_eq)){ if(!ObjectUtils.isEmpty(this.n_usage_eq)){
this.getSearchCond().eq("usage", n_usage_eq); this.getSearchCond().eq("usage", n_usage_eq);
} }
}
private String n_location_id_text_eq;//[上级位置]
public void setN_location_id_text_eq(String n_location_id_text_eq) {
this.n_location_id_text_eq = n_location_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_location_id_text_eq)){
this.getSearchCond().eq("location_id_text", n_location_id_text_eq);
}
}
private String n_location_id_text_like;//[上级位置]
public void setN_location_id_text_like(String n_location_id_text_like) {
this.n_location_id_text_like = n_location_id_text_like;
if(!ObjectUtils.isEmpty(this.n_location_id_text_like)){
this.getSearchCond().like("location_id_text", n_location_id_text_like);
}
} }
private String n_company_id_text_eq;//[公司] private String n_company_id_text_eq;//[公司]
public void setN_company_id_text_eq(String n_company_id_text_eq) { public void setN_company_id_text_eq(String n_company_id_text_eq) {
...@@ -96,20 +82,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat ...@@ -96,20 +82,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat
if(!ObjectUtils.isEmpty(this.n_valuation_out_account_id_text_like)){ if(!ObjectUtils.isEmpty(this.n_valuation_out_account_id_text_like)){
this.getSearchCond().like("valuation_out_account_id_text", n_valuation_out_account_id_text_like); this.getSearchCond().like("valuation_out_account_id_text", n_valuation_out_account_id_text_like);
} }
}
private String n_partner_id_text_eq;//[所有者]
public void setN_partner_id_text_eq(String n_partner_id_text_eq) {
this.n_partner_id_text_eq = n_partner_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_partner_id_text_eq)){
this.getSearchCond().eq("partner_id_text", n_partner_id_text_eq);
}
}
private String n_partner_id_text_like;//[所有者]
public void setN_partner_id_text_like(String n_partner_id_text_like) {
this.n_partner_id_text_like = n_partner_id_text_like;
if(!ObjectUtils.isEmpty(this.n_partner_id_text_like)){
this.getSearchCond().like("partner_id_text", n_partner_id_text_like);
}
} }
private String n_removal_strategy_id_text_eq;//[下架策略] private String n_removal_strategy_id_text_eq;//[下架策略]
public void setN_removal_strategy_id_text_eq(String n_removal_strategy_id_text_eq) { public void setN_removal_strategy_id_text_eq(String n_removal_strategy_id_text_eq) {
...@@ -124,20 +96,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat ...@@ -124,20 +96,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat
if(!ObjectUtils.isEmpty(this.n_removal_strategy_id_text_like)){ if(!ObjectUtils.isEmpty(this.n_removal_strategy_id_text_like)){
this.getSearchCond().like("removal_strategy_id_text", n_removal_strategy_id_text_like); this.getSearchCond().like("removal_strategy_id_text", n_removal_strategy_id_text_like);
} }
}
private String n_putaway_strategy_id_text_eq;//[上架策略]
public void setN_putaway_strategy_id_text_eq(String n_putaway_strategy_id_text_eq) {
this.n_putaway_strategy_id_text_eq = n_putaway_strategy_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_putaway_strategy_id_text_eq)){
this.getSearchCond().eq("putaway_strategy_id_text", n_putaway_strategy_id_text_eq);
}
}
private String n_putaway_strategy_id_text_like;//[上架策略]
public void setN_putaway_strategy_id_text_like(String n_putaway_strategy_id_text_like) {
this.n_putaway_strategy_id_text_like = n_putaway_strategy_id_text_like;
if(!ObjectUtils.isEmpty(this.n_putaway_strategy_id_text_like)){
this.getSearchCond().like("putaway_strategy_id_text", n_putaway_strategy_id_text_like);
}
} }
private String n_write_uid_text_eq;//[最后更新者] private String n_write_uid_text_eq;//[最后更新者]
public void setN_write_uid_text_eq(String n_write_uid_text_eq) { public void setN_write_uid_text_eq(String n_write_uid_text_eq) {
...@@ -194,13 +152,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat ...@@ -194,13 +152,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat
if(!ObjectUtils.isEmpty(this.n_company_id_eq)){ if(!ObjectUtils.isEmpty(this.n_company_id_eq)){
this.getSearchCond().eq("company_id", n_company_id_eq); this.getSearchCond().eq("company_id", n_company_id_eq);
} }
}
private Long n_location_id_eq;//[上级位置]
public void setN_location_id_eq(Long n_location_id_eq) {
this.n_location_id_eq = n_location_id_eq;
if(!ObjectUtils.isEmpty(this.n_location_id_eq)){
this.getSearchCond().eq("location_id", n_location_id_eq);
}
} }
private Long n_valuation_out_account_id_eq;//[库存计价科目(出向)] private Long n_valuation_out_account_id_eq;//[库存计价科目(出向)]
public void setN_valuation_out_account_id_eq(Long n_valuation_out_account_id_eq) { public void setN_valuation_out_account_id_eq(Long n_valuation_out_account_id_eq) {
...@@ -208,20 +159,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat ...@@ -208,20 +159,6 @@ public class Stock_locationSearchContext extends QueryWrapperContext<Stock_locat
if(!ObjectUtils.isEmpty(this.n_valuation_out_account_id_eq)){ if(!ObjectUtils.isEmpty(this.n_valuation_out_account_id_eq)){
this.getSearchCond().eq("valuation_out_account_id", n_valuation_out_account_id_eq); this.getSearchCond().eq("valuation_out_account_id", n_valuation_out_account_id_eq);
} }
}
private Long n_partner_id_eq;//[所有者]
public void setN_partner_id_eq(Long n_partner_id_eq) {
this.n_partner_id_eq = n_partner_id_eq;
if(!ObjectUtils.isEmpty(this.n_partner_id_eq)){
this.getSearchCond().eq("partner_id", n_partner_id_eq);
}
}
private Long n_putaway_strategy_id_eq;//[上架策略]
public void setN_putaway_strategy_id_eq(Long n_putaway_strategy_id_eq) {
this.n_putaway_strategy_id_eq = n_putaway_strategy_id_eq;
if(!ObjectUtils.isEmpty(this.n_putaway_strategy_id_eq)){
this.getSearchCond().eq("putaway_strategy_id", n_putaway_strategy_id_eq);
}
} }
private Long n_removal_strategy_id_eq;//[下架策略] private Long n_removal_strategy_id_eq;//[下架策略]
public void setN_removal_strategy_id_eq(Long n_removal_strategy_id_eq) { public void setN_removal_strategy_id_eq(Long n_removal_strategy_id_eq) {
......
...@@ -66,19 +66,13 @@ public interface Stock_locationMapper extends BaseMapper<Stock_location>{ ...@@ -66,19 +66,13 @@ public interface Stock_locationMapper extends BaseMapper<Stock_location>{
List<Stock_location> selectByValuationOutAccountId(@Param("id") Serializable id) ; List<Stock_location> selectByValuationOutAccountId(@Param("id") Serializable id) ;
List<Stock_location> selectByPutawayStrategyId(@Param("id") Serializable id) ;
List<Stock_location> selectByRemovalStrategyId(@Param("id") Serializable id) ; List<Stock_location> selectByRemovalStrategyId(@Param("id") Serializable id) ;
List<Stock_location> selectByCompanyId(@Param("id") Serializable id) ; List<Stock_location> selectByCompanyId(@Param("id") Serializable id) ;
List<Stock_location> selectByPartnerId(@Param("id") Serializable id) ;
List<Stock_location> selectByCreateUid(@Param("id") Serializable id) ; List<Stock_location> selectByCreateUid(@Param("id") Serializable id) ;
List<Stock_location> selectByWriteUid(@Param("id") Serializable id) ; List<Stock_location> selectByWriteUid(@Param("id") Serializable id) ;
List<Stock_location> selectByLocationId(@Param("id") Serializable id) ;
} }
...@@ -45,10 +45,6 @@ public interface IStock_locationService extends IService<Stock_location>{ ...@@ -45,10 +45,6 @@ public interface IStock_locationService extends IService<Stock_location>{
void resetByValuationOutAccountId(Long id); void resetByValuationOutAccountId(Long id);
void resetByValuationOutAccountId(Collection<Long> ids); void resetByValuationOutAccountId(Collection<Long> ids);
void removeByValuationOutAccountId(Long id); void removeByValuationOutAccountId(Long id);
List<Stock_location> selectByPutawayStrategyId(Long id);
void resetByPutawayStrategyId(Long id);
void resetByPutawayStrategyId(Collection<Long> ids);
void removeByPutawayStrategyId(Long id);
List<Stock_location> selectByRemovalStrategyId(Long id); List<Stock_location> selectByRemovalStrategyId(Long id);
void resetByRemovalStrategyId(Long id); void resetByRemovalStrategyId(Long id);
void resetByRemovalStrategyId(Collection<Long> ids); void resetByRemovalStrategyId(Collection<Long> ids);
...@@ -57,17 +53,10 @@ public interface IStock_locationService extends IService<Stock_location>{ ...@@ -57,17 +53,10 @@ public interface IStock_locationService extends IService<Stock_location>{
void resetByCompanyId(Long id); void resetByCompanyId(Long id);
void resetByCompanyId(Collection<Long> ids); void resetByCompanyId(Collection<Long> ids);
void removeByCompanyId(Long id); void removeByCompanyId(Long id);
List<Stock_location> selectByPartnerId(Long id);
void resetByPartnerId(Long id);
void resetByPartnerId(Collection<Long> ids);
void removeByPartnerId(Long id);
List<Stock_location> selectByCreateUid(Long id); List<Stock_location> selectByCreateUid(Long id);
void removeByCreateUid(Long id); void removeByCreateUid(Long id);
List<Stock_location> selectByWriteUid(Long id); List<Stock_location> selectByWriteUid(Long id);
void removeByWriteUid(Long id); void removeByWriteUid(Long id);
List<Stock_location> selectByLocationId(Long id);
void removeByLocationId(Collection<Long> ids);
void removeByLocationId(Long id);
/** /**
*自定义查询SQL *自定义查询SQL
* @param sql select * from table where id =#{et.param} * @param sql select * from table where id =#{et.param}
......
...@@ -84,8 +84,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -84,8 +84,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_inventoryService stockInventoryService; protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_inventoryService stockInventoryService;
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_locationService stockLocationService = this;
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_move_lineService stockMoveLineService; protected cn.ibizlab.businesscentral.core.odoo_stock.service.IStock_move_lineService stockMoveLineService;
...@@ -142,15 +140,9 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -142,15 +140,9 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
protected cn.ibizlab.businesscentral.core.odoo_account.service.IAccount_accountService accountAccountService; protected cn.ibizlab.businesscentral.core.odoo_account.service.IAccount_accountService accountAccountService;
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_putawayService productPutawayService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_removalService productRemovalService; protected cn.ibizlab.businesscentral.core.odoo_product.service.IProduct_removalService productRemovalService;
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_base.service.IRes_partnerService resPartnerService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_base.service.IRes_usersService resUsersService; protected cn.ibizlab.businesscentral.core.odoo_base.service.IRes_usersService resUsersService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -236,7 +228,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -236,7 +228,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
stockFixedPutawayStratService.resetByFixedLocationId(key); stockFixedPutawayStratService.resetByFixedLocationId(key);
stockInventoryLineService.resetByLocationId(key); stockInventoryLineService.resetByLocationId(key);
stockInventoryService.resetByLocationId(key); stockInventoryService.resetByLocationId(key);
stockLocationService.removeByLocationId(key);
stockMoveLineService.resetByLocationDestId(key); stockMoveLineService.resetByLocationDestId(key);
stockMoveLineService.resetByLocationId(key); stockMoveLineService.resetByLocationId(key);
stockMoveService.resetByLocationDestId(key); stockMoveService.resetByLocationDestId(key);
...@@ -290,7 +281,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -290,7 +281,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
stockFixedPutawayStratService.resetByFixedLocationId(idList); stockFixedPutawayStratService.resetByFixedLocationId(idList);
stockInventoryLineService.resetByLocationId(idList); stockInventoryLineService.resetByLocationId(idList);
stockInventoryService.resetByLocationId(idList); stockInventoryService.resetByLocationId(idList);
stockLocationService.removeByLocationId(idList);
stockMoveLineService.resetByLocationDestId(idList); stockMoveLineService.resetByLocationDestId(idList);
stockMoveLineService.resetByLocationId(idList); stockMoveLineService.resetByLocationId(idList);
stockMoveService.resetByLocationDestId(idList); stockMoveService.resetByLocationDestId(idList);
...@@ -422,25 +412,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -422,25 +412,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
this.remove(new QueryWrapper<Stock_location>().eq("valuation_out_account_id",id)); this.remove(new QueryWrapper<Stock_location>().eq("valuation_out_account_id",id));
} }
@Override
public List<Stock_location> selectByPutawayStrategyId(Long id) {
return baseMapper.selectByPutawayStrategyId(id);
}
@Override
public void resetByPutawayStrategyId(Long id) {
this.update(new UpdateWrapper<Stock_location>().set("putaway_strategy_id",null).eq("putaway_strategy_id",id));
}
@Override
public void resetByPutawayStrategyId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_location>().set("putaway_strategy_id",null).in("putaway_strategy_id",ids));
}
@Override
public void removeByPutawayStrategyId(Long id) {
this.remove(new QueryWrapper<Stock_location>().eq("putaway_strategy_id",id));
}
@Override @Override
public List<Stock_location> selectByRemovalStrategyId(Long id) { public List<Stock_location> selectByRemovalStrategyId(Long id) {
return baseMapper.selectByRemovalStrategyId(id); return baseMapper.selectByRemovalStrategyId(id);
...@@ -479,25 +450,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -479,25 +450,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
this.remove(new QueryWrapper<Stock_location>().eq("company_id",id)); this.remove(new QueryWrapper<Stock_location>().eq("company_id",id));
} }
@Override
public List<Stock_location> selectByPartnerId(Long id) {
return baseMapper.selectByPartnerId(id);
}
@Override
public void resetByPartnerId(Long id) {
this.update(new UpdateWrapper<Stock_location>().set("partner_id",null).eq("partner_id",id));
}
@Override
public void resetByPartnerId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_location>().set("partner_id",null).in("partner_id",ids));
}
@Override
public void removeByPartnerId(Long id) {
this.remove(new QueryWrapper<Stock_location>().eq("partner_id",id));
}
@Override @Override
public List<Stock_location> selectByCreateUid(Long id) { public List<Stock_location> selectByCreateUid(Long id) {
return baseMapper.selectByCreateUid(id); return baseMapper.selectByCreateUid(id);
...@@ -516,20 +468,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -516,20 +468,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
this.remove(new QueryWrapper<Stock_location>().eq("write_uid",id)); this.remove(new QueryWrapper<Stock_location>().eq("write_uid",id));
} }
@Override
public List<Stock_location> selectByLocationId(Long id) {
return baseMapper.selectByLocationId(id);
}
@Override
public void removeByLocationId(Collection<Long> ids) {
this.remove(new QueryWrapper<Stock_location>().in("location_id",ids));
}
@Override
public void removeByLocationId(Long id) {
this.remove(new QueryWrapper<Stock_location>().eq("location_id",id));
}
/** /**
* 查询集合 数据集 * 查询集合 数据集
...@@ -567,16 +505,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -567,16 +505,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
} }
et.setValuationOutAccountIdText(odooValuationOutAccount.getName()); et.setValuationOutAccountIdText(odooValuationOutAccount.getName());
} }
//实体关系[DER1N_STOCK_LOCATION__PRODUCT_PUTAWAY__PUTAWAY_STRATEGY_ID]
if(!ObjectUtils.isEmpty(et.getPutawayStrategyId())){
cn.ibizlab.businesscentral.core.odoo_product.domain.Product_putaway odooPutawayStrategy=et.getOdooPutawayStrategy();
if(ObjectUtils.isEmpty(odooPutawayStrategy)){
cn.ibizlab.businesscentral.core.odoo_product.domain.Product_putaway majorEntity=productPutawayService.get(et.getPutawayStrategyId());
et.setOdooPutawayStrategy(majorEntity);
odooPutawayStrategy=majorEntity;
}
et.setPutawayStrategyIdText(odooPutawayStrategy.getName());
}
//实体关系[DER1N_STOCK_LOCATION__PRODUCT_REMOVAL__REMOVAL_STRATEGY_ID] //实体关系[DER1N_STOCK_LOCATION__PRODUCT_REMOVAL__REMOVAL_STRATEGY_ID]
if(!ObjectUtils.isEmpty(et.getRemovalStrategyId())){ if(!ObjectUtils.isEmpty(et.getRemovalStrategyId())){
cn.ibizlab.businesscentral.core.odoo_product.domain.Product_removal odooRemovalStrategy=et.getOdooRemovalStrategy(); cn.ibizlab.businesscentral.core.odoo_product.domain.Product_removal odooRemovalStrategy=et.getOdooRemovalStrategy();
...@@ -597,16 +525,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -597,16 +525,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
} }
et.setCompanyIdText(odooCompany.getName()); et.setCompanyIdText(odooCompany.getName());
} }
//实体关系[DER1N_STOCK_LOCATION__RES_PARTNER__PARTNER_ID]
if(!ObjectUtils.isEmpty(et.getPartnerId())){
cn.ibizlab.businesscentral.core.odoo_base.domain.Res_partner odooPartner=et.getOdooPartner();
if(ObjectUtils.isEmpty(odooPartner)){
cn.ibizlab.businesscentral.core.odoo_base.domain.Res_partner majorEntity=resPartnerService.get(et.getPartnerId());
et.setOdooPartner(majorEntity);
odooPartner=majorEntity;
}
et.setPartnerIdText(odooPartner.getName());
}
//实体关系[DER1N_STOCK_LOCATION__RES_USERS__CREATE_UID] //实体关系[DER1N_STOCK_LOCATION__RES_USERS__CREATE_UID]
if(!ObjectUtils.isEmpty(et.getCreateUid())){ if(!ObjectUtils.isEmpty(et.getCreateUid())){
cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users odooCreate=et.getOdooCreate(); cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users odooCreate=et.getOdooCreate();
...@@ -627,16 +545,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp ...@@ -627,16 +545,6 @@ public class Stock_locationServiceImpl extends EBSServiceImpl<Stock_locationMapp
} }
et.setWriteUidText(odooWrite.getName()); et.setWriteUidText(odooWrite.getName());
} }
//实体关系[DER1N_STOCK_LOCATION__STOCK_LOCATION__LOCATION_ID]
if(!ObjectUtils.isEmpty(et.getLocationId())){
cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_location odooLocation=et.getOdooLocation();
if(ObjectUtils.isEmpty(odooLocation)){
cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_location majorEntity=stockLocationService.get(et.getLocationId());
et.setOdooLocation(majorEntity);
odooLocation=majorEntity;
}
et.setLocationIdText(odooLocation.getName());
}
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Stock_locationResultMap" databaseId="postgresql"> <select id="selectById" resultMap="Stock_locationResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.BARCODE, t1.COMMENT, t1.COMPANY_ID, t31.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOCATION_ID, t11.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.PARENT_PATH, t1.PARTNER_ID, t71.NAME AS PARTNER_ID_TEXT, t1.POSX, t1.POSY, t1.POSZ, t1.PUTAWAY_STRATEGY_ID, t91.NAME AS PUTAWAY_STRATEGY_ID_TEXT, t1.REMOVAL_STRATEGY_ID, t81.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t121.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t61.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN STOCK_LOCATION t11 ON t1.LOCATION_ID = t11.ID LEFT JOIN RES_COMPANY t21 ON t1.COMPANY_ID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN ACCOUNT_ACCOUNT t61 ON t1.VALUATION_OUT_ACCOUNT_ID = t61.ID LEFT JOIN RES_PARTNER t71 ON t1.PARTNER_ID = t71.ID LEFT JOIN PRODUCT_REMOVAL t81 ON t1.REMOVAL_STRATEGY_ID = t81.ID LEFT JOIN PRODUCT_PUTAWAY t91 ON t1.PUTAWAY_STRATEGY_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.WRITE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.VALUATION_IN_ACCOUNT_ID = t121.ID ) t1 where id=#{id}]]> <![CDATA[select t1.* from (SELECT t1.ACTIVE, t1.BARCODE, t1.COMMENT, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PARENT_PATH, t1.POSX, t1.POSY, t1.POSZ, t1.REMOVAL_STRATEGY_ID, t61.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t91.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t51.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION 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 RES_USERS t31 ON t1.CREATE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT t51 ON t1.VALUATION_OUT_ACCOUNT_ID = t51.ID LEFT JOIN PRODUCT_REMOVAL t61 ON t1.REMOVAL_STRATEGY_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.WRITE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT t91 ON t1.VALUATION_IN_ACCOUNT_ID = t91.ID ) t1 where id=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...@@ -21,23 +21,17 @@ ...@@ -21,23 +21,17 @@
<result property="parentPath" column="parent_path" /> <result property="parentPath" column="parent_path" />
<result property="quantIds" column="quant_ids" /> <result property="quantIds" column="quant_ids" />
<result property="childIds" column="child_ids" /> <result property="childIds" column="child_ids" />
<result property="locationIdText" column="location_id_text" />
<result property="companyIdText" column="company_id_text" /> <result property="companyIdText" column="company_id_text" />
<result property="createUidText" column="create_uid_text" /> <result property="createUidText" column="create_uid_text" />
<result property="valuationOutAccountIdText" column="valuation_out_account_id_text" /> <result property="valuationOutAccountIdText" column="valuation_out_account_id_text" />
<result property="partnerIdText" column="partner_id_text" />
<result property="removalStrategyIdText" column="removal_strategy_id_text" /> <result property="removalStrategyIdText" column="removal_strategy_id_text" />
<result property="putawayStrategyIdText" column="putaway_strategy_id_text" />
<result property="writeUidText" column="write_uid_text" /> <result property="writeUidText" column="write_uid_text" />
<result property="valuationInAccountIdText" column="valuation_in_account_id_text" /> <result property="valuationInAccountIdText" column="valuation_in_account_id_text" />
<result property="writeUid" column="write_uid" /> <result property="writeUid" column="write_uid" />
<result property="createUid" column="create_uid" /> <result property="createUid" column="create_uid" />
<result property="valuationInAccountId" column="valuation_in_account_id" /> <result property="valuationInAccountId" column="valuation_in_account_id" />
<result property="companyId" column="company_id" /> <result property="companyId" column="company_id" />
<result property="locationId" column="location_id" />
<result property="valuationOutAccountId" column="valuation_out_account_id" /> <result property="valuationOutAccountId" column="valuation_out_account_id" />
<result property="partnerId" column="partner_id" />
<result property="putawayStrategyId" column="putaway_strategy_id" />
<result property="removalStrategyId" column="removal_strategy_id" /> <result property="removalStrategyId" column="removal_strategy_id" />
...@@ -46,19 +40,13 @@ ...@@ -46,19 +40,13 @@
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooValuationOutAccount" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account" column="valuation_out_account_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_accountMapper.selectById" fetchType="lazy"></association> <association property="odooValuationOutAccount" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account" column="valuation_out_account_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_accountMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooPutawayStrategy" javaType="cn.ibizlab.businesscentral.core.odoo_product.domain.Product_putaway" column="putaway_strategy_id" select="cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_putawayMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooRemovalStrategy" javaType="cn.ibizlab.businesscentral.core.odoo_product.domain.Product_removal" column="removal_strategy_id" select="cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_removalMapper.selectById" fetchType="lazy"></association> <association property="odooRemovalStrategy" javaType="cn.ibizlab.businesscentral.core.odoo_product.domain.Product_removal" column="removal_strategy_id" select="cn.ibizlab.businesscentral.core.odoo_product.mapper.Product_removalMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooCompany" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_company" column="company_id" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_companyMapper.selectById" fetchType="lazy"></association> <association property="odooCompany" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_company" column="company_id" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_companyMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooPartner" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_partner" column="partner_id" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_partnerMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooCreate" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users" column="create_uid" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_usersMapper.selectById" fetchType="lazy"></association> <association property="odooCreate" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users" column="create_uid" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_usersMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<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>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooLocation" javaType="cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_location" column="location_id" select="cn.ibizlab.businesscentral.core.odoo_stock.mapper.Stock_locationMapper.selectById" fetchType="lazy"></association>
</resultMap> </resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__ACCOUNT_ACCOUNT__VALUATION_IN_ACCOUNT_ID] --> <!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__ACCOUNT_ACCOUNT__VALUATION_IN_ACCOUNT_ID] -->
...@@ -74,13 +62,6 @@ ...@@ -74,13 +62,6 @@
<include refid="Default" /> <include refid="Default" />
) t1 ) t1
where valuation_out_account_id=#{id} where valuation_out_account_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__PRODUCT_PUTAWAY__PUTAWAY_STRATEGY_ID] -->
<select id="selectByPutawayStrategyId" resultMap="Stock_locationResultMap">
select t1.* from (
<include refid="Default" />
) t1
where putaway_strategy_id=#{id}
</select> </select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__PRODUCT_REMOVAL__REMOVAL_STRATEGY_ID] --> <!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__PRODUCT_REMOVAL__REMOVAL_STRATEGY_ID] -->
<select id="selectByRemovalStrategyId" resultMap="Stock_locationResultMap"> <select id="selectByRemovalStrategyId" resultMap="Stock_locationResultMap">
...@@ -95,13 +76,6 @@ ...@@ -95,13 +76,6 @@
<include refid="Default" /> <include refid="Default" />
) t1 ) t1
where company_id=#{id} where company_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__RES_PARTNER__PARTNER_ID] -->
<select id="selectByPartnerId" resultMap="Stock_locationResultMap">
select t1.* from (
<include refid="Default" />
) t1
where partner_id=#{id}
</select> </select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__RES_USERS__CREATE_UID] --> <!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__RES_USERS__CREATE_UID] -->
<select id="selectByCreateUid" resultMap="Stock_locationResultMap"> <select id="selectByCreateUid" resultMap="Stock_locationResultMap">
...@@ -116,13 +90,6 @@ ...@@ -116,13 +90,6 @@
<include refid="Default" /> <include refid="Default" />
) t1 ) t1
where write_uid=#{id} where write_uid=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_LOCATION__STOCK_LOCATION__LOCATION_ID] -->
<select id="selectByLocationId" resultMap="Stock_locationResultMap">
select t1.* from (
<include refid="Default" />
) t1
where location_id=#{id}
</select> </select>
<!--数据集合[Default]--> <!--数据集合[Default]-->
...@@ -136,12 +103,12 @@ ...@@ -136,12 +103,12 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql"> <sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.COMPANY_ID, t31.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOCATION_ID, t11.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.PARENT_PATH, t1.PARTNER_ID, t71.NAME AS PARTNER_ID_TEXT, t1.POSX, t1.POSY, t1.POSZ, t1.PUTAWAY_STRATEGY_ID, t91.NAME AS PUTAWAY_STRATEGY_ID_TEXT, t1.REMOVAL_STRATEGY_ID, t81.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t121.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t61.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN STOCK_LOCATION t11 ON t1.LOCATION_ID = t11.ID LEFT JOIN RES_COMPANY t21 ON t1.COMPANY_ID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN ACCOUNT_ACCOUNT t61 ON t1.VALUATION_OUT_ACCOUNT_ID = t61.ID LEFT JOIN RES_PARTNER t71 ON t1.PARTNER_ID = t71.ID LEFT JOIN PRODUCT_REMOVAL t81 ON t1.REMOVAL_STRATEGY_ID = t81.ID LEFT JOIN PRODUCT_PUTAWAY t91 ON t1.PUTAWAY_STRATEGY_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.WRITE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.VALUATION_IN_ACCOUNT_ID = t121.ID <![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PARENT_PATH, t1.POSX, t1.POSY, t1.POSZ, t1.REMOVAL_STRATEGY_ID, t61.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t91.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t51.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION 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 RES_USERS t31 ON t1.CREATE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT t51 ON t1.VALUATION_OUT_ACCOUNT_ID = t51.ID LEFT JOIN PRODUCT_REMOVAL t61 ON t1.REMOVAL_STRATEGY_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.WRITE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT t91 ON t1.VALUATION_IN_ACCOUNT_ID = t91.ID
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="postgresql"> <sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.COMMENT, t1.COMPANY_ID, t31.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.ID, t1.LOCATION_ID, t11.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.PARENT_PATH, t1.PARTNER_ID, t71.NAME AS PARTNER_ID_TEXT, t1.POSX, t1.POSY, t1.POSZ, t1.PUTAWAY_STRATEGY_ID, t91.NAME AS PUTAWAY_STRATEGY_ID_TEXT, t1.REMOVAL_STRATEGY_ID, t81.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t121.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t61.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t111.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION t1 LEFT JOIN STOCK_LOCATION t11 ON t1.LOCATION_ID = t11.ID LEFT JOIN RES_COMPANY t21 ON t1.COMPANY_ID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN ACCOUNT_ACCOUNT t61 ON t1.VALUATION_OUT_ACCOUNT_ID = t61.ID LEFT JOIN RES_PARTNER t71 ON t1.PARTNER_ID = t71.ID LEFT JOIN PRODUCT_REMOVAL t81 ON t1.REMOVAL_STRATEGY_ID = t81.ID LEFT JOIN PRODUCT_PUTAWAY t91 ON t1.PUTAWAY_STRATEGY_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.WRITE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.VALUATION_IN_ACCOUNT_ID = t121.ID <![CDATA[ SELECT t1.ACTIVE, t1.BARCODE, t1.COMMENT, t1.COMPANY_ID, t21.NAME AS COMPANY_ID_TEXT, t1.COMPLETE_NAME, t1.CREATE_DATE, t1.CREATE_UID, t41.NAME AS CREATE_UID_TEXT, t1.ID, t1.NAME, t1.PARENT_PATH, t1.POSX, t1.POSY, t1.POSZ, t1.REMOVAL_STRATEGY_ID, t61.NAME AS REMOVAL_STRATEGY_ID_TEXT, t1.RETURN_LOCATION, t1.SCRAP_LOCATION, t1.USAGE, t1.VALUATION_IN_ACCOUNT_ID, t91.NAME AS VALUATION_IN_ACCOUNT_ID_TEXT, t1.VALUATION_OUT_ACCOUNT_ID, t51.NAME AS VALUATION_OUT_ACCOUNT_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t81.NAME AS WRITE_UID_TEXT FROM STOCK_LOCATION 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 RES_USERS t31 ON t1.CREATE_UID = t31.ID LEFT JOIN RES_PARTNER t41 ON t31.PARTNER_ID = t41.ID LEFT JOIN ACCOUNT_ACCOUNT t51 ON t1.VALUATION_OUT_ACCOUNT_ID = t51.ID LEFT JOIN PRODUCT_REMOVAL t61 ON t1.REMOVAL_STRATEGY_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.WRITE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID LEFT JOIN ACCOUNT_ACCOUNT t91 ON t1.VALUATION_IN_ACCOUNT_ID = t91.ID
]]> ]]>
</sql> </sql>
......
...@@ -123768,12 +123768,6 @@ ...@@ -123768,12 +123768,6 @@
"code_name":"Odoo_putaway", "code_name":"Odoo_putaway",
"entity_name":"STOCK_FIXED_PUTAWAY_STRAT", "entity_name":"STOCK_FIXED_PUTAWAY_STRAT",
"ref_entity_name":"PRODUCT_PUTAWAY" "ref_entity_name":"PRODUCT_PUTAWAY"
},
{"name":"DER1N_STOCK_LOCATION__PRODUCT_PUTAWAY__PUTAWAY_STRATEGY_ID",
"relation_type":"DER1N",
"code_name":"Odoo_putaway_strategy",
"entity_name":"STOCK_LOCATION",
"ref_entity_name":"PRODUCT_PUTAWAY"
} }
], ],
"parentEntitys":[ "parentEntitys":[
...@@ -151028,12 +151022,6 @@ ...@@ -151028,12 +151022,6 @@
"entity_name":"STOCK_INVENTORY", "entity_name":"STOCK_INVENTORY",
"ref_entity_name":"RES_PARTNER" "ref_entity_name":"RES_PARTNER"
}, },
{"name":"DER1N_STOCK_LOCATION__RES_PARTNER__PARTNER_ID",
"relation_type":"DER1N",
"code_name":"Odoo_partner",
"entity_name":"STOCK_LOCATION",
"ref_entity_name":"RES_PARTNER"
},
{"name":"DER1N_STOCK_MOVE_LINE__RES_PARTNER__OWNER_ID", {"name":"DER1N_STOCK_MOVE_LINE__RES_PARTNER__OWNER_ID",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"Odoo_owner", "code_name":"Odoo_owner",
...@@ -173492,24 +173480,6 @@ ...@@ -173492,24 +173480,6 @@
"major_field":0 "major_field":0
}, },
{ {
"fieldname":"LOCATION_ID_TEXT" ,
"codename":"Location_id_text",
"field_logic_name":"上级位置",
"entity_name":"Stock_location",
"ref_de":"STOCK_LOCATION",
"ref_field_name":"NAME",
"relation_name":"DER1N_STOCK_LOCATION__STOCK_LOCATION__LOCATION_ID",
"relation_codename":"Odoo_location",
"field_type":"PICKUPTEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":200,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"COMPANY_ID_TEXT" , "fieldname":"COMPANY_ID_TEXT" ,
"codename":"Company_id_text", "codename":"Company_id_text",
"field_logic_name":"公司", "field_logic_name":"公司",
...@@ -173564,24 +173534,6 @@ ...@@ -173564,24 +173534,6 @@
"major_field":0 "major_field":0
}, },
{ {
"fieldname":"PARTNER_ID_TEXT" ,
"codename":"Partner_id_text",
"field_logic_name":"所有者",
"entity_name":"Stock_location",
"ref_de":"RES_PARTNER",
"ref_field_name":"NAME",
"relation_name":"DER1N_STOCK_LOCATION__RES_PARTNER__PARTNER_ID",
"relation_codename":"Odoo_partner",
"field_type":"PICKUPTEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":200,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"REMOVAL_STRATEGY_ID_TEXT" , "fieldname":"REMOVAL_STRATEGY_ID_TEXT" ,
"codename":"Removal_strategy_id_text", "codename":"Removal_strategy_id_text",
"field_logic_name":"下架策略", "field_logic_name":"下架策略",
...@@ -173600,24 +173552,6 @@ ...@@ -173600,24 +173552,6 @@
"major_field":0 "major_field":0
}, },
{ {
"fieldname":"PUTAWAY_STRATEGY_ID_TEXT" ,
"codename":"Putaway_strategy_id_text",
"field_logic_name":"上架策略",
"entity_name":"Stock_location",
"ref_de":"PRODUCT_PUTAWAY",
"ref_field_name":"NAME",
"relation_name":"DER1N_STOCK_LOCATION__PRODUCT_PUTAWAY__PUTAWAY_STRATEGY_ID",
"relation_codename":"Odoo_putaway_strategy",
"field_type":"PICKUPTEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":200,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"WRITE_UID_TEXT" , "fieldname":"WRITE_UID_TEXT" ,
"codename":"Write_uid_text", "codename":"Write_uid_text",
"field_logic_name":"最后更新者", "field_logic_name":"最后更新者",
...@@ -173724,23 +173658,6 @@ ...@@ -173724,23 +173658,6 @@
"major_field":0 "major_field":0
}, },
{ {
"fieldname":"LOCATION_ID" ,
"codename":"Location_id",
"field_logic_name":"上级位置",
"entity_name":"Stock_location",
"ref_de":"STOCK_LOCATION",
"ref_field_name":"ID",
"relation_name":"DER1N_STOCK_LOCATION__STOCK_LOCATION__LOCATION_ID",
"relation_codename":"Odoo_location",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"VALUATION_OUT_ACCOUNT_ID" , "fieldname":"VALUATION_OUT_ACCOUNT_ID" ,
"codename":"Valuation_out_account_id", "codename":"Valuation_out_account_id",
"field_logic_name":"库存计价科目(出向)", "field_logic_name":"库存计价科目(出向)",
...@@ -173758,40 +173675,6 @@ ...@@ -173758,40 +173675,6 @@
"major_field":0 "major_field":0
}, },
{ {
"fieldname":"PARTNER_ID" ,
"codename":"Partner_id",
"field_logic_name":"所有者",
"entity_name":"Stock_location",
"ref_de":"RES_PARTNER",
"ref_field_name":"ID",
"relation_name":"DER1N_STOCK_LOCATION__RES_PARTNER__PARTNER_ID",
"relation_codename":"Odoo_partner",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"PUTAWAY_STRATEGY_ID" ,
"codename":"Putaway_strategy_id",
"field_logic_name":"上架策略",
"entity_name":"Stock_location",
"ref_de":"PRODUCT_PUTAWAY",
"ref_field_name":"ID",
"relation_name":"DER1N_STOCK_LOCATION__PRODUCT_PUTAWAY__PUTAWAY_STRATEGY_ID",
"relation_codename":"Odoo_putaway_strategy",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"REMOVAL_STRATEGY_ID" , "fieldname":"REMOVAL_STRATEGY_ID" ,
"codename":"Removal_strategy_id", "codename":"Removal_strategy_id",
"field_logic_name":"下架策略", "field_logic_name":"下架策略",
...@@ -173906,12 +173789,6 @@ ...@@ -173906,12 +173789,6 @@
"entity_name":"STOCK_INVENTORY", "entity_name":"STOCK_INVENTORY",
"ref_entity_name":"STOCK_LOCATION" "ref_entity_name":"STOCK_LOCATION"
}, },
{"name":"DER1N_STOCK_LOCATION__STOCK_LOCATION__LOCATION_ID",
"relation_type":"DER1N",
"code_name":"Odoo_location",
"entity_name":"STOCK_LOCATION",
"ref_entity_name":"STOCK_LOCATION"
},
{"name":"DER1N_STOCK_MOVE_LINE__STOCK_LOCATION__LOCATION_DEST_ID", {"name":"DER1N_STOCK_MOVE_LINE__STOCK_LOCATION__LOCATION_DEST_ID",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"Odoo_location_dest", "code_name":"Odoo_location_dest",
...@@ -174118,12 +173995,6 @@ ...@@ -174118,12 +173995,6 @@
"entity_name":"STOCK_LOCATION", "entity_name":"STOCK_LOCATION",
"ref_entity_name":"ACCOUNT_ACCOUNT" "ref_entity_name":"ACCOUNT_ACCOUNT"
}, },
{"name":"DER1N_STOCK_LOCATION__PRODUCT_PUTAWAY__PUTAWAY_STRATEGY_ID",
"relation_type":"DER1N",
"code_name":"Odoo_putaway_strategy",
"entity_name":"STOCK_LOCATION",
"ref_entity_name":"PRODUCT_PUTAWAY"
},
{"name":"DER1N_STOCK_LOCATION__PRODUCT_REMOVAL__REMOVAL_STRATEGY_ID", {"name":"DER1N_STOCK_LOCATION__PRODUCT_REMOVAL__REMOVAL_STRATEGY_ID",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"Odoo_removal_strategy", "code_name":"Odoo_removal_strategy",
...@@ -174136,12 +174007,6 @@ ...@@ -174136,12 +174007,6 @@
"entity_name":"STOCK_LOCATION", "entity_name":"STOCK_LOCATION",
"ref_entity_name":"RES_COMPANY" "ref_entity_name":"RES_COMPANY"
}, },
{"name":"DER1N_STOCK_LOCATION__RES_PARTNER__PARTNER_ID",
"relation_type":"DER1N",
"code_name":"Odoo_partner",
"entity_name":"STOCK_LOCATION",
"ref_entity_name":"RES_PARTNER"
},
{"name":"DER1N_STOCK_LOCATION__RES_USERS__CREATE_UID", {"name":"DER1N_STOCK_LOCATION__RES_USERS__CREATE_UID",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"Odoo_create", "code_name":"Odoo_create",
...@@ -174153,12 +174018,6 @@ ...@@ -174153,12 +174018,6 @@
"code_name":"Odoo_write", "code_name":"Odoo_write",
"entity_name":"STOCK_LOCATION", "entity_name":"STOCK_LOCATION",
"ref_entity_name":"RES_USERS" "ref_entity_name":"RES_USERS"
},
{"name":"DER1N_STOCK_LOCATION__STOCK_LOCATION__LOCATION_ID",
"relation_type":"DER1N",
"code_name":"Odoo_location",
"entity_name":"STOCK_LOCATION",
"ref_entity_name":"STOCK_LOCATION"
} }
] ]
} }
...@@ -196,15 +196,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable { ...@@ -196,15 +196,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]") @Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
private String childIds; private String childIds;
/**
* 属性 [LOCATION_ID_TEXT]
*
*/
@JSONField(name = "location_id_text")
@JsonProperty("location_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String locationIdText;
/** /**
* 属性 [COMPANY_ID_TEXT] * 属性 [COMPANY_ID_TEXT]
* *
...@@ -232,15 +223,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable { ...@@ -232,15 +223,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String valuationOutAccountIdText; private String valuationOutAccountIdText;
/**
* 属性 [PARTNER_ID_TEXT]
*
*/
@JSONField(name = "partner_id_text")
@JsonProperty("partner_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String partnerIdText;
/** /**
* 属性 [REMOVAL_STRATEGY_ID_TEXT] * 属性 [REMOVAL_STRATEGY_ID_TEXT]
* *
...@@ -250,15 +232,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable { ...@@ -250,15 +232,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]") @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String removalStrategyIdText; private String removalStrategyIdText;
/**
* 属性 [PUTAWAY_STRATEGY_ID_TEXT]
*
*/
@JSONField(name = "putaway_strategy_id_text")
@JsonProperty("putaway_strategy_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String putawayStrategyIdText;
/** /**
* 属性 [WRITE_UID_TEXT] * 属性 [WRITE_UID_TEXT]
* *
...@@ -313,15 +286,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable { ...@@ -313,15 +286,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long companyId; private Long companyId;
/**
* 属性 [LOCATION_ID]
*
*/
@JSONField(name = "location_id")
@JsonProperty("location_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long locationId;
/** /**
* 属性 [VALUATION_OUT_ACCOUNT_ID] * 属性 [VALUATION_OUT_ACCOUNT_ID]
* *
...@@ -331,24 +295,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable { ...@@ -331,24 +295,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long valuationOutAccountId; private Long valuationOutAccountId;
/**
* 属性 [PARTNER_ID]
*
*/
@JSONField(name = "partner_id")
@JsonProperty("partner_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long partnerId;
/**
* 属性 [PUTAWAY_STRATEGY_ID]
*
*/
@JSONField(name = "putaway_strategy_id")
@JsonProperty("putaway_strategy_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long putawayStrategyId;
/** /**
* 属性 [REMOVAL_STRATEGY_ID] * 属性 [REMOVAL_STRATEGY_ID]
* *
...@@ -471,14 +417,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable { ...@@ -471,14 +417,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable {
this.modify("company_id",companyId); this.modify("company_id",companyId);
} }
/**
* 设置 [LOCATION_ID]
*/
public void setLocationId(Long locationId){
this.locationId = locationId ;
this.modify("location_id",locationId);
}
/** /**
* 设置 [VALUATION_OUT_ACCOUNT_ID] * 设置 [VALUATION_OUT_ACCOUNT_ID]
*/ */
...@@ -487,22 +425,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable { ...@@ -487,22 +425,6 @@ public class Stock_locationDTO extends DTOBase implements Serializable {
this.modify("valuation_out_account_id",valuationOutAccountId); this.modify("valuation_out_account_id",valuationOutAccountId);
} }
/**
* 设置 [PARTNER_ID]
*/
public void setPartnerId(Long partnerId){
this.partnerId = partnerId ;
this.modify("partner_id",partnerId);
}
/**
* 设置 [PUTAWAY_STRATEGY_ID]
*/
public void setPutawayStrategyId(Long putawayStrategyId){
this.putawayStrategyId = putawayStrategyId ;
this.modify("putaway_strategy_id",putawayStrategyId);
}
/** /**
* 设置 [REMOVAL_STRATEGY_ID] * 设置 [REMOVAL_STRATEGY_ID]
*/ */
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册