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

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

上级 ef1eb20f
......@@ -58,4 +58,27 @@ public class account_invoiceFallback implements account_invoiceFeignClient{
return null;
}
public Account_invoice getDraft(){
return null;
}
public Boolean checkKey(Account_invoice account_invoice){
return false;
}
public Boolean save(Account_invoice account_invoice){
return false;
}
public Boolean saveBatch(List<Account_invoice> account_invoices){
return false;
}
public Page<Account_invoice> searchDefault(Account_invoiceSearchContext context){
return null;
}
}
......@@ -56,4 +56,24 @@ public interface account_invoiceFeignClient {
Page<Account_invoice> select();
@RequestMapping(method = RequestMethod.GET, value = "/account_invoices/getdraft")
Account_invoice getDraft();
@RequestMapping(method = RequestMethod.POST, value = "/account_invoices/checkkey")
Boolean checkKey(@RequestBody Account_invoice account_invoice);
@RequestMapping(method = RequestMethod.POST, value = "/account_invoices/save")
Boolean save(@RequestBody Account_invoice account_invoice);
@RequestMapping(method = RequestMethod.POST, value = "/account_invoices/savebatch")
Boolean saveBatch(@RequestBody List<Account_invoice> account_invoices);
@RequestMapping(method = RequestMethod.POST, value = "/account_invoices/searchdefault")
Page<Account_invoice> searchDefault(@RequestBody Account_invoiceSearchContext context);
}
......@@ -27,6 +27,545 @@ import cn.ibizlab.businesscentral.core.odoo_account.domain.Account_invoice;
@Data
public class Account_invoiceSearchContext extends QueryWrapperContext<Account_invoice> {
private String n_activity_state_eq;//[活动状态]
public void setN_activity_state_eq(String n_activity_state_eq) {
this.n_activity_state_eq = n_activity_state_eq;
if(!ObjectUtils.isEmpty(this.n_activity_state_eq)){
this.getSearchCond().eq("activity_state", n_activity_state_eq);
}
}
private String n_state_eq;//[状态]
public void setN_state_eq(String n_state_eq) {
this.n_state_eq = n_state_eq;
if(!ObjectUtils.isEmpty(this.n_state_eq)){
this.getSearchCond().eq("state", n_state_eq);
}
}
private String n_name_like;//[参考/说明]
public void setN_name_like(String n_name_like) {
this.n_name_like = n_name_like;
if(!ObjectUtils.isEmpty(this.n_name_like)){
this.getSearchCond().like("name", n_name_like);
}
}
private String n_type_eq;//[类型]
public void setN_type_eq(String n_type_eq) {
this.n_type_eq = n_type_eq;
if(!ObjectUtils.isEmpty(this.n_type_eq)){
this.getSearchCond().eq("type", n_type_eq);
}
}
private String n_journal_id_text_eq;//[日记账]
public void setN_journal_id_text_eq(String n_journal_id_text_eq) {
this.n_journal_id_text_eq = n_journal_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_journal_id_text_eq)){
this.getSearchCond().eq("journal_id_text", n_journal_id_text_eq);
}
}
private String n_journal_id_text_like;//[日记账]
public void setN_journal_id_text_like(String n_journal_id_text_like) {
this.n_journal_id_text_like = n_journal_id_text_like;
if(!ObjectUtils.isEmpty(this.n_journal_id_text_like)){
this.getSearchCond().like("journal_id_text", n_journal_id_text_like);
}
}
private String n_purchase_id_text_eq;//[添加采购订单]
public void setN_purchase_id_text_eq(String n_purchase_id_text_eq) {
this.n_purchase_id_text_eq = n_purchase_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_purchase_id_text_eq)){
this.getSearchCond().eq("purchase_id_text", n_purchase_id_text_eq);
}
}
private String n_purchase_id_text_like;//[添加采购订单]
public void setN_purchase_id_text_like(String n_purchase_id_text_like) {
this.n_purchase_id_text_like = n_purchase_id_text_like;
if(!ObjectUtils.isEmpty(this.n_purchase_id_text_like)){
this.getSearchCond().like("purchase_id_text", n_purchase_id_text_like);
}
}
private String n_vendor_bill_purchase_id_text_eq;//[自动完成]
public void setN_vendor_bill_purchase_id_text_eq(String n_vendor_bill_purchase_id_text_eq) {
this.n_vendor_bill_purchase_id_text_eq = n_vendor_bill_purchase_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_vendor_bill_purchase_id_text_eq)){
this.getSearchCond().eq("vendor_bill_purchase_id_text", n_vendor_bill_purchase_id_text_eq);
}
}
private String n_vendor_bill_purchase_id_text_like;//[自动完成]
public void setN_vendor_bill_purchase_id_text_like(String n_vendor_bill_purchase_id_text_like) {
this.n_vendor_bill_purchase_id_text_like = n_vendor_bill_purchase_id_text_like;
if(!ObjectUtils.isEmpty(this.n_vendor_bill_purchase_id_text_like)){
this.getSearchCond().like("vendor_bill_purchase_id_text", n_vendor_bill_purchase_id_text_like);
}
}
private String n_source_id_text_eq;//[来源]
public void setN_source_id_text_eq(String n_source_id_text_eq) {
this.n_source_id_text_eq = n_source_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_source_id_text_eq)){
this.getSearchCond().eq("source_id_text", n_source_id_text_eq);
}
}
private String n_source_id_text_like;//[来源]
public void setN_source_id_text_like(String n_source_id_text_like) {
this.n_source_id_text_like = n_source_id_text_like;
if(!ObjectUtils.isEmpty(this.n_source_id_text_like)){
this.getSearchCond().like("source_id_text", n_source_id_text_like);
}
}
private String n_campaign_id_text_eq;//[营销]
public void setN_campaign_id_text_eq(String n_campaign_id_text_eq) {
this.n_campaign_id_text_eq = n_campaign_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_campaign_id_text_eq)){
this.getSearchCond().eq("campaign_id_text", n_campaign_id_text_eq);
}
}
private String n_campaign_id_text_like;//[营销]
public void setN_campaign_id_text_like(String n_campaign_id_text_like) {
this.n_campaign_id_text_like = n_campaign_id_text_like;
if(!ObjectUtils.isEmpty(this.n_campaign_id_text_like)){
this.getSearchCond().like("campaign_id_text", n_campaign_id_text_like);
}
}
private String n_partner_shipping_id_text_eq;//[送货地址]
public void setN_partner_shipping_id_text_eq(String n_partner_shipping_id_text_eq) {
this.n_partner_shipping_id_text_eq = n_partner_shipping_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_partner_shipping_id_text_eq)){
this.getSearchCond().eq("partner_shipping_id_text", n_partner_shipping_id_text_eq);
}
}
private String n_partner_shipping_id_text_like;//[送货地址]
public void setN_partner_shipping_id_text_like(String n_partner_shipping_id_text_like) {
this.n_partner_shipping_id_text_like = n_partner_shipping_id_text_like;
if(!ObjectUtils.isEmpty(this.n_partner_shipping_id_text_like)){
this.getSearchCond().like("partner_shipping_id_text", n_partner_shipping_id_text_like);
}
}
private String n_currency_id_text_eq;//[币种]
public void setN_currency_id_text_eq(String n_currency_id_text_eq) {
this.n_currency_id_text_eq = n_currency_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_currency_id_text_eq)){
this.getSearchCond().eq("currency_id_text", n_currency_id_text_eq);
}
}
private String n_currency_id_text_like;//[币种]
public void setN_currency_id_text_like(String n_currency_id_text_like) {
this.n_currency_id_text_like = n_currency_id_text_like;
if(!ObjectUtils.isEmpty(this.n_currency_id_text_like)){
this.getSearchCond().like("currency_id_text", n_currency_id_text_like);
}
}
private String n_write_uid_text_eq;//[最后更新人]
public void setN_write_uid_text_eq(String n_write_uid_text_eq) {
this.n_write_uid_text_eq = n_write_uid_text_eq;
if(!ObjectUtils.isEmpty(this.n_write_uid_text_eq)){
this.getSearchCond().eq("write_uid_text", n_write_uid_text_eq);
}
}
private String n_write_uid_text_like;//[最后更新人]
public void setN_write_uid_text_like(String n_write_uid_text_like) {
this.n_write_uid_text_like = n_write_uid_text_like;
if(!ObjectUtils.isEmpty(this.n_write_uid_text_like)){
this.getSearchCond().like("write_uid_text", n_write_uid_text_like);
}
}
private String n_incoterms_id_text_eq;//[贸易条款]
public void setN_incoterms_id_text_eq(String n_incoterms_id_text_eq) {
this.n_incoterms_id_text_eq = n_incoterms_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_incoterms_id_text_eq)){
this.getSearchCond().eq("incoterms_id_text", n_incoterms_id_text_eq);
}
}
private String n_incoterms_id_text_like;//[贸易条款]
public void setN_incoterms_id_text_like(String n_incoterms_id_text_like) {
this.n_incoterms_id_text_like = n_incoterms_id_text_like;
if(!ObjectUtils.isEmpty(this.n_incoterms_id_text_like)){
this.getSearchCond().like("incoterms_id_text", n_incoterms_id_text_like);
}
}
private String n_account_id_text_eq;//[科目]
public void setN_account_id_text_eq(String n_account_id_text_eq) {
this.n_account_id_text_eq = n_account_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_account_id_text_eq)){
this.getSearchCond().eq("account_id_text", n_account_id_text_eq);
}
}
private String n_account_id_text_like;//[科目]
public void setN_account_id_text_like(String n_account_id_text_like) {
this.n_account_id_text_like = n_account_id_text_like;
if(!ObjectUtils.isEmpty(this.n_account_id_text_like)){
this.getSearchCond().like("account_id_text", n_account_id_text_like);
}
}
private String n_incoterm_id_text_eq;//[国际贸易术语]
public void setN_incoterm_id_text_eq(String n_incoterm_id_text_eq) {
this.n_incoterm_id_text_eq = n_incoterm_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_incoterm_id_text_eq)){
this.getSearchCond().eq("incoterm_id_text", n_incoterm_id_text_eq);
}
}
private String n_incoterm_id_text_like;//[国际贸易术语]
public void setN_incoterm_id_text_like(String n_incoterm_id_text_like) {
this.n_incoterm_id_text_like = n_incoterm_id_text_like;
if(!ObjectUtils.isEmpty(this.n_incoterm_id_text_like)){
this.getSearchCond().like("incoterm_id_text", n_incoterm_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_medium_id_text_eq;//[媒体]
public void setN_medium_id_text_eq(String n_medium_id_text_eq) {
this.n_medium_id_text_eq = n_medium_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_medium_id_text_eq)){
this.getSearchCond().eq("medium_id_text", n_medium_id_text_eq);
}
}
private String n_medium_id_text_like;//[媒体]
public void setN_medium_id_text_like(String n_medium_id_text_like) {
this.n_medium_id_text_like = n_medium_id_text_like;
if(!ObjectUtils.isEmpty(this.n_medium_id_text_like)){
this.getSearchCond().like("medium_id_text", n_medium_id_text_like);
}
}
private String n_create_uid_text_eq;//[创建人]
public void setN_create_uid_text_eq(String n_create_uid_text_eq) {
this.n_create_uid_text_eq = n_create_uid_text_eq;
if(!ObjectUtils.isEmpty(this.n_create_uid_text_eq)){
this.getSearchCond().eq("create_uid_text", n_create_uid_text_eq);
}
}
private String n_create_uid_text_like;//[创建人]
public void setN_create_uid_text_like(String n_create_uid_text_like) {
this.n_create_uid_text_like = n_create_uid_text_like;
if(!ObjectUtils.isEmpty(this.n_create_uid_text_like)){
this.getSearchCond().like("create_uid_text", n_create_uid_text_like);
}
}
private String n_company_id_text_eq;//[公司]
public void setN_company_id_text_eq(String n_company_id_text_eq) {
this.n_company_id_text_eq = n_company_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_company_id_text_eq)){
this.getSearchCond().eq("company_id_text", n_company_id_text_eq);
}
}
private String n_company_id_text_like;//[公司]
public void setN_company_id_text_like(String n_company_id_text_like) {
this.n_company_id_text_like = n_company_id_text_like;
if(!ObjectUtils.isEmpty(this.n_company_id_text_like)){
this.getSearchCond().like("company_id_text", n_company_id_text_like);
}
}
private String n_user_id_text_eq;//[销售员]
public void setN_user_id_text_eq(String n_user_id_text_eq) {
this.n_user_id_text_eq = n_user_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_user_id_text_eq)){
this.getSearchCond().eq("user_id_text", n_user_id_text_eq);
}
}
private String n_user_id_text_like;//[销售员]
public void setN_user_id_text_like(String n_user_id_text_like) {
this.n_user_id_text_like = n_user_id_text_like;
if(!ObjectUtils.isEmpty(this.n_user_id_text_like)){
this.getSearchCond().like("user_id_text", n_user_id_text_like);
}
}
private String n_cash_rounding_id_text_eq;//[现金舍入方式]
public void setN_cash_rounding_id_text_eq(String n_cash_rounding_id_text_eq) {
this.n_cash_rounding_id_text_eq = n_cash_rounding_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_cash_rounding_id_text_eq)){
this.getSearchCond().eq("cash_rounding_id_text", n_cash_rounding_id_text_eq);
}
}
private String n_cash_rounding_id_text_like;//[现金舍入方式]
public void setN_cash_rounding_id_text_like(String n_cash_rounding_id_text_like) {
this.n_cash_rounding_id_text_like = n_cash_rounding_id_text_like;
if(!ObjectUtils.isEmpty(this.n_cash_rounding_id_text_like)){
this.getSearchCond().like("cash_rounding_id_text", n_cash_rounding_id_text_like);
}
}
private String n_vendor_bill_id_text_eq;//[供应商账单]
public void setN_vendor_bill_id_text_eq(String n_vendor_bill_id_text_eq) {
this.n_vendor_bill_id_text_eq = n_vendor_bill_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_vendor_bill_id_text_eq)){
this.getSearchCond().eq("vendor_bill_id_text", n_vendor_bill_id_text_eq);
}
}
private String n_vendor_bill_id_text_like;//[供应商账单]
public void setN_vendor_bill_id_text_like(String n_vendor_bill_id_text_like) {
this.n_vendor_bill_id_text_like = n_vendor_bill_id_text_like;
if(!ObjectUtils.isEmpty(this.n_vendor_bill_id_text_like)){
this.getSearchCond().like("vendor_bill_id_text", n_vendor_bill_id_text_like);
}
}
private String n_refund_invoice_id_text_eq;//[此发票为信用票的发票]
public void setN_refund_invoice_id_text_eq(String n_refund_invoice_id_text_eq) {
this.n_refund_invoice_id_text_eq = n_refund_invoice_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_refund_invoice_id_text_eq)){
this.getSearchCond().eq("refund_invoice_id_text", n_refund_invoice_id_text_eq);
}
}
private String n_refund_invoice_id_text_like;//[此发票为信用票的发票]
public void setN_refund_invoice_id_text_like(String n_refund_invoice_id_text_like) {
this.n_refund_invoice_id_text_like = n_refund_invoice_id_text_like;
if(!ObjectUtils.isEmpty(this.n_refund_invoice_id_text_like)){
this.getSearchCond().like("refund_invoice_id_text", n_refund_invoice_id_text_like);
}
}
private String n_fiscal_position_id_text_eq;//[税科目调整]
public void setN_fiscal_position_id_text_eq(String n_fiscal_position_id_text_eq) {
this.n_fiscal_position_id_text_eq = n_fiscal_position_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_fiscal_position_id_text_eq)){
this.getSearchCond().eq("fiscal_position_id_text", n_fiscal_position_id_text_eq);
}
}
private String n_fiscal_position_id_text_like;//[税科目调整]
public void setN_fiscal_position_id_text_like(String n_fiscal_position_id_text_like) {
this.n_fiscal_position_id_text_like = n_fiscal_position_id_text_like;
if(!ObjectUtils.isEmpty(this.n_fiscal_position_id_text_like)){
this.getSearchCond().like("fiscal_position_id_text", n_fiscal_position_id_text_like);
}
}
private String n_number_eq;//[号码]
public void setN_number_eq(String n_number_eq) {
this.n_number_eq = n_number_eq;
if(!ObjectUtils.isEmpty(this.n_number_eq)){
this.getSearchCond().eq("number", n_number_eq);
}
}
private String n_number_like;//[号码]
public void setN_number_like(String n_number_like) {
this.n_number_like = n_number_like;
if(!ObjectUtils.isEmpty(this.n_number_like)){
this.getSearchCond().like("number", n_number_like);
}
}
private String n_commercial_partner_id_text_eq;//[商业实体]
public void setN_commercial_partner_id_text_eq(String n_commercial_partner_id_text_eq) {
this.n_commercial_partner_id_text_eq = n_commercial_partner_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_commercial_partner_id_text_eq)){
this.getSearchCond().eq("commercial_partner_id_text", n_commercial_partner_id_text_eq);
}
}
private String n_commercial_partner_id_text_like;//[商业实体]
public void setN_commercial_partner_id_text_like(String n_commercial_partner_id_text_like) {
this.n_commercial_partner_id_text_like = n_commercial_partner_id_text_like;
if(!ObjectUtils.isEmpty(this.n_commercial_partner_id_text_like)){
this.getSearchCond().like("commercial_partner_id_text", n_commercial_partner_id_text_like);
}
}
private String n_team_id_text_eq;//[销售团队]
public void setN_team_id_text_eq(String n_team_id_text_eq) {
this.n_team_id_text_eq = n_team_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_team_id_text_eq)){
this.getSearchCond().eq("team_id_text", n_team_id_text_eq);
}
}
private String n_team_id_text_like;//[销售团队]
public void setN_team_id_text_like(String n_team_id_text_like) {
this.n_team_id_text_like = n_team_id_text_like;
if(!ObjectUtils.isEmpty(this.n_team_id_text_like)){
this.getSearchCond().like("team_id_text", n_team_id_text_like);
}
}
private String n_payment_term_id_text_eq;//[付款条款]
public void setN_payment_term_id_text_eq(String n_payment_term_id_text_eq) {
this.n_payment_term_id_text_eq = n_payment_term_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_payment_term_id_text_eq)){
this.getSearchCond().eq("payment_term_id_text", n_payment_term_id_text_eq);
}
}
private String n_payment_term_id_text_like;//[付款条款]
public void setN_payment_term_id_text_like(String n_payment_term_id_text_like) {
this.n_payment_term_id_text_like = n_payment_term_id_text_like;
if(!ObjectUtils.isEmpty(this.n_payment_term_id_text_like)){
this.getSearchCond().like("payment_term_id_text", n_payment_term_id_text_like);
}
}
private Long n_user_id_eq;//[销售员]
public void setN_user_id_eq(Long n_user_id_eq) {
this.n_user_id_eq = n_user_id_eq;
if(!ObjectUtils.isEmpty(this.n_user_id_eq)){
this.getSearchCond().eq("user_id", n_user_id_eq);
}
}
private Long n_team_id_eq;//[销售团队]
public void setN_team_id_eq(Long n_team_id_eq) {
this.n_team_id_eq = n_team_id_eq;
if(!ObjectUtils.isEmpty(this.n_team_id_eq)){
this.getSearchCond().eq("team_id", n_team_id_eq);
}
}
private Long n_create_uid_eq;//[创建人]
public void setN_create_uid_eq(Long n_create_uid_eq) {
this.n_create_uid_eq = n_create_uid_eq;
if(!ObjectUtils.isEmpty(this.n_create_uid_eq)){
this.getSearchCond().eq("create_uid", n_create_uid_eq);
}
}
private Long n_account_id_eq;//[科目]
public void setN_account_id_eq(Long n_account_id_eq) {
this.n_account_id_eq = n_account_id_eq;
if(!ObjectUtils.isEmpty(this.n_account_id_eq)){
this.getSearchCond().eq("account_id", n_account_id_eq);
}
}
private Long n_medium_id_eq;//[媒体]
public void setN_medium_id_eq(Long n_medium_id_eq) {
this.n_medium_id_eq = n_medium_id_eq;
if(!ObjectUtils.isEmpty(this.n_medium_id_eq)){
this.getSearchCond().eq("medium_id", n_medium_id_eq);
}
}
private Long n_company_id_eq;//[公司]
public void setN_company_id_eq(Long n_company_id_eq) {
this.n_company_id_eq = n_company_id_eq;
if(!ObjectUtils.isEmpty(this.n_company_id_eq)){
this.getSearchCond().eq("company_id", n_company_id_eq);
}
}
private Long n_move_id_eq;//[日记账分录]
public void setN_move_id_eq(Long n_move_id_eq) {
this.n_move_id_eq = n_move_id_eq;
if(!ObjectUtils.isEmpty(this.n_move_id_eq)){
this.getSearchCond().eq("move_id", n_move_id_eq);
}
}
private Long n_payment_term_id_eq;//[付款条款]
public void setN_payment_term_id_eq(Long n_payment_term_id_eq) {
this.n_payment_term_id_eq = n_payment_term_id_eq;
if(!ObjectUtils.isEmpty(this.n_payment_term_id_eq)){
this.getSearchCond().eq("payment_term_id", n_payment_term_id_eq);
}
}
private Long n_journal_id_eq;//[日记账]
public void setN_journal_id_eq(Long n_journal_id_eq) {
this.n_journal_id_eq = n_journal_id_eq;
if(!ObjectUtils.isEmpty(this.n_journal_id_eq)){
this.getSearchCond().eq("journal_id", n_journal_id_eq);
}
}
private Long n_incoterm_id_eq;//[国际贸易术语]
public void setN_incoterm_id_eq(Long n_incoterm_id_eq) {
this.n_incoterm_id_eq = n_incoterm_id_eq;
if(!ObjectUtils.isEmpty(this.n_incoterm_id_eq)){
this.getSearchCond().eq("incoterm_id", n_incoterm_id_eq);
}
}
private Long n_purchase_id_eq;//[添加采购订单]
public void setN_purchase_id_eq(Long n_purchase_id_eq) {
this.n_purchase_id_eq = n_purchase_id_eq;
if(!ObjectUtils.isEmpty(this.n_purchase_id_eq)){
this.getSearchCond().eq("purchase_id", n_purchase_id_eq);
}
}
private Long n_fiscal_position_id_eq;//[税科目调整]
public void setN_fiscal_position_id_eq(Long n_fiscal_position_id_eq) {
this.n_fiscal_position_id_eq = n_fiscal_position_id_eq;
if(!ObjectUtils.isEmpty(this.n_fiscal_position_id_eq)){
this.getSearchCond().eq("fiscal_position_id", n_fiscal_position_id_eq);
}
}
private Long n_refund_invoice_id_eq;//[此发票为信用票的发票]
public void setN_refund_invoice_id_eq(Long n_refund_invoice_id_eq) {
this.n_refund_invoice_id_eq = n_refund_invoice_id_eq;
if(!ObjectUtils.isEmpty(this.n_refund_invoice_id_eq)){
this.getSearchCond().eq("refund_invoice_id", n_refund_invoice_id_eq);
}
}
private Long n_currency_id_eq;//[币种]
public void setN_currency_id_eq(Long n_currency_id_eq) {
this.n_currency_id_eq = n_currency_id_eq;
if(!ObjectUtils.isEmpty(this.n_currency_id_eq)){
this.getSearchCond().eq("currency_id", n_currency_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_partner_bank_id_eq;//[银行账户]
public void setN_partner_bank_id_eq(Long n_partner_bank_id_eq) {
this.n_partner_bank_id_eq = n_partner_bank_id_eq;
if(!ObjectUtils.isEmpty(this.n_partner_bank_id_eq)){
this.getSearchCond().eq("partner_bank_id", n_partner_bank_id_eq);
}
}
private Long n_cash_rounding_id_eq;//[现金舍入方式]
public void setN_cash_rounding_id_eq(Long n_cash_rounding_id_eq) {
this.n_cash_rounding_id_eq = n_cash_rounding_id_eq;
if(!ObjectUtils.isEmpty(this.n_cash_rounding_id_eq)){
this.getSearchCond().eq("cash_rounding_id", n_cash_rounding_id_eq);
}
}
private Long n_commercial_partner_id_eq;//[商业实体]
public void setN_commercial_partner_id_eq(Long n_commercial_partner_id_eq) {
this.n_commercial_partner_id_eq = n_commercial_partner_id_eq;
if(!ObjectUtils.isEmpty(this.n_commercial_partner_id_eq)){
this.getSearchCond().eq("commercial_partner_id", n_commercial_partner_id_eq);
}
}
private Long n_partner_shipping_id_eq;//[送货地址]
public void setN_partner_shipping_id_eq(Long n_partner_shipping_id_eq) {
this.n_partner_shipping_id_eq = n_partner_shipping_id_eq;
if(!ObjectUtils.isEmpty(this.n_partner_shipping_id_eq)){
this.getSearchCond().eq("partner_shipping_id", n_partner_shipping_id_eq);
}
}
private Long n_incoterms_id_eq;//[贸易条款]
public void setN_incoterms_id_eq(Long n_incoterms_id_eq) {
this.n_incoterms_id_eq = n_incoterms_id_eq;
if(!ObjectUtils.isEmpty(this.n_incoterms_id_eq)){
this.getSearchCond().eq("incoterms_id", n_incoterms_id_eq);
}
}
private Long n_source_id_eq;//[来源]
public void setN_source_id_eq(Long n_source_id_eq) {
this.n_source_id_eq = n_source_id_eq;
if(!ObjectUtils.isEmpty(this.n_source_id_eq)){
this.getSearchCond().eq("source_id", n_source_id_eq);
}
}
private Long n_vendor_bill_id_eq;//[供应商账单]
public void setN_vendor_bill_id_eq(Long n_vendor_bill_id_eq) {
this.n_vendor_bill_id_eq = n_vendor_bill_id_eq;
if(!ObjectUtils.isEmpty(this.n_vendor_bill_id_eq)){
this.getSearchCond().eq("vendor_bill_id", n_vendor_bill_id_eq);
}
}
private Long n_write_uid_eq;//[最后更新人]
public void setN_write_uid_eq(Long n_write_uid_eq) {
this.n_write_uid_eq = n_write_uid_eq;
if(!ObjectUtils.isEmpty(this.n_write_uid_eq)){
this.getSearchCond().eq("write_uid", n_write_uid_eq);
}
}
private Long n_vendor_bill_purchase_id_eq;//[自动完成]
public void setN_vendor_bill_purchase_id_eq(Long n_vendor_bill_purchase_id_eq) {
this.n_vendor_bill_purchase_id_eq = n_vendor_bill_purchase_id_eq;
if(!ObjectUtils.isEmpty(this.n_vendor_bill_purchase_id_eq)){
this.getSearchCond().eq("vendor_bill_purchase_id", n_vendor_bill_purchase_id_eq);
}
}
private Long n_campaign_id_eq;//[营销]
public void setN_campaign_id_eq(Long n_campaign_id_eq) {
this.n_campaign_id_eq = n_campaign_id_eq;
if(!ObjectUtils.isEmpty(this.n_campaign_id_eq)){
this.getSearchCond().eq("campaign_id", n_campaign_id_eq);
}
}
/**
* 启用快速搜索
......
......@@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSONObject;
public interface Account_invoiceMapper extends BaseMapper<Account_invoice>{
Page<Account_invoice> searchDefault(IPage page, @Param("srf") Account_invoiceSearchContext context, @Param("ew") Wrapper<Account_invoice> wrapper) ;
@Override
Account_invoice selectById(Serializable id);
@Override
......@@ -61,4 +62,54 @@ public interface Account_invoiceMapper extends BaseMapper<Account_invoice>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<Account_invoice> selectByAccountId(@Param("id") Serializable id) ;
List<Account_invoice> selectByCashRoundingId(@Param("id") Serializable id) ;
List<Account_invoice> selectByFiscalPositionId(@Param("id") Serializable id) ;
List<Account_invoice> selectByIncotermsId(@Param("id") Serializable id) ;
List<Account_invoice> selectByIncotermId(@Param("id") Serializable id) ;
List<Account_invoice> selectByRefundInvoiceId(@Param("id") Serializable id) ;
List<Account_invoice> selectByVendorBillId(@Param("id") Serializable id) ;
List<Account_invoice> selectByJournalId(@Param("id") Serializable id) ;
List<Account_invoice> selectByMoveId(@Param("id") Serializable id) ;
List<Account_invoice> selectByPaymentTermId(@Param("id") Serializable id) ;
List<Account_invoice> selectByTeamId(@Param("id") Serializable id) ;
List<Account_invoice> selectByVendorBillPurchaseId(@Param("id") Serializable id) ;
List<Account_invoice> selectByPurchaseId(@Param("id") Serializable id) ;
List<Account_invoice> selectByCompanyId(@Param("id") Serializable id) ;
List<Account_invoice> selectByCurrencyId(@Param("id") Serializable id) ;
List<Account_invoice> selectByPartnerBankId(@Param("id") Serializable id) ;
List<Account_invoice> selectByCommercialPartnerId(@Param("id") Serializable id) ;
List<Account_invoice> selectByPartnerId(@Param("id") Serializable id) ;
List<Account_invoice> selectByPartnerShippingId(@Param("id") Serializable id) ;
List<Account_invoice> selectByCreateUid(@Param("id") Serializable id) ;
List<Account_invoice> selectByUserId(@Param("id") Serializable id) ;
List<Account_invoice> selectByWriteUid(@Param("id") Serializable id) ;
List<Account_invoice> selectByCampaignId(@Param("id") Serializable id) ;
List<Account_invoice> selectByMediumId(@Param("id") Serializable id) ;
List<Account_invoice> selectBySourceId(@Param("id") Serializable id) ;
}
......@@ -33,6 +33,109 @@ public interface IAccount_invoiceService extends IService<Account_invoice>{
boolean remove(Long key) ;
void removeBatch(Collection<Long> idList) ;
Account_invoice get(Long key) ;
Account_invoice getDraft(Account_invoice et) ;
boolean checkKey(Account_invoice et) ;
boolean save(Account_invoice et) ;
void saveBatch(List<Account_invoice> list) ;
Page<Account_invoice> searchDefault(Account_invoiceSearchContext context) ;
List<Account_invoice> selectByAccountId(Long id);
void resetByAccountId(Long id);
void resetByAccountId(Collection<Long> ids);
void removeByAccountId(Long id);
List<Account_invoice> selectByCashRoundingId(Long id);
void resetByCashRoundingId(Long id);
void resetByCashRoundingId(Collection<Long> ids);
void removeByCashRoundingId(Long id);
List<Account_invoice> selectByFiscalPositionId(Long id);
void resetByFiscalPositionId(Long id);
void resetByFiscalPositionId(Collection<Long> ids);
void removeByFiscalPositionId(Long id);
List<Account_invoice> selectByIncotermsId(Long id);
void resetByIncotermsId(Long id);
void resetByIncotermsId(Collection<Long> ids);
void removeByIncotermsId(Long id);
List<Account_invoice> selectByIncotermId(Long id);
void resetByIncotermId(Long id);
void resetByIncotermId(Collection<Long> ids);
void removeByIncotermId(Long id);
List<Account_invoice> selectByRefundInvoiceId(Long id);
void resetByRefundInvoiceId(Long id);
void resetByRefundInvoiceId(Collection<Long> ids);
void removeByRefundInvoiceId(Long id);
List<Account_invoice> selectByVendorBillId(Long id);
void resetByVendorBillId(Long id);
void resetByVendorBillId(Collection<Long> ids);
void removeByVendorBillId(Long id);
List<Account_invoice> selectByJournalId(Long id);
void resetByJournalId(Long id);
void resetByJournalId(Collection<Long> ids);
void removeByJournalId(Long id);
List<Account_invoice> selectByMoveId(Long id);
List<Account_invoice> selectByMoveId(Collection<Long> ids);
void removeByMoveId(Long id);
List<Account_invoice> selectByPaymentTermId(Long id);
void resetByPaymentTermId(Long id);
void resetByPaymentTermId(Collection<Long> ids);
void removeByPaymentTermId(Long id);
List<Account_invoice> selectByTeamId(Long id);
void resetByTeamId(Long id);
void resetByTeamId(Collection<Long> ids);
void removeByTeamId(Long id);
List<Account_invoice> selectByVendorBillPurchaseId(Long id);
void resetByVendorBillPurchaseId(Long id);
void resetByVendorBillPurchaseId(Collection<Long> ids);
void removeByVendorBillPurchaseId(Long id);
List<Account_invoice> selectByPurchaseId(Long id);
void resetByPurchaseId(Long id);
void resetByPurchaseId(Collection<Long> ids);
void removeByPurchaseId(Long id);
List<Account_invoice> selectByCompanyId(Long id);
void resetByCompanyId(Long id);
void resetByCompanyId(Collection<Long> ids);
void removeByCompanyId(Long id);
List<Account_invoice> selectByCurrencyId(Long id);
void resetByCurrencyId(Long id);
void resetByCurrencyId(Collection<Long> ids);
void removeByCurrencyId(Long id);
List<Account_invoice> selectByPartnerBankId(Long id);
void resetByPartnerBankId(Long id);
void resetByPartnerBankId(Collection<Long> ids);
void removeByPartnerBankId(Long id);
List<Account_invoice> selectByCommercialPartnerId(Long id);
void resetByCommercialPartnerId(Long id);
void resetByCommercialPartnerId(Collection<Long> ids);
void removeByCommercialPartnerId(Long id);
List<Account_invoice> selectByPartnerId(Long id);
List<Account_invoice> selectByPartnerId(Collection<Long> ids);
void removeByPartnerId(Long id);
List<Account_invoice> selectByPartnerShippingId(Long id);
void resetByPartnerShippingId(Long id);
void resetByPartnerShippingId(Collection<Long> ids);
void removeByPartnerShippingId(Long id);
List<Account_invoice> selectByCreateUid(Long id);
void resetByCreateUid(Long id);
void resetByCreateUid(Collection<Long> ids);
void removeByCreateUid(Long id);
List<Account_invoice> selectByUserId(Long id);
void resetByUserId(Long id);
void resetByUserId(Collection<Long> ids);
void removeByUserId(Long id);
List<Account_invoice> selectByWriteUid(Long id);
void resetByWriteUid(Long id);
void resetByWriteUid(Collection<Long> ids);
void removeByWriteUid(Long id);
List<Account_invoice> selectByCampaignId(Long id);
void resetByCampaignId(Long id);
void resetByCampaignId(Collection<Long> ids);
void removeByCampaignId(Long id);
List<Account_invoice> selectByMediumId(Long id);
void resetByMediumId(Long id);
void resetByMediumId(Collection<Long> ids);
void removeByMediumId(Long id);
List<Account_invoice> selectBySourceId(Long id);
void resetBySourceId(Long id);
void resetBySourceId(Collection<Long> ids);
void removeBySourceId(Long id);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
......
......@@ -232,7 +232,524 @@ public class Account_invoiceServiceImpl extends EBSServiceImpl<Account_invoiceMa
return et;
}
@Override
public Account_invoice getDraft(Account_invoice et) {
fillParentData(et);
return et;
}
@Override
public boolean checkKey(Account_invoice et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId())));
}
@Override
@Transactional
public boolean save(Account_invoice et) {
if(!saveOrUpdate(et))
return false;
return true;
}
@Override
@Transactional
public boolean saveOrUpdate(Account_invoice et) {
if (null == et) {
return false;
} else {
return checkKey(et) ? this.update(et) : this.create(et);
}
}
@Override
@Transactional
public boolean saveBatch(Collection<Account_invoice> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
@Transactional
public void saveBatch(List<Account_invoice> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
@Override
public List<Account_invoice> selectByAccountId(Long id) {
return baseMapper.selectByAccountId(id);
}
@Override
public void resetByAccountId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("account_id",null).eq("account_id",id));
}
@Override
public void resetByAccountId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("account_id",null).in("account_id",ids));
}
@Override
public void removeByAccountId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("account_id",id));
}
@Override
public List<Account_invoice> selectByCashRoundingId(Long id) {
return baseMapper.selectByCashRoundingId(id);
}
@Override
public void resetByCashRoundingId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("cash_rounding_id",null).eq("cash_rounding_id",id));
}
@Override
public void resetByCashRoundingId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("cash_rounding_id",null).in("cash_rounding_id",ids));
}
@Override
public void removeByCashRoundingId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("cash_rounding_id",id));
}
@Override
public List<Account_invoice> selectByFiscalPositionId(Long id) {
return baseMapper.selectByFiscalPositionId(id);
}
@Override
public void resetByFiscalPositionId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("fiscal_position_id",null).eq("fiscal_position_id",id));
}
@Override
public void resetByFiscalPositionId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("fiscal_position_id",null).in("fiscal_position_id",ids));
}
@Override
public void removeByFiscalPositionId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("fiscal_position_id",id));
}
@Override
public List<Account_invoice> selectByIncotermsId(Long id) {
return baseMapper.selectByIncotermsId(id);
}
@Override
public void resetByIncotermsId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("incoterms_id",null).eq("incoterms_id",id));
}
@Override
public void resetByIncotermsId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("incoterms_id",null).in("incoterms_id",ids));
}
@Override
public void removeByIncotermsId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("incoterms_id",id));
}
@Override
public List<Account_invoice> selectByIncotermId(Long id) {
return baseMapper.selectByIncotermId(id);
}
@Override
public void resetByIncotermId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("incoterm_id",null).eq("incoterm_id",id));
}
@Override
public void resetByIncotermId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("incoterm_id",null).in("incoterm_id",ids));
}
@Override
public void removeByIncotermId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("incoterm_id",id));
}
@Override
public List<Account_invoice> selectByRefundInvoiceId(Long id) {
return baseMapper.selectByRefundInvoiceId(id);
}
@Override
public void resetByRefundInvoiceId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("refund_invoice_id",null).eq("refund_invoice_id",id));
}
@Override
public void resetByRefundInvoiceId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("refund_invoice_id",null).in("refund_invoice_id",ids));
}
@Override
public void removeByRefundInvoiceId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("refund_invoice_id",id));
}
@Override
public List<Account_invoice> selectByVendorBillId(Long id) {
return baseMapper.selectByVendorBillId(id);
}
@Override
public void resetByVendorBillId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("vendor_bill_id",null).eq("vendor_bill_id",id));
}
@Override
public void resetByVendorBillId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("vendor_bill_id",null).in("vendor_bill_id",ids));
}
@Override
public void removeByVendorBillId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("vendor_bill_id",id));
}
@Override
public List<Account_invoice> selectByJournalId(Long id) {
return baseMapper.selectByJournalId(id);
}
@Override
public void resetByJournalId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("journal_id",null).eq("journal_id",id));
}
@Override
public void resetByJournalId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("journal_id",null).in("journal_id",ids));
}
@Override
public void removeByJournalId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("journal_id",id));
}
@Override
public List<Account_invoice> selectByMoveId(Long id) {
return baseMapper.selectByMoveId(id);
}
@Override
public List<Account_invoice> selectByMoveId(Collection<Long> ids) {
return this.list(new QueryWrapper<Account_invoice>().in("id",ids));
}
@Override
public void removeByMoveId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("move_id",id));
}
@Override
public List<Account_invoice> selectByPaymentTermId(Long id) {
return baseMapper.selectByPaymentTermId(id);
}
@Override
public void resetByPaymentTermId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("payment_term_id",null).eq("payment_term_id",id));
}
@Override
public void resetByPaymentTermId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("payment_term_id",null).in("payment_term_id",ids));
}
@Override
public void removeByPaymentTermId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("payment_term_id",id));
}
@Override
public List<Account_invoice> selectByTeamId(Long id) {
return baseMapper.selectByTeamId(id);
}
@Override
public void resetByTeamId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("team_id",null).eq("team_id",id));
}
@Override
public void resetByTeamId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("team_id",null).in("team_id",ids));
}
@Override
public void removeByTeamId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("team_id",id));
}
@Override
public List<Account_invoice> selectByVendorBillPurchaseId(Long id) {
return baseMapper.selectByVendorBillPurchaseId(id);
}
@Override
public void resetByVendorBillPurchaseId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("vendor_bill_purchase_id",null).eq("vendor_bill_purchase_id",id));
}
@Override
public void resetByVendorBillPurchaseId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("vendor_bill_purchase_id",null).in("vendor_bill_purchase_id",ids));
}
@Override
public void removeByVendorBillPurchaseId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("vendor_bill_purchase_id",id));
}
@Override
public List<Account_invoice> selectByPurchaseId(Long id) {
return baseMapper.selectByPurchaseId(id);
}
@Override
public void resetByPurchaseId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("purchase_id",null).eq("purchase_id",id));
}
@Override
public void resetByPurchaseId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("purchase_id",null).in("purchase_id",ids));
}
@Override
public void removeByPurchaseId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("purchase_id",id));
}
@Override
public List<Account_invoice> selectByCompanyId(Long id) {
return baseMapper.selectByCompanyId(id);
}
@Override
public void resetByCompanyId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("company_id",null).eq("company_id",id));
}
@Override
public void resetByCompanyId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("company_id",null).in("company_id",ids));
}
@Override
public void removeByCompanyId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("company_id",id));
}
@Override
public List<Account_invoice> selectByCurrencyId(Long id) {
return baseMapper.selectByCurrencyId(id);
}
@Override
public void resetByCurrencyId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("currency_id",null).eq("currency_id",id));
}
@Override
public void resetByCurrencyId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("currency_id",null).in("currency_id",ids));
}
@Override
public void removeByCurrencyId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("currency_id",id));
}
@Override
public List<Account_invoice> selectByPartnerBankId(Long id) {
return baseMapper.selectByPartnerBankId(id);
}
@Override
public void resetByPartnerBankId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("partner_bank_id",null).eq("partner_bank_id",id));
}
@Override
public void resetByPartnerBankId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("partner_bank_id",null).in("partner_bank_id",ids));
}
@Override
public void removeByPartnerBankId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("partner_bank_id",id));
}
@Override
public List<Account_invoice> selectByCommercialPartnerId(Long id) {
return baseMapper.selectByCommercialPartnerId(id);
}
@Override
public void resetByCommercialPartnerId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("commercial_partner_id",null).eq("commercial_partner_id",id));
}
@Override
public void resetByCommercialPartnerId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("commercial_partner_id",null).in("commercial_partner_id",ids));
}
@Override
public void removeByCommercialPartnerId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("commercial_partner_id",id));
}
@Override
public List<Account_invoice> selectByPartnerId(Long id) {
return baseMapper.selectByPartnerId(id);
}
@Override
public List<Account_invoice> selectByPartnerId(Collection<Long> ids) {
return this.list(new QueryWrapper<Account_invoice>().in("id",ids));
}
@Override
public void removeByPartnerId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("partner_id",id));
}
@Override
public List<Account_invoice> selectByPartnerShippingId(Long id) {
return baseMapper.selectByPartnerShippingId(id);
}
@Override
public void resetByPartnerShippingId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("partner_shipping_id",null).eq("partner_shipping_id",id));
}
@Override
public void resetByPartnerShippingId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("partner_shipping_id",null).in("partner_shipping_id",ids));
}
@Override
public void removeByPartnerShippingId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("partner_shipping_id",id));
}
@Override
public List<Account_invoice> selectByCreateUid(Long id) {
return baseMapper.selectByCreateUid(id);
}
@Override
public void resetByCreateUid(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("create_uid",null).eq("create_uid",id));
}
@Override
public void resetByCreateUid(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("create_uid",null).in("create_uid",ids));
}
@Override
public void removeByCreateUid(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("create_uid",id));
}
@Override
public List<Account_invoice> selectByUserId(Long id) {
return baseMapper.selectByUserId(id);
}
@Override
public void resetByUserId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("user_id",null).eq("user_id",id));
}
@Override
public void resetByUserId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("user_id",null).in("user_id",ids));
}
@Override
public void removeByUserId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("user_id",id));
}
@Override
public List<Account_invoice> selectByWriteUid(Long id) {
return baseMapper.selectByWriteUid(id);
}
@Override
public void resetByWriteUid(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("write_uid",null).eq("write_uid",id));
}
@Override
public void resetByWriteUid(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("write_uid",null).in("write_uid",ids));
}
@Override
public void removeByWriteUid(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("write_uid",id));
}
@Override
public List<Account_invoice> selectByCampaignId(Long id) {
return baseMapper.selectByCampaignId(id);
}
@Override
public void resetByCampaignId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("campaign_id",null).eq("campaign_id",id));
}
@Override
public void resetByCampaignId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("campaign_id",null).in("campaign_id",ids));
}
@Override
public void removeByCampaignId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("campaign_id",id));
}
@Override
public List<Account_invoice> selectByMediumId(Long id) {
return baseMapper.selectByMediumId(id);
}
@Override
public void resetByMediumId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("medium_id",null).eq("medium_id",id));
}
@Override
public void resetByMediumId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("medium_id",null).in("medium_id",ids));
}
@Override
public void removeByMediumId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("medium_id",id));
}
@Override
public List<Account_invoice> selectBySourceId(Long id) {
return baseMapper.selectBySourceId(id);
}
@Override
public void resetBySourceId(Long id) {
this.update(new UpdateWrapper<Account_invoice>().set("source_id",null).eq("source_id",id));
}
@Override
public void resetBySourceId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_invoice>().set("source_id",null).in("source_id",ids));
}
@Override
public void removeBySourceId(Long id) {
this.remove(new QueryWrapper<Account_invoice>().eq("source_id",id));
}
/**
* 查询集合 数据集
*/
@Override
public Page<Account_invoice> searchDefault(Account_invoiceSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Account_invoice> pages=baseMapper.searchDefault(context.getPages(),context,context.getSelectCond());
return new PageImpl<Account_invoice>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
......
......@@ -58,4 +58,27 @@ public class stock_moveFallback implements stock_moveFeignClient{
return null;
}
public Stock_move getDraft(){
return null;
}
public Boolean checkKey(Stock_move stock_move){
return false;
}
public Boolean save(Stock_move stock_move){
return false;
}
public Boolean saveBatch(List<Stock_move> stock_moves){
return false;
}
public Page<Stock_move> searchDefault(Stock_moveSearchContext context){
return null;
}
}
......@@ -56,4 +56,24 @@ public interface stock_moveFeignClient {
Page<Stock_move> select();
@RequestMapping(method = RequestMethod.GET, value = "/stock_moves/getdraft")
Stock_move getDraft();
@RequestMapping(method = RequestMethod.POST, value = "/stock_moves/checkkey")
Boolean checkKey(@RequestBody Stock_move stock_move);
@RequestMapping(method = RequestMethod.POST, value = "/stock_moves/save")
Boolean save(@RequestBody Stock_move stock_move);
@RequestMapping(method = RequestMethod.POST, value = "/stock_moves/savebatch")
Boolean saveBatch(@RequestBody List<Stock_move> stock_moves);
@RequestMapping(method = RequestMethod.POST, value = "/stock_moves/searchdefault")
Page<Stock_move> searchDefault(@RequestBody Stock_moveSearchContext context);
}
......@@ -27,6 +27,615 @@ import cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_move;
@Data
public class Stock_moveSearchContext extends QueryWrapperContext<Stock_move> {
private String n_priority_eq;//[优先级]
public void setN_priority_eq(String n_priority_eq) {
this.n_priority_eq = n_priority_eq;
if(!ObjectUtils.isEmpty(this.n_priority_eq)){
this.getSearchCond().eq("priority", n_priority_eq);
}
}
private String n_state_eq;//[状态]
public void setN_state_eq(String n_state_eq) {
this.n_state_eq = n_state_eq;
if(!ObjectUtils.isEmpty(this.n_state_eq)){
this.getSearchCond().eq("state", n_state_eq);
}
}
private String n_name_like;//[说明]
public void setN_name_like(String n_name_like) {
this.n_name_like = n_name_like;
if(!ObjectUtils.isEmpty(this.n_name_like)){
this.getSearchCond().like("name", n_name_like);
}
}
private String n_procure_method_eq;//[供应方法]
public void setN_procure_method_eq(String n_procure_method_eq) {
this.n_procure_method_eq = n_procure_method_eq;
if(!ObjectUtils.isEmpty(this.n_procure_method_eq)){
this.getSearchCond().eq("procure_method", n_procure_method_eq);
}
}
private String n_unbuild_id_text_eq;//[拆卸顺序]
public void setN_unbuild_id_text_eq(String n_unbuild_id_text_eq) {
this.n_unbuild_id_text_eq = n_unbuild_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_unbuild_id_text_eq)){
this.getSearchCond().eq("unbuild_id_text", n_unbuild_id_text_eq);
}
}
private String n_unbuild_id_text_like;//[拆卸顺序]
public void setN_unbuild_id_text_like(String n_unbuild_id_text_like) {
this.n_unbuild_id_text_like = n_unbuild_id_text_like;
if(!ObjectUtils.isEmpty(this.n_unbuild_id_text_like)){
this.getSearchCond().like("unbuild_id_text", n_unbuild_id_text_like);
}
}
private String n_company_id_text_eq;//[公司]
public void setN_company_id_text_eq(String n_company_id_text_eq) {
this.n_company_id_text_eq = n_company_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_company_id_text_eq)){
this.getSearchCond().eq("company_id_text", n_company_id_text_eq);
}
}
private String n_company_id_text_like;//[公司]
public void setN_company_id_text_like(String n_company_id_text_like) {
this.n_company_id_text_like = n_company_id_text_like;
if(!ObjectUtils.isEmpty(this.n_company_id_text_like)){
this.getSearchCond().like("company_id_text", n_company_id_text_like);
}
}
private String n_production_id_text_eq;//[成品的生产订单]
public void setN_production_id_text_eq(String n_production_id_text_eq) {
this.n_production_id_text_eq = n_production_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_production_id_text_eq)){
this.getSearchCond().eq("production_id_text", n_production_id_text_eq);
}
}
private String n_production_id_text_like;//[成品的生产订单]
public void setN_production_id_text_like(String n_production_id_text_like) {
this.n_production_id_text_like = n_production_id_text_like;
if(!ObjectUtils.isEmpty(this.n_production_id_text_like)){
this.getSearchCond().like("production_id_text", n_production_id_text_like);
}
}
private String n_warehouse_id_text_eq;//[仓库]
public void setN_warehouse_id_text_eq(String n_warehouse_id_text_eq) {
this.n_warehouse_id_text_eq = n_warehouse_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_warehouse_id_text_eq)){
this.getSearchCond().eq("warehouse_id_text", n_warehouse_id_text_eq);
}
}
private String n_warehouse_id_text_like;//[仓库]
public void setN_warehouse_id_text_like(String n_warehouse_id_text_like) {
this.n_warehouse_id_text_like = n_warehouse_id_text_like;
if(!ObjectUtils.isEmpty(this.n_warehouse_id_text_like)){
this.getSearchCond().like("warehouse_id_text", n_warehouse_id_text_like);
}
}
private String n_created_production_id_text_eq;//[创建生产订单]
public void setN_created_production_id_text_eq(String n_created_production_id_text_eq) {
this.n_created_production_id_text_eq = n_created_production_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_created_production_id_text_eq)){
this.getSearchCond().eq("created_production_id_text", n_created_production_id_text_eq);
}
}
private String n_created_production_id_text_like;//[创建生产订单]
public void setN_created_production_id_text_like(String n_created_production_id_text_like) {
this.n_created_production_id_text_like = n_created_production_id_text_like;
if(!ObjectUtils.isEmpty(this.n_created_production_id_text_like)){
this.getSearchCond().like("created_production_id_text", n_created_production_id_text_like);
}
}
private String n_created_purchase_line_id_text_eq;//[创建采购订单行]
public void setN_created_purchase_line_id_text_eq(String n_created_purchase_line_id_text_eq) {
this.n_created_purchase_line_id_text_eq = n_created_purchase_line_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_created_purchase_line_id_text_eq)){
this.getSearchCond().eq("created_purchase_line_id_text", n_created_purchase_line_id_text_eq);
}
}
private String n_created_purchase_line_id_text_like;//[创建采购订单行]
public void setN_created_purchase_line_id_text_like(String n_created_purchase_line_id_text_like) {
this.n_created_purchase_line_id_text_like = n_created_purchase_line_id_text_like;
if(!ObjectUtils.isEmpty(this.n_created_purchase_line_id_text_like)){
this.getSearchCond().like("created_purchase_line_id_text", n_created_purchase_line_id_text_like);
}
}
private String n_location_dest_id_text_eq;//[目的位置]
public void setN_location_dest_id_text_eq(String n_location_dest_id_text_eq) {
this.n_location_dest_id_text_eq = n_location_dest_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_location_dest_id_text_eq)){
this.getSearchCond().eq("location_dest_id_text", n_location_dest_id_text_eq);
}
}
private String n_location_dest_id_text_like;//[目的位置]
public void setN_location_dest_id_text_like(String n_location_dest_id_text_like) {
this.n_location_dest_id_text_like = n_location_dest_id_text_like;
if(!ObjectUtils.isEmpty(this.n_location_dest_id_text_like)){
this.getSearchCond().like("location_dest_id_text", n_location_dest_id_text_like);
}
}
private String n_picking_type_id_text_eq;//[作业类型]
public void setN_picking_type_id_text_eq(String n_picking_type_id_text_eq) {
this.n_picking_type_id_text_eq = n_picking_type_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_picking_type_id_text_eq)){
this.getSearchCond().eq("picking_type_id_text", n_picking_type_id_text_eq);
}
}
private String n_picking_type_id_text_like;//[作业类型]
public void setN_picking_type_id_text_like(String n_picking_type_id_text_like) {
this.n_picking_type_id_text_like = n_picking_type_id_text_like;
if(!ObjectUtils.isEmpty(this.n_picking_type_id_text_like)){
this.getSearchCond().like("picking_type_id_text", n_picking_type_id_text_like);
}
}
private String n_sale_line_id_text_eq;//[销售明细行]
public void setN_sale_line_id_text_eq(String n_sale_line_id_text_eq) {
this.n_sale_line_id_text_eq = n_sale_line_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_sale_line_id_text_eq)){
this.getSearchCond().eq("sale_line_id_text", n_sale_line_id_text_eq);
}
}
private String n_sale_line_id_text_like;//[销售明细行]
public void setN_sale_line_id_text_like(String n_sale_line_id_text_like) {
this.n_sale_line_id_text_like = n_sale_line_id_text_like;
if(!ObjectUtils.isEmpty(this.n_sale_line_id_text_like)){
this.getSearchCond().like("sale_line_id_text", n_sale_line_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_raw_material_production_id_text_eq;//[原材料的生产订单]
public void setN_raw_material_production_id_text_eq(String n_raw_material_production_id_text_eq) {
this.n_raw_material_production_id_text_eq = n_raw_material_production_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_raw_material_production_id_text_eq)){
this.getSearchCond().eq("raw_material_production_id_text", n_raw_material_production_id_text_eq);
}
}
private String n_raw_material_production_id_text_like;//[原材料的生产订单]
public void setN_raw_material_production_id_text_like(String n_raw_material_production_id_text_like) {
this.n_raw_material_production_id_text_like = n_raw_material_production_id_text_like;
if(!ObjectUtils.isEmpty(this.n_raw_material_production_id_text_like)){
this.getSearchCond().like("raw_material_production_id_text", n_raw_material_production_id_text_like);
}
}
private String n_origin_returned_move_id_text_eq;//[原始退回移动]
public void setN_origin_returned_move_id_text_eq(String n_origin_returned_move_id_text_eq) {
this.n_origin_returned_move_id_text_eq = n_origin_returned_move_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_origin_returned_move_id_text_eq)){
this.getSearchCond().eq("origin_returned_move_id_text", n_origin_returned_move_id_text_eq);
}
}
private String n_origin_returned_move_id_text_like;//[原始退回移动]
public void setN_origin_returned_move_id_text_like(String n_origin_returned_move_id_text_like) {
this.n_origin_returned_move_id_text_like = n_origin_returned_move_id_text_like;
if(!ObjectUtils.isEmpty(this.n_origin_returned_move_id_text_like)){
this.getSearchCond().like("origin_returned_move_id_text", n_origin_returned_move_id_text_like);
}
}
private String n_repair_id_text_eq;//[维修]
public void setN_repair_id_text_eq(String n_repair_id_text_eq) {
this.n_repair_id_text_eq = n_repair_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_repair_id_text_eq)){
this.getSearchCond().eq("repair_id_text", n_repair_id_text_eq);
}
}
private String n_repair_id_text_like;//[维修]
public void setN_repair_id_text_like(String n_repair_id_text_like) {
this.n_repair_id_text_like = n_repair_id_text_like;
if(!ObjectUtils.isEmpty(this.n_repair_id_text_like)){
this.getSearchCond().like("repair_id_text", n_repair_id_text_like);
}
}
private String n_purchase_line_id_text_eq;//[采购订单行]
public void setN_purchase_line_id_text_eq(String n_purchase_line_id_text_eq) {
this.n_purchase_line_id_text_eq = n_purchase_line_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_purchase_line_id_text_eq)){
this.getSearchCond().eq("purchase_line_id_text", n_purchase_line_id_text_eq);
}
}
private String n_purchase_line_id_text_like;//[采购订单行]
public void setN_purchase_line_id_text_like(String n_purchase_line_id_text_like) {
this.n_purchase_line_id_text_like = n_purchase_line_id_text_like;
if(!ObjectUtils.isEmpty(this.n_purchase_line_id_text_like)){
this.getSearchCond().like("purchase_line_id_text", n_purchase_line_id_text_like);
}
}
private String n_picking_id_text_eq;//[调拨参照]
public void setN_picking_id_text_eq(String n_picking_id_text_eq) {
this.n_picking_id_text_eq = n_picking_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_picking_id_text_eq)){
this.getSearchCond().eq("picking_id_text", n_picking_id_text_eq);
}
}
private String n_picking_id_text_like;//[调拨参照]
public void setN_picking_id_text_like(String n_picking_id_text_like) {
this.n_picking_id_text_like = n_picking_id_text_like;
if(!ObjectUtils.isEmpty(this.n_picking_id_text_like)){
this.getSearchCond().like("picking_id_text", n_picking_id_text_like);
}
}
private String n_product_id_text_eq;//[产品]
public void setN_product_id_text_eq(String n_product_id_text_eq) {
this.n_product_id_text_eq = n_product_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_product_id_text_eq)){
this.getSearchCond().eq("product_id_text", n_product_id_text_eq);
}
}
private String n_product_id_text_like;//[产品]
public void setN_product_id_text_like(String n_product_id_text_like) {
this.n_product_id_text_like = n_product_id_text_like;
if(!ObjectUtils.isEmpty(this.n_product_id_text_like)){
this.getSearchCond().like("product_id_text", n_product_id_text_like);
}
}
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_create_uid_text_eq;//[创建人]
public void setN_create_uid_text_eq(String n_create_uid_text_eq) {
this.n_create_uid_text_eq = n_create_uid_text_eq;
if(!ObjectUtils.isEmpty(this.n_create_uid_text_eq)){
this.getSearchCond().eq("create_uid_text", n_create_uid_text_eq);
}
}
private String n_create_uid_text_like;//[创建人]
public void setN_create_uid_text_like(String n_create_uid_text_like) {
this.n_create_uid_text_like = n_create_uid_text_like;
if(!ObjectUtils.isEmpty(this.n_create_uid_text_like)){
this.getSearchCond().like("create_uid_text", n_create_uid_text_like);
}
}
private String n_product_uom_text_eq;//[单位]
public void setN_product_uom_text_eq(String n_product_uom_text_eq) {
this.n_product_uom_text_eq = n_product_uom_text_eq;
if(!ObjectUtils.isEmpty(this.n_product_uom_text_eq)){
this.getSearchCond().eq("product_uom_text", n_product_uom_text_eq);
}
}
private String n_product_uom_text_like;//[单位]
public void setN_product_uom_text_like(String n_product_uom_text_like) {
this.n_product_uom_text_like = n_product_uom_text_like;
if(!ObjectUtils.isEmpty(this.n_product_uom_text_like)){
this.getSearchCond().like("product_uom_text", n_product_uom_text_like);
}
}
private String n_operation_id_text_eq;//[待加工的作业]
public void setN_operation_id_text_eq(String n_operation_id_text_eq) {
this.n_operation_id_text_eq = n_operation_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_operation_id_text_eq)){
this.getSearchCond().eq("operation_id_text", n_operation_id_text_eq);
}
}
private String n_operation_id_text_like;//[待加工的作业]
public void setN_operation_id_text_like(String n_operation_id_text_like) {
this.n_operation_id_text_like = n_operation_id_text_like;
if(!ObjectUtils.isEmpty(this.n_operation_id_text_like)){
this.getSearchCond().like("operation_id_text", n_operation_id_text_like);
}
}
private String n_workorder_id_text_eq;//[待消耗的工单]
public void setN_workorder_id_text_eq(String n_workorder_id_text_eq) {
this.n_workorder_id_text_eq = n_workorder_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_workorder_id_text_eq)){
this.getSearchCond().eq("workorder_id_text", n_workorder_id_text_eq);
}
}
private String n_workorder_id_text_like;//[待消耗的工单]
public void setN_workorder_id_text_like(String n_workorder_id_text_like) {
this.n_workorder_id_text_like = n_workorder_id_text_like;
if(!ObjectUtils.isEmpty(this.n_workorder_id_text_like)){
this.getSearchCond().like("workorder_id_text", n_workorder_id_text_like);
}
}
private String n_consume_unbuild_id_text_eq;//[拆卸单]
public void setN_consume_unbuild_id_text_eq(String n_consume_unbuild_id_text_eq) {
this.n_consume_unbuild_id_text_eq = n_consume_unbuild_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_consume_unbuild_id_text_eq)){
this.getSearchCond().eq("consume_unbuild_id_text", n_consume_unbuild_id_text_eq);
}
}
private String n_consume_unbuild_id_text_like;//[拆卸单]
public void setN_consume_unbuild_id_text_like(String n_consume_unbuild_id_text_like) {
this.n_consume_unbuild_id_text_like = n_consume_unbuild_id_text_like;
if(!ObjectUtils.isEmpty(this.n_consume_unbuild_id_text_like)){
this.getSearchCond().like("consume_unbuild_id_text", n_consume_unbuild_id_text_like);
}
}
private String n_product_packaging_text_eq;//[首选包装]
public void setN_product_packaging_text_eq(String n_product_packaging_text_eq) {
this.n_product_packaging_text_eq = n_product_packaging_text_eq;
if(!ObjectUtils.isEmpty(this.n_product_packaging_text_eq)){
this.getSearchCond().eq("product_packaging_text", n_product_packaging_text_eq);
}
}
private String n_product_packaging_text_like;//[首选包装]
public void setN_product_packaging_text_like(String n_product_packaging_text_like) {
this.n_product_packaging_text_like = n_product_packaging_text_like;
if(!ObjectUtils.isEmpty(this.n_product_packaging_text_like)){
this.getSearchCond().like("product_packaging_text", n_product_packaging_text_like);
}
}
private String n_restrict_partner_id_text_eq;//[所有者]
public void setN_restrict_partner_id_text_eq(String n_restrict_partner_id_text_eq) {
this.n_restrict_partner_id_text_eq = n_restrict_partner_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_restrict_partner_id_text_eq)){
this.getSearchCond().eq("restrict_partner_id_text", n_restrict_partner_id_text_eq);
}
}
private String n_restrict_partner_id_text_like;//[所有者]
public void setN_restrict_partner_id_text_like(String n_restrict_partner_id_text_like) {
this.n_restrict_partner_id_text_like = n_restrict_partner_id_text_like;
if(!ObjectUtils.isEmpty(this.n_restrict_partner_id_text_like)){
this.getSearchCond().like("restrict_partner_id_text", n_restrict_partner_id_text_like);
}
}
private String n_inventory_id_text_eq;//[库存]
public void setN_inventory_id_text_eq(String n_inventory_id_text_eq) {
this.n_inventory_id_text_eq = n_inventory_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_inventory_id_text_eq)){
this.getSearchCond().eq("inventory_id_text", n_inventory_id_text_eq);
}
}
private String n_inventory_id_text_like;//[库存]
public void setN_inventory_id_text_like(String n_inventory_id_text_like) {
this.n_inventory_id_text_like = n_inventory_id_text_like;
if(!ObjectUtils.isEmpty(this.n_inventory_id_text_like)){
this.getSearchCond().like("inventory_id_text", n_inventory_id_text_like);
}
}
private String n_rule_id_text_eq;//[库存规则]
public void setN_rule_id_text_eq(String n_rule_id_text_eq) {
this.n_rule_id_text_eq = n_rule_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_rule_id_text_eq)){
this.getSearchCond().eq("rule_id_text", n_rule_id_text_eq);
}
}
private String n_rule_id_text_like;//[库存规则]
public void setN_rule_id_text_like(String n_rule_id_text_like) {
this.n_rule_id_text_like = n_rule_id_text_like;
if(!ObjectUtils.isEmpty(this.n_rule_id_text_like)){
this.getSearchCond().like("rule_id_text", n_rule_id_text_like);
}
}
private String n_write_uid_text_eq;//[最后更新者]
public void setN_write_uid_text_eq(String n_write_uid_text_eq) {
this.n_write_uid_text_eq = n_write_uid_text_eq;
if(!ObjectUtils.isEmpty(this.n_write_uid_text_eq)){
this.getSearchCond().eq("write_uid_text", n_write_uid_text_eq);
}
}
private String n_write_uid_text_like;//[最后更新者]
public void setN_write_uid_text_like(String n_write_uid_text_like) {
this.n_write_uid_text_like = n_write_uid_text_like;
if(!ObjectUtils.isEmpty(this.n_write_uid_text_like)){
this.getSearchCond().like("write_uid_text", n_write_uid_text_like);
}
}
private Long n_created_production_id_eq;//[创建生产订单]
public void setN_created_production_id_eq(Long n_created_production_id_eq) {
this.n_created_production_id_eq = n_created_production_id_eq;
if(!ObjectUtils.isEmpty(this.n_created_production_id_eq)){
this.getSearchCond().eq("created_production_id", n_created_production_id_eq);
}
}
private Long n_consume_unbuild_id_eq;//[拆卸单]
public void setN_consume_unbuild_id_eq(Long n_consume_unbuild_id_eq) {
this.n_consume_unbuild_id_eq = n_consume_unbuild_id_eq;
if(!ObjectUtils.isEmpty(this.n_consume_unbuild_id_eq)){
this.getSearchCond().eq("consume_unbuild_id", n_consume_unbuild_id_eq);
}
}
private Long n_sale_line_id_eq;//[销售明细行]
public void setN_sale_line_id_eq(Long n_sale_line_id_eq) {
this.n_sale_line_id_eq = n_sale_line_id_eq;
if(!ObjectUtils.isEmpty(this.n_sale_line_id_eq)){
this.getSearchCond().eq("sale_line_id", n_sale_line_id_eq);
}
}
private Long n_origin_returned_move_id_eq;//[原始退回移动]
public void setN_origin_returned_move_id_eq(Long n_origin_returned_move_id_eq) {
this.n_origin_returned_move_id_eq = n_origin_returned_move_id_eq;
if(!ObjectUtils.isEmpty(this.n_origin_returned_move_id_eq)){
this.getSearchCond().eq("origin_returned_move_id", n_origin_returned_move_id_eq);
}
}
private Long n_picking_type_id_eq;//[作业类型]
public void setN_picking_type_id_eq(Long n_picking_type_id_eq) {
this.n_picking_type_id_eq = n_picking_type_id_eq;
if(!ObjectUtils.isEmpty(this.n_picking_type_id_eq)){
this.getSearchCond().eq("picking_type_id", n_picking_type_id_eq);
}
}
private Long n_operation_id_eq;//[待加工的作业]
public void setN_operation_id_eq(Long n_operation_id_eq) {
this.n_operation_id_eq = n_operation_id_eq;
if(!ObjectUtils.isEmpty(this.n_operation_id_eq)){
this.getSearchCond().eq("operation_id", n_operation_id_eq);
}
}
private Long n_bom_line_id_eq;//[BOM行]
public void setN_bom_line_id_eq(Long n_bom_line_id_eq) {
this.n_bom_line_id_eq = n_bom_line_id_eq;
if(!ObjectUtils.isEmpty(this.n_bom_line_id_eq)){
this.getSearchCond().eq("bom_line_id", n_bom_line_id_eq);
}
}
private Long n_repair_id_eq;//[维修]
public void setN_repair_id_eq(Long n_repair_id_eq) {
this.n_repair_id_eq = n_repair_id_eq;
if(!ObjectUtils.isEmpty(this.n_repair_id_eq)){
this.getSearchCond().eq("repair_id", n_repair_id_eq);
}
}
private Long n_product_id_eq;//[产品]
public void setN_product_id_eq(Long n_product_id_eq) {
this.n_product_id_eq = n_product_id_eq;
if(!ObjectUtils.isEmpty(this.n_product_id_eq)){
this.getSearchCond().eq("product_id", n_product_id_eq);
}
}
private Long n_unbuild_id_eq;//[拆卸顺序]
public void setN_unbuild_id_eq(Long n_unbuild_id_eq) {
this.n_unbuild_id_eq = n_unbuild_id_eq;
if(!ObjectUtils.isEmpty(this.n_unbuild_id_eq)){
this.getSearchCond().eq("unbuild_id", n_unbuild_id_eq);
}
}
private Long n_production_id_eq;//[成品的生产订单]
public void setN_production_id_eq(Long n_production_id_eq) {
this.n_production_id_eq = n_production_id_eq;
if(!ObjectUtils.isEmpty(this.n_production_id_eq)){
this.getSearchCond().eq("production_id", n_production_id_eq);
}
}
private Long n_created_purchase_line_id_eq;//[创建采购订单行]
public void setN_created_purchase_line_id_eq(Long n_created_purchase_line_id_eq) {
this.n_created_purchase_line_id_eq = n_created_purchase_line_id_eq;
if(!ObjectUtils.isEmpty(this.n_created_purchase_line_id_eq)){
this.getSearchCond().eq("created_purchase_line_id", n_created_purchase_line_id_eq);
}
}
private Long n_workorder_id_eq;//[待消耗的工单]
public void setN_workorder_id_eq(Long n_workorder_id_eq) {
this.n_workorder_id_eq = n_workorder_id_eq;
if(!ObjectUtils.isEmpty(this.n_workorder_id_eq)){
this.getSearchCond().eq("workorder_id", n_workorder_id_eq);
}
}
private Long n_product_uom_eq;//[单位]
public void setN_product_uom_eq(Long n_product_uom_eq) {
this.n_product_uom_eq = n_product_uom_eq;
if(!ObjectUtils.isEmpty(this.n_product_uom_eq)){
this.getSearchCond().eq("product_uom", n_product_uom_eq);
}
}
private Long n_picking_id_eq;//[调拨参照]
public void setN_picking_id_eq(Long n_picking_id_eq) {
this.n_picking_id_eq = n_picking_id_eq;
if(!ObjectUtils.isEmpty(this.n_picking_id_eq)){
this.getSearchCond().eq("picking_id", n_picking_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_create_uid_eq;//[创建人]
public void setN_create_uid_eq(Long n_create_uid_eq) {
this.n_create_uid_eq = n_create_uid_eq;
if(!ObjectUtils.isEmpty(this.n_create_uid_eq)){
this.getSearchCond().eq("create_uid", n_create_uid_eq);
}
}
private Long n_package_level_id_eq;//[包裹层级]
public void setN_package_level_id_eq(Long n_package_level_id_eq) {
this.n_package_level_id_eq = n_package_level_id_eq;
if(!ObjectUtils.isEmpty(this.n_package_level_id_eq)){
this.getSearchCond().eq("package_level_id", n_package_level_id_eq);
}
}
private Long n_product_packaging_eq;//[首选包装]
public void setN_product_packaging_eq(Long n_product_packaging_eq) {
this.n_product_packaging_eq = n_product_packaging_eq;
if(!ObjectUtils.isEmpty(this.n_product_packaging_eq)){
this.getSearchCond().eq("product_packaging", n_product_packaging_eq);
}
}
private Long n_restrict_partner_id_eq;//[所有者]
public void setN_restrict_partner_id_eq(Long n_restrict_partner_id_eq) {
this.n_restrict_partner_id_eq = n_restrict_partner_id_eq;
if(!ObjectUtils.isEmpty(this.n_restrict_partner_id_eq)){
this.getSearchCond().eq("restrict_partner_id", n_restrict_partner_id_eq);
}
}
private Long n_rule_id_eq;//[库存规则]
public void setN_rule_id_eq(Long n_rule_id_eq) {
this.n_rule_id_eq = n_rule_id_eq;
if(!ObjectUtils.isEmpty(this.n_rule_id_eq)){
this.getSearchCond().eq("rule_id", n_rule_id_eq);
}
}
private Long n_warehouse_id_eq;//[仓库]
public void setN_warehouse_id_eq(Long n_warehouse_id_eq) {
this.n_warehouse_id_eq = n_warehouse_id_eq;
if(!ObjectUtils.isEmpty(this.n_warehouse_id_eq)){
this.getSearchCond().eq("warehouse_id", n_warehouse_id_eq);
}
}
private Long n_location_dest_id_eq;//[目的位置]
public void setN_location_dest_id_eq(Long n_location_dest_id_eq) {
this.n_location_dest_id_eq = n_location_dest_id_eq;
if(!ObjectUtils.isEmpty(this.n_location_dest_id_eq)){
this.getSearchCond().eq("location_dest_id", n_location_dest_id_eq);
}
}
private Long n_raw_material_production_id_eq;//[原材料的生产订单]
public void setN_raw_material_production_id_eq(Long n_raw_material_production_id_eq) {
this.n_raw_material_production_id_eq = n_raw_material_production_id_eq;
if(!ObjectUtils.isEmpty(this.n_raw_material_production_id_eq)){
this.getSearchCond().eq("raw_material_production_id", n_raw_material_production_id_eq);
}
}
private Long n_inventory_id_eq;//[库存]
public void setN_inventory_id_eq(Long n_inventory_id_eq) {
this.n_inventory_id_eq = n_inventory_id_eq;
if(!ObjectUtils.isEmpty(this.n_inventory_id_eq)){
this.getSearchCond().eq("inventory_id", n_inventory_id_eq);
}
}
private Long n_purchase_line_id_eq;//[采购订单行]
public void setN_purchase_line_id_eq(Long n_purchase_line_id_eq) {
this.n_purchase_line_id_eq = n_purchase_line_id_eq;
if(!ObjectUtils.isEmpty(this.n_purchase_line_id_eq)){
this.getSearchCond().eq("purchase_line_id", n_purchase_line_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_company_id_eq;//[公司]
public void setN_company_id_eq(Long n_company_id_eq) {
this.n_company_id_eq = n_company_id_eq;
if(!ObjectUtils.isEmpty(this.n_company_id_eq)){
this.getSearchCond().eq("company_id", n_company_id_eq);
}
}
private Long n_write_uid_eq;//[最后更新者]
public void setN_write_uid_eq(Long n_write_uid_eq) {
this.n_write_uid_eq = n_write_uid_eq;
if(!ObjectUtils.isEmpty(this.n_write_uid_eq)){
this.getSearchCond().eq("write_uid", n_write_uid_eq);
}
}
/**
* 启用快速搜索
......
......@@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSONObject;
public interface Stock_moveMapper extends BaseMapper<Stock_move>{
Page<Stock_move> searchDefault(IPage page, @Param("srf") Stock_moveSearchContext context, @Param("ew") Wrapper<Stock_move> wrapper) ;
@Override
Stock_move selectById(Serializable id);
@Override
......@@ -61,4 +62,62 @@ public interface Stock_moveMapper extends BaseMapper<Stock_move>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<Stock_move> selectByBomLineId(@Param("id") Serializable id) ;
List<Stock_move> selectByCreatedProductionId(@Param("id") Serializable id) ;
List<Stock_move> selectByProductionId(@Param("id") Serializable id) ;
List<Stock_move> selectByRawMaterialProductionId(@Param("id") Serializable id) ;
List<Stock_move> selectByOperationId(@Param("id") Serializable id) ;
List<Stock_move> selectByConsumeUnbuildId(@Param("id") Serializable id) ;
List<Stock_move> selectByUnbuildId(@Param("id") Serializable id) ;
List<Stock_move> selectByWorkorderId(@Param("id") Serializable id) ;
List<Stock_move> selectByProductPackaging(@Param("id") Serializable id) ;
List<Stock_move> selectByProductId(@Param("id") Serializable id) ;
List<Stock_move> selectByCreatedPurchaseLineId(@Param("id") Serializable id) ;
List<Stock_move> selectByPurchaseLineId(@Param("id") Serializable id) ;
List<Stock_move> selectByRepairId(@Param("id") Serializable id) ;
List<Stock_move> selectByCompanyId(@Param("id") Serializable id) ;
List<Stock_move> selectByPartnerId(@Param("id") Serializable id) ;
List<Stock_move> selectByRestrictPartnerId(@Param("id") Serializable id) ;
List<Stock_move> selectByCreateUid(@Param("id") Serializable id) ;
List<Stock_move> selectByWriteUid(@Param("id") Serializable id) ;
List<Stock_move> selectBySaleLineId(@Param("id") Serializable id) ;
List<Stock_move> selectByInventoryId(@Param("id") Serializable id) ;
List<Stock_move> selectByLocationDestId(@Param("id") Serializable id) ;
List<Stock_move> selectByLocationId(@Param("id") Serializable id) ;
List<Stock_move> selectByOriginReturnedMoveId(@Param("id") Serializable id) ;
List<Stock_move> selectByPackageLevelId(@Param("id") Serializable id) ;
List<Stock_move> selectByPickingTypeId(@Param("id") Serializable id) ;
List<Stock_move> selectByPickingId(@Param("id") Serializable id) ;
List<Stock_move> selectByRuleId(@Param("id") Serializable id) ;
List<Stock_move> selectByWarehouseId(@Param("id") Serializable id) ;
List<Stock_move> selectByProductUom(@Param("id") Serializable id) ;
}
......@@ -33,6 +33,126 @@ public interface IStock_moveService extends IService<Stock_move>{
boolean remove(Long key) ;
void removeBatch(Collection<Long> idList) ;
Stock_move get(Long key) ;
Stock_move getDraft(Stock_move et) ;
boolean checkKey(Stock_move et) ;
boolean save(Stock_move et) ;
void saveBatch(List<Stock_move> list) ;
Page<Stock_move> searchDefault(Stock_moveSearchContext context) ;
List<Stock_move> selectByBomLineId(Long id);
void resetByBomLineId(Long id);
void resetByBomLineId(Collection<Long> ids);
void removeByBomLineId(Long id);
List<Stock_move> selectByCreatedProductionId(Long id);
void resetByCreatedProductionId(Long id);
void resetByCreatedProductionId(Collection<Long> ids);
void removeByCreatedProductionId(Long id);
List<Stock_move> selectByProductionId(Long id);
void resetByProductionId(Long id);
void resetByProductionId(Collection<Long> ids);
void removeByProductionId(Long id);
List<Stock_move> selectByRawMaterialProductionId(Long id);
void resetByRawMaterialProductionId(Long id);
void resetByRawMaterialProductionId(Collection<Long> ids);
void removeByRawMaterialProductionId(Long id);
List<Stock_move> selectByOperationId(Long id);
void resetByOperationId(Long id);
void resetByOperationId(Collection<Long> ids);
void removeByOperationId(Long id);
List<Stock_move> selectByConsumeUnbuildId(Long id);
void resetByConsumeUnbuildId(Long id);
void resetByConsumeUnbuildId(Collection<Long> ids);
void removeByConsumeUnbuildId(Long id);
List<Stock_move> selectByUnbuildId(Long id);
void resetByUnbuildId(Long id);
void resetByUnbuildId(Collection<Long> ids);
void removeByUnbuildId(Long id);
List<Stock_move> selectByWorkorderId(Long id);
void resetByWorkorderId(Long id);
void resetByWorkorderId(Collection<Long> ids);
void removeByWorkorderId(Long id);
List<Stock_move> selectByProductPackaging(Long id);
void resetByProductPackaging(Long id);
void resetByProductPackaging(Collection<Long> ids);
void removeByProductPackaging(Long id);
List<Stock_move> selectByProductId(Long id);
void resetByProductId(Long id);
void resetByProductId(Collection<Long> ids);
void removeByProductId(Long id);
List<Stock_move> selectByCreatedPurchaseLineId(Long id);
void resetByCreatedPurchaseLineId(Long id);
void resetByCreatedPurchaseLineId(Collection<Long> ids);
void removeByCreatedPurchaseLineId(Long id);
List<Stock_move> selectByPurchaseLineId(Long id);
void resetByPurchaseLineId(Long id);
void resetByPurchaseLineId(Collection<Long> ids);
void removeByPurchaseLineId(Long id);
List<Stock_move> selectByRepairId(Long id);
void resetByRepairId(Long id);
void resetByRepairId(Collection<Long> ids);
void removeByRepairId(Long id);
List<Stock_move> selectByCompanyId(Long id);
void resetByCompanyId(Long id);
void resetByCompanyId(Collection<Long> ids);
void removeByCompanyId(Long id);
List<Stock_move> selectByPartnerId(Long id);
void resetByPartnerId(Long id);
void resetByPartnerId(Collection<Long> ids);
void removeByPartnerId(Long id);
List<Stock_move> selectByRestrictPartnerId(Long id);
void resetByRestrictPartnerId(Long id);
void resetByRestrictPartnerId(Collection<Long> ids);
void removeByRestrictPartnerId(Long id);
List<Stock_move> selectByCreateUid(Long id);
void resetByCreateUid(Long id);
void resetByCreateUid(Collection<Long> ids);
void removeByCreateUid(Long id);
List<Stock_move> selectByWriteUid(Long id);
void resetByWriteUid(Long id);
void resetByWriteUid(Collection<Long> ids);
void removeByWriteUid(Long id);
List<Stock_move> selectBySaleLineId(Long id);
void resetBySaleLineId(Long id);
void resetBySaleLineId(Collection<Long> ids);
void removeBySaleLineId(Long id);
List<Stock_move> selectByInventoryId(Long id);
void resetByInventoryId(Long id);
void resetByInventoryId(Collection<Long> ids);
void removeByInventoryId(Long id);
List<Stock_move> selectByLocationDestId(Long id);
void resetByLocationDestId(Long id);
void resetByLocationDestId(Collection<Long> ids);
void removeByLocationDestId(Long id);
List<Stock_move> selectByLocationId(Long id);
void resetByLocationId(Long id);
void resetByLocationId(Collection<Long> ids);
void removeByLocationId(Long id);
List<Stock_move> selectByOriginReturnedMoveId(Long id);
void resetByOriginReturnedMoveId(Long id);
void resetByOriginReturnedMoveId(Collection<Long> ids);
void removeByOriginReturnedMoveId(Long id);
List<Stock_move> selectByPackageLevelId(Long id);
void resetByPackageLevelId(Long id);
void resetByPackageLevelId(Collection<Long> ids);
void removeByPackageLevelId(Long id);
List<Stock_move> selectByPickingTypeId(Long id);
void resetByPickingTypeId(Long id);
void resetByPickingTypeId(Collection<Long> ids);
void removeByPickingTypeId(Long id);
List<Stock_move> selectByPickingId(Long id);
void resetByPickingId(Long id);
void resetByPickingId(Collection<Long> ids);
void removeByPickingId(Long id);
List<Stock_move> selectByRuleId(Long id);
List<Stock_move> selectByRuleId(Collection<Long> ids);
void removeByRuleId(Long id);
List<Stock_move> selectByWarehouseId(Long id);
void resetByWarehouseId(Long id);
void resetByWarehouseId(Collection<Long> ids);
void removeByWarehouseId(Long id);
List<Stock_move> selectByProductUom(Long id);
void resetByProductUom(Long id);
void resetByProductUom(Collection<Long> ids);
void removeByProductUom(Long id);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
......
......@@ -247,7 +247,605 @@ public class Stock_moveServiceImpl extends EBSServiceImpl<Stock_moveMapper, Stoc
return et;
}
@Override
public Stock_move getDraft(Stock_move et) {
fillParentData(et);
return et;
}
@Override
public boolean checkKey(Stock_move et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId())));
}
@Override
@Transactional
public boolean save(Stock_move et) {
if(!saveOrUpdate(et))
return false;
return true;
}
@Override
@Transactional
public boolean saveOrUpdate(Stock_move et) {
if (null == et) {
return false;
} else {
return checkKey(et) ? this.update(et) : this.create(et);
}
}
@Override
@Transactional
public boolean saveBatch(Collection<Stock_move> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
@Transactional
public void saveBatch(List<Stock_move> list) {
list.forEach(item->fillParentData(item));
saveOrUpdateBatch(list,batchSize);
}
@Override
public List<Stock_move> selectByBomLineId(Long id) {
return baseMapper.selectByBomLineId(id);
}
@Override
public void resetByBomLineId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("bom_line_id",null).eq("bom_line_id",id));
}
@Override
public void resetByBomLineId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("bom_line_id",null).in("bom_line_id",ids));
}
@Override
public void removeByBomLineId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("bom_line_id",id));
}
@Override
public List<Stock_move> selectByCreatedProductionId(Long id) {
return baseMapper.selectByCreatedProductionId(id);
}
@Override
public void resetByCreatedProductionId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("created_production_id",null).eq("created_production_id",id));
}
@Override
public void resetByCreatedProductionId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("created_production_id",null).in("created_production_id",ids));
}
@Override
public void removeByCreatedProductionId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("created_production_id",id));
}
@Override
public List<Stock_move> selectByProductionId(Long id) {
return baseMapper.selectByProductionId(id);
}
@Override
public void resetByProductionId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("production_id",null).eq("production_id",id));
}
@Override
public void resetByProductionId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("production_id",null).in("production_id",ids));
}
@Override
public void removeByProductionId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("production_id",id));
}
@Override
public List<Stock_move> selectByRawMaterialProductionId(Long id) {
return baseMapper.selectByRawMaterialProductionId(id);
}
@Override
public void resetByRawMaterialProductionId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("raw_material_production_id",null).eq("raw_material_production_id",id));
}
@Override
public void resetByRawMaterialProductionId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("raw_material_production_id",null).in("raw_material_production_id",ids));
}
@Override
public void removeByRawMaterialProductionId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("raw_material_production_id",id));
}
@Override
public List<Stock_move> selectByOperationId(Long id) {
return baseMapper.selectByOperationId(id);
}
@Override
public void resetByOperationId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("operation_id",null).eq("operation_id",id));
}
@Override
public void resetByOperationId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("operation_id",null).in("operation_id",ids));
}
@Override
public void removeByOperationId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("operation_id",id));
}
@Override
public List<Stock_move> selectByConsumeUnbuildId(Long id) {
return baseMapper.selectByConsumeUnbuildId(id);
}
@Override
public void resetByConsumeUnbuildId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("consume_unbuild_id",null).eq("consume_unbuild_id",id));
}
@Override
public void resetByConsumeUnbuildId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("consume_unbuild_id",null).in("consume_unbuild_id",ids));
}
@Override
public void removeByConsumeUnbuildId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("consume_unbuild_id",id));
}
@Override
public List<Stock_move> selectByUnbuildId(Long id) {
return baseMapper.selectByUnbuildId(id);
}
@Override
public void resetByUnbuildId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("unbuild_id",null).eq("unbuild_id",id));
}
@Override
public void resetByUnbuildId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("unbuild_id",null).in("unbuild_id",ids));
}
@Override
public void removeByUnbuildId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("unbuild_id",id));
}
@Override
public List<Stock_move> selectByWorkorderId(Long id) {
return baseMapper.selectByWorkorderId(id);
}
@Override
public void resetByWorkorderId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("workorder_id",null).eq("workorder_id",id));
}
@Override
public void resetByWorkorderId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("workorder_id",null).in("workorder_id",ids));
}
@Override
public void removeByWorkorderId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("workorder_id",id));
}
@Override
public List<Stock_move> selectByProductPackaging(Long id) {
return baseMapper.selectByProductPackaging(id);
}
@Override
public void resetByProductPackaging(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("product_packaging",null).eq("product_packaging",id));
}
@Override
public void resetByProductPackaging(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("product_packaging",null).in("product_packaging",ids));
}
@Override
public void removeByProductPackaging(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("product_packaging",id));
}
@Override
public List<Stock_move> selectByProductId(Long id) {
return baseMapper.selectByProductId(id);
}
@Override
public void resetByProductId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("product_id",null).eq("product_id",id));
}
@Override
public void resetByProductId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("product_id",null).in("product_id",ids));
}
@Override
public void removeByProductId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("product_id",id));
}
@Override
public List<Stock_move> selectByCreatedPurchaseLineId(Long id) {
return baseMapper.selectByCreatedPurchaseLineId(id);
}
@Override
public void resetByCreatedPurchaseLineId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("created_purchase_line_id",null).eq("created_purchase_line_id",id));
}
@Override
public void resetByCreatedPurchaseLineId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("created_purchase_line_id",null).in("created_purchase_line_id",ids));
}
@Override
public void removeByCreatedPurchaseLineId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("created_purchase_line_id",id));
}
@Override
public List<Stock_move> selectByPurchaseLineId(Long id) {
return baseMapper.selectByPurchaseLineId(id);
}
@Override
public void resetByPurchaseLineId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("purchase_line_id",null).eq("purchase_line_id",id));
}
@Override
public void resetByPurchaseLineId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("purchase_line_id",null).in("purchase_line_id",ids));
}
@Override
public void removeByPurchaseLineId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("purchase_line_id",id));
}
@Override
public List<Stock_move> selectByRepairId(Long id) {
return baseMapper.selectByRepairId(id);
}
@Override
public void resetByRepairId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("repair_id",null).eq("repair_id",id));
}
@Override
public void resetByRepairId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("repair_id",null).in("repair_id",ids));
}
@Override
public void removeByRepairId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("repair_id",id));
}
@Override
public List<Stock_move> selectByCompanyId(Long id) {
return baseMapper.selectByCompanyId(id);
}
@Override
public void resetByCompanyId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("company_id",null).eq("company_id",id));
}
@Override
public void resetByCompanyId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("company_id",null).in("company_id",ids));
}
@Override
public void removeByCompanyId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("company_id",id));
}
@Override
public List<Stock_move> selectByPartnerId(Long id) {
return baseMapper.selectByPartnerId(id);
}
@Override
public void resetByPartnerId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("partner_id",null).eq("partner_id",id));
}
@Override
public void resetByPartnerId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("partner_id",null).in("partner_id",ids));
}
@Override
public void removeByPartnerId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("partner_id",id));
}
@Override
public List<Stock_move> selectByRestrictPartnerId(Long id) {
return baseMapper.selectByRestrictPartnerId(id);
}
@Override
public void resetByRestrictPartnerId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("restrict_partner_id",null).eq("restrict_partner_id",id));
}
@Override
public void resetByRestrictPartnerId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("restrict_partner_id",null).in("restrict_partner_id",ids));
}
@Override
public void removeByRestrictPartnerId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("restrict_partner_id",id));
}
@Override
public List<Stock_move> selectByCreateUid(Long id) {
return baseMapper.selectByCreateUid(id);
}
@Override
public void resetByCreateUid(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("create_uid",null).eq("create_uid",id));
}
@Override
public void resetByCreateUid(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("create_uid",null).in("create_uid",ids));
}
@Override
public void removeByCreateUid(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("create_uid",id));
}
@Override
public List<Stock_move> selectByWriteUid(Long id) {
return baseMapper.selectByWriteUid(id);
}
@Override
public void resetByWriteUid(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("write_uid",null).eq("write_uid",id));
}
@Override
public void resetByWriteUid(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("write_uid",null).in("write_uid",ids));
}
@Override
public void removeByWriteUid(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("write_uid",id));
}
@Override
public List<Stock_move> selectBySaleLineId(Long id) {
return baseMapper.selectBySaleLineId(id);
}
@Override
public void resetBySaleLineId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("sale_line_id",null).eq("sale_line_id",id));
}
@Override
public void resetBySaleLineId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("sale_line_id",null).in("sale_line_id",ids));
}
@Override
public void removeBySaleLineId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("sale_line_id",id));
}
@Override
public List<Stock_move> selectByInventoryId(Long id) {
return baseMapper.selectByInventoryId(id);
}
@Override
public void resetByInventoryId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("inventory_id",null).eq("inventory_id",id));
}
@Override
public void resetByInventoryId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("inventory_id",null).in("inventory_id",ids));
}
@Override
public void removeByInventoryId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("inventory_id",id));
}
@Override
public List<Stock_move> selectByLocationDestId(Long id) {
return baseMapper.selectByLocationDestId(id);
}
@Override
public void resetByLocationDestId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("location_dest_id",null).eq("location_dest_id",id));
}
@Override
public void resetByLocationDestId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("location_dest_id",null).in("location_dest_id",ids));
}
@Override
public void removeByLocationDestId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("location_dest_id",id));
}
@Override
public List<Stock_move> selectByLocationId(Long id) {
return baseMapper.selectByLocationId(id);
}
@Override
public void resetByLocationId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("location_id",null).eq("location_id",id));
}
@Override
public void resetByLocationId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("location_id",null).in("location_id",ids));
}
@Override
public void removeByLocationId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("location_id",id));
}
@Override
public List<Stock_move> selectByOriginReturnedMoveId(Long id) {
return baseMapper.selectByOriginReturnedMoveId(id);
}
@Override
public void resetByOriginReturnedMoveId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("origin_returned_move_id",null).eq("origin_returned_move_id",id));
}
@Override
public void resetByOriginReturnedMoveId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("origin_returned_move_id",null).in("origin_returned_move_id",ids));
}
@Override
public void removeByOriginReturnedMoveId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("origin_returned_move_id",id));
}
@Override
public List<Stock_move> selectByPackageLevelId(Long id) {
return baseMapper.selectByPackageLevelId(id);
}
@Override
public void resetByPackageLevelId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("package_level_id",null).eq("package_level_id",id));
}
@Override
public void resetByPackageLevelId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("package_level_id",null).in("package_level_id",ids));
}
@Override
public void removeByPackageLevelId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("package_level_id",id));
}
@Override
public List<Stock_move> selectByPickingTypeId(Long id) {
return baseMapper.selectByPickingTypeId(id);
}
@Override
public void resetByPickingTypeId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("picking_type_id",null).eq("picking_type_id",id));
}
@Override
public void resetByPickingTypeId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("picking_type_id",null).in("picking_type_id",ids));
}
@Override
public void removeByPickingTypeId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("picking_type_id",id));
}
@Override
public List<Stock_move> selectByPickingId(Long id) {
return baseMapper.selectByPickingId(id);
}
@Override
public void resetByPickingId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("picking_id",null).eq("picking_id",id));
}
@Override
public void resetByPickingId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("picking_id",null).in("picking_id",ids));
}
@Override
public void removeByPickingId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("picking_id",id));
}
@Override
public List<Stock_move> selectByRuleId(Long id) {
return baseMapper.selectByRuleId(id);
}
@Override
public List<Stock_move> selectByRuleId(Collection<Long> ids) {
return this.list(new QueryWrapper<Stock_move>().in("id",ids));
}
@Override
public void removeByRuleId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("rule_id",id));
}
@Override
public List<Stock_move> selectByWarehouseId(Long id) {
return baseMapper.selectByWarehouseId(id);
}
@Override
public void resetByWarehouseId(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("warehouse_id",null).eq("warehouse_id",id));
}
@Override
public void resetByWarehouseId(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("warehouse_id",null).in("warehouse_id",ids));
}
@Override
public void removeByWarehouseId(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("warehouse_id",id));
}
@Override
public List<Stock_move> selectByProductUom(Long id) {
return baseMapper.selectByProductUom(id);
}
@Override
public void resetByProductUom(Long id) {
this.update(new UpdateWrapper<Stock_move>().set("product_uom",null).eq("product_uom",id));
}
@Override
public void resetByProductUom(Collection<Long> ids) {
this.update(new UpdateWrapper<Stock_move>().set("product_uom",null).in("product_uom",ids));
}
@Override
public void removeByProductUom(Long id) {
this.remove(new QueryWrapper<Stock_move>().eq("product_uom",id));
}
/**
* 查询集合 数据集
*/
@Override
public Page<Stock_move> searchDefault(Stock_moveSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Stock_move> pages=baseMapper.searchDefault(context.getPages(),context,context.getSelectCond());
return new PageImpl<Stock_move>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
......
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_invoiceMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Account_invoiceResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCESS_TOKEN, t1.ACCOUNT_ID, t121.NAME AS ACCOUNT_ID_TEXT, t1.AMOUNT_TAX, t1.AMOUNT_TOTAL, t1.AMOUNT_TOTAL_COMPANY_SIGNED, t1.AMOUNT_TOTAL_SIGNED, t1.AMOUNT_UNTAXED, t1.AMOUNT_UNTAXED_SIGNED, t1.CAMPAIGN_ID, t51.NAME AS CAMPAIGN_ID_TEXT, t1.CASH_ROUNDING_ID, t211.NAME AS CASH_ROUNDING_ID_TEXT, t1.COMMENT, t1.COMMERCIAL_PARTNER_ID, t261.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t111.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t181.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t171.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t71.NAME AS CURRENCY_ID_TEXT, t1.DATE, t1.DATE_DUE, t1.DATE_INVOICE, t1.FISCAL_POSITION_ID, t241.NAME AS FISCAL_POSITION_ID_TEXT, t1.ID, t1.INCOTERMS_ID, t101.NAME AS INCOTERMS_ID_TEXT, t1.INCOTERM_ID, t131.NAME AS INCOTERM_ID_TEXT, t1.JOURNAL_ID, t11.NAME AS JOURNAL_ID_TEXT, t1.MEDIUM_ID, t151.NAME AS MEDIUM_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOVE_ID, t1.MOVE_NAME, t1.NAME, t251.NAME AS NUMBER, t1.ORIGIN, t1.PARTNER_BANK_ID, t1.PARTNER_ID, t141.NAME AS PARTNER_ID_TEXT, t1.PARTNER_SHIPPING_ID, t61.NAME AS PARTNER_SHIPPING_ID_TEXT, t1.PAYMENT_TERM_ID, t281.NAME AS PAYMENT_TERM_ID_TEXT, t1.PURCHASE_ID, t21.NAME AS PURCHASE_ID_TEXT, t1.RECONCILED, t1.REFERENCE, t1.REFUND_INVOICE_ID, t231.NAME AS REFUND_INVOICE_ID_TEXT, t1.RESIDUAL, t1.RESIDUAL_COMPANY_SIGNED, t1.RESIDUAL_SIGNED, t1.SENT, t1.SOURCE_EMAIL, t1.SOURCE_ID, t41.NAME AS SOURCE_ID_TEXT, t1.STATE, t1.TEAM_ID, t271.NAME AS TEAM_ID_TEXT, t1.TYPE, t1.USER_ID, t201.NAME AS USER_ID_TEXT, t1.VENDOR_BILL_ID, t221.NAME AS VENDOR_BILL_ID_TEXT, t1.VENDOR_BILL_PURCHASE_ID, t31.NAME AS VENDOR_BILL_PURCHASE_ID_TEXT, t1.VENDOR_DISPLAY_NAME, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INVOICE t1 LEFT JOIN ACCOUNT_JOURNAL t11 ON t1.JOURNAL_ID = t11.ID LEFT JOIN PURCHASE_ORDER t21 ON t1.PURCHASE_ID = t21.ID LEFT JOIN PURCHASE_BILL_UNION t31 ON t1.VENDOR_BILL_PURCHASE_ID = t31.ID LEFT JOIN UTM_SOURCE t41 ON t1.SOURCE_ID = t41.ID LEFT JOIN UTM_CAMPAIGN t51 ON t1.CAMPAIGN_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.PARTNER_SHIPPING_ID = t61.ID LEFT JOIN RES_CURRENCY t71 ON t1.CURRENCY_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 LEFT JOIN ACCOUNT_INCOTERMS t101 ON t1.INCOTERMS_ID = t101.ID LEFT JOIN RES_COMPANY t111 ON t1.COMPANY_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.ACCOUNT_ID = t121.ID LEFT JOIN ACCOUNT_INCOTERMS t131 ON t1.INCOTERM_ID = t131.ID LEFT JOIN RES_PARTNER t141 ON t1.PARTNER_ID = t141.ID LEFT JOIN UTM_MEDIUM t151 ON t1.MEDIUM_ID = t151.ID LEFT JOIN RES_USERS t161 ON t1.CREATE_UID = t161.ID LEFT JOIN RES_PARTNER t171 ON t161.PARTNER_ID = t171.ID LEFT JOIN RES_PARTNER t181 ON t111.PARTNER_ID = t181.ID LEFT JOIN RES_USERS t191 ON t1.USER_ID = t191.ID LEFT JOIN RES_PARTNER t201 ON t191.PARTNER_ID = t201.ID LEFT JOIN ACCOUNT_CASH_ROUNDING t211 ON t1.CASH_ROUNDING_ID = t211.ID LEFT JOIN ACCOUNT_INVOICE t221 ON t1.VENDOR_BILL_ID = t221.ID LEFT JOIN ACCOUNT_INVOICE t231 ON t1.REFUND_INVOICE_ID = t231.ID LEFT JOIN ACCOUNT_FISCAL_POSITION t241 ON t1.FISCAL_POSITION_ID = t241.ID LEFT JOIN ACCOUNT_MOVE t251 ON t1.MOVE_ID = t251.ID LEFT JOIN RES_PARTNER t261 ON t1.COMMERCIAL_PARTNER_ID = t261.ID LEFT JOIN CRM_TEAM t271 ON t1.TEAM_ID = t271.ID LEFT JOIN ACCOUNT_PAYMENT_TERM t281 ON t1.PAYMENT_TERM_ID = t281.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Account_invoiceResultMap" type="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_invoice" autoMapping="true">
......@@ -169,31 +172,200 @@
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_ACCOUNT__ACCOUNT_ID] -->
<select id="selectByAccountId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where account_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_CASH_ROUNDING__CASH_ROUNDING_ID] -->
<select id="selectByCashRoundingId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where cash_rounding_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_FISCAL_POSITION__FISCAL_POSITION_ID] -->
<select id="selectByFiscalPositionId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where fiscal_position_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_INCOTERMS__INCOTERMS_ID] -->
<select id="selectByIncotermsId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where incoterms_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_INCOTERMS__INCOTERM_ID] -->
<select id="selectByIncotermId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where incoterm_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_INVOICE__REFUND_INVOICE_ID] -->
<select id="selectByRefundInvoiceId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where refund_invoice_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_INVOICE__VENDOR_BILL_ID] -->
<select id="selectByVendorBillId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where vendor_bill_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_JOURNAL__JOURNAL_ID] -->
<select id="selectByJournalId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where journal_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_MOVE__MOVE_ID] -->
<select id="selectByMoveId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where move_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__ACCOUNT_PAYMENT_TERM__PAYMENT_TERM_ID] -->
<select id="selectByPaymentTermId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where payment_term_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__CRM_TEAM__TEAM_ID] -->
<select id="selectByTeamId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where team_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__PURCHASE_BILL_UNION__VENDOR_BILL_PURCHASE_ID] -->
<select id="selectByVendorBillPurchaseId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where vendor_bill_purchase_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__PURCHASE_ORDER__PURCHASE_ID] -->
<select id="selectByPurchaseId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where purchase_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_COMPANY__COMPANY_ID] -->
<select id="selectByCompanyId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where company_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_CURRENCY__CURRENCY_ID] -->
<select id="selectByCurrencyId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where currency_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_PARTNER_BANK__PARTNER_BANK_ID] -->
<select id="selectByPartnerBankId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where partner_bank_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_PARTNER__COMMERCIAL_PARTNER_ID] -->
<select id="selectByCommercialPartnerId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where commercial_partner_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_PARTNER__PARTNER_ID] -->
<select id="selectByPartnerId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where partner_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_PARTNER__PARTNER_SHIPPING_ID] -->
<select id="selectByPartnerShippingId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where partner_shipping_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_USERS__CREATE_UID] -->
<select id="selectByCreateUid" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where create_uid=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_USERS__USER_ID] -->
<select id="selectByUserId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where user_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__RES_USERS__WRITE_UID] -->
<select id="selectByWriteUid" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where write_uid=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__UTM_CAMPAIGN__CAMPAIGN_ID] -->
<select id="selectByCampaignId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where campaign_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__UTM_MEDIUM__MEDIUM_ID] -->
<select id="selectByMediumId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where medium_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_INVOICE__UTM_SOURCE__SOURCE_ID] -->
<select id="selectBySourceId" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
) t1
where source_id=#{id}
</select>
<!--数据集合[Default]-->
<select id="searchDefault" parameterType="cn.ibizlab.businesscentral.core.odoo_account.filter.Account_invoiceSearchContext" resultMap="Account_invoiceResultMap">
select t1.* from (
<include refid="Default" />
)t1
<where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCESS_TOKEN, t1.ACCOUNT_ID, t121.NAME AS ACCOUNT_ID_TEXT, t1.AMOUNT_TAX, t1.AMOUNT_TOTAL, t1.AMOUNT_TOTAL_COMPANY_SIGNED, t1.AMOUNT_TOTAL_SIGNED, t1.AMOUNT_UNTAXED, t1.AMOUNT_UNTAXED_SIGNED, t1.CAMPAIGN_ID, t51.NAME AS CAMPAIGN_ID_TEXT, t1.CASH_ROUNDING_ID, t211.NAME AS CASH_ROUNDING_ID_TEXT, t1.COMMERCIAL_PARTNER_ID, t261.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t111.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t181.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t171.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t71.NAME AS CURRENCY_ID_TEXT, t1.DATE, t1.DATE_DUE, t1.DATE_INVOICE, t1.FISCAL_POSITION_ID, t241.NAME AS FISCAL_POSITION_ID_TEXT, t1.ID, t1.INCOTERMS_ID, t101.NAME AS INCOTERMS_ID_TEXT, t1.INCOTERM_ID, t131.NAME AS INCOTERM_ID_TEXT, t1.JOURNAL_ID, t11.NAME AS JOURNAL_ID_TEXT, t1.MEDIUM_ID, t151.NAME AS MEDIUM_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOVE_ID, t1.MOVE_NAME, t1.NAME, t251.NAME AS NUMBER, t1.ORIGIN, t1.PARTNER_BANK_ID, t1.PARTNER_ID, t141.NAME AS PARTNER_ID_TEXT, t1.PARTNER_SHIPPING_ID, t61.NAME AS PARTNER_SHIPPING_ID_TEXT, t1.PAYMENT_TERM_ID, t281.NAME AS PAYMENT_TERM_ID_TEXT, t1.PURCHASE_ID, t21.NAME AS PURCHASE_ID_TEXT, t1.RECONCILED, t1.REFERENCE, t1.REFUND_INVOICE_ID, t231.NAME AS REFUND_INVOICE_ID_TEXT, t1.RESIDUAL, t1.RESIDUAL_COMPANY_SIGNED, t1.RESIDUAL_SIGNED, t1.SENT, t1.SOURCE_EMAIL, t1.SOURCE_ID, t41.NAME AS SOURCE_ID_TEXT, t1.STATE, t1.TEAM_ID, t271.NAME AS TEAM_ID_TEXT, t1.TYPE, t1.USER_ID, t201.NAME AS USER_ID_TEXT, t1.VENDOR_BILL_ID, t221.NAME AS VENDOR_BILL_ID_TEXT, t1.VENDOR_BILL_PURCHASE_ID, t31.NAME AS VENDOR_BILL_PURCHASE_ID_TEXT, t1.VENDOR_DISPLAY_NAME, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INVOICE t1 LEFT JOIN ACCOUNT_JOURNAL t11 ON t1.JOURNAL_ID = t11.ID LEFT JOIN PURCHASE_ORDER t21 ON t1.PURCHASE_ID = t21.ID LEFT JOIN PURCHASE_BILL_UNION t31 ON t1.VENDOR_BILL_PURCHASE_ID = t31.ID LEFT JOIN UTM_SOURCE t41 ON t1.SOURCE_ID = t41.ID LEFT JOIN UTM_CAMPAIGN t51 ON t1.CAMPAIGN_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.PARTNER_SHIPPING_ID = t61.ID LEFT JOIN RES_CURRENCY t71 ON t1.CURRENCY_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 LEFT JOIN ACCOUNT_INCOTERMS t101 ON t1.INCOTERMS_ID = t101.ID LEFT JOIN RES_COMPANY t111 ON t1.COMPANY_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.ACCOUNT_ID = t121.ID LEFT JOIN ACCOUNT_INCOTERMS t131 ON t1.INCOTERM_ID = t131.ID LEFT JOIN RES_PARTNER t141 ON t1.PARTNER_ID = t141.ID LEFT JOIN UTM_MEDIUM t151 ON t1.MEDIUM_ID = t151.ID LEFT JOIN RES_USERS t161 ON t1.CREATE_UID = t161.ID LEFT JOIN RES_PARTNER t171 ON t161.PARTNER_ID = t171.ID LEFT JOIN RES_PARTNER t181 ON t111.PARTNER_ID = t181.ID LEFT JOIN RES_USERS t191 ON t1.USER_ID = t191.ID LEFT JOIN RES_PARTNER t201 ON t191.PARTNER_ID = t201.ID LEFT JOIN ACCOUNT_CASH_ROUNDING t211 ON t1.CASH_ROUNDING_ID = t211.ID LEFT JOIN ACCOUNT_INVOICE t221 ON t1.VENDOR_BILL_ID = t221.ID LEFT JOIN ACCOUNT_INVOICE t231 ON t1.REFUND_INVOICE_ID = t231.ID LEFT JOIN ACCOUNT_FISCAL_POSITION t241 ON t1.FISCAL_POSITION_ID = t241.ID LEFT JOIN ACCOUNT_MOVE t251 ON t1.MOVE_ID = t251.ID LEFT JOIN RES_PARTNER t261 ON t1.COMMERCIAL_PARTNER_ID = t261.ID LEFT JOIN CRM_TEAM t271 ON t1.TEAM_ID = t271.ID LEFT JOIN ACCOUNT_PAYMENT_TERM t281 ON t1.PAYMENT_TERM_ID = t281.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCESS_TOKEN, t1.ACCOUNT_ID, t121.NAME AS ACCOUNT_ID_TEXT, t1.AMOUNT_TAX, t1.AMOUNT_TOTAL, t1.AMOUNT_TOTAL_COMPANY_SIGNED, t1.AMOUNT_TOTAL_SIGNED, t1.AMOUNT_UNTAXED, t1.AMOUNT_UNTAXED_SIGNED, t1.CAMPAIGN_ID, t51.NAME AS CAMPAIGN_ID_TEXT, t1.CASH_ROUNDING_ID, t211.NAME AS CASH_ROUNDING_ID_TEXT, t1.COMMENT, t1.COMMERCIAL_PARTNER_ID, t261.NAME AS COMMERCIAL_PARTNER_ID_TEXT, t111.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t181.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t171.NAME AS CREATE_UID_TEXT, t1.CURRENCY_ID, t71.NAME AS CURRENCY_ID_TEXT, t1.DATE, t1.DATE_DUE, t1.DATE_INVOICE, t1.FISCAL_POSITION_ID, t241.NAME AS FISCAL_POSITION_ID_TEXT, t1.ID, t1.INCOTERMS_ID, t101.NAME AS INCOTERMS_ID_TEXT, t1.INCOTERM_ID, t131.NAME AS INCOTERM_ID_TEXT, t1.JOURNAL_ID, t11.NAME AS JOURNAL_ID_TEXT, t1.MEDIUM_ID, t151.NAME AS MEDIUM_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.MOVE_ID, t1.MOVE_NAME, t1.NAME, t251.NAME AS NUMBER, t1.ORIGIN, t1.PARTNER_BANK_ID, t1.PARTNER_ID, t141.NAME AS PARTNER_ID_TEXT, t1.PARTNER_SHIPPING_ID, t61.NAME AS PARTNER_SHIPPING_ID_TEXT, t1.PAYMENT_TERM_ID, t281.NAME AS PAYMENT_TERM_ID_TEXT, t1.PURCHASE_ID, t21.NAME AS PURCHASE_ID_TEXT, t1.RECONCILED, t1.REFERENCE, t1.REFUND_INVOICE_ID, t231.NAME AS REFUND_INVOICE_ID_TEXT, t1.RESIDUAL, t1.RESIDUAL_COMPANY_SIGNED, t1.RESIDUAL_SIGNED, t1.SENT, t1.SOURCE_EMAIL, t1.SOURCE_ID, t41.NAME AS SOURCE_ID_TEXT, t1.STATE, t1.TEAM_ID, t271.NAME AS TEAM_ID_TEXT, t1.TYPE, t1.USER_ID, t201.NAME AS USER_ID_TEXT, t1.VENDOR_BILL_ID, t221.NAME AS VENDOR_BILL_ID_TEXT, t1.VENDOR_BILL_PURCHASE_ID, t31.NAME AS VENDOR_BILL_PURCHASE_ID_TEXT, t1.VENDOR_DISPLAY_NAME, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t91.NAME AS WRITE_UID_TEXT FROM ACCOUNT_INVOICE t1 LEFT JOIN ACCOUNT_JOURNAL t11 ON t1.JOURNAL_ID = t11.ID LEFT JOIN PURCHASE_ORDER t21 ON t1.PURCHASE_ID = t21.ID LEFT JOIN PURCHASE_BILL_UNION t31 ON t1.VENDOR_BILL_PURCHASE_ID = t31.ID LEFT JOIN UTM_SOURCE t41 ON t1.SOURCE_ID = t41.ID LEFT JOIN UTM_CAMPAIGN t51 ON t1.CAMPAIGN_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.PARTNER_SHIPPING_ID = t61.ID LEFT JOIN RES_CURRENCY t71 ON t1.CURRENCY_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 LEFT JOIN ACCOUNT_INCOTERMS t101 ON t1.INCOTERMS_ID = t101.ID LEFT JOIN RES_COMPANY t111 ON t1.COMPANY_ID = t111.ID LEFT JOIN ACCOUNT_ACCOUNT t121 ON t1.ACCOUNT_ID = t121.ID LEFT JOIN ACCOUNT_INCOTERMS t131 ON t1.INCOTERM_ID = t131.ID LEFT JOIN RES_PARTNER t141 ON t1.PARTNER_ID = t141.ID LEFT JOIN UTM_MEDIUM t151 ON t1.MEDIUM_ID = t151.ID LEFT JOIN RES_USERS t161 ON t1.CREATE_UID = t161.ID LEFT JOIN RES_PARTNER t171 ON t161.PARTNER_ID = t171.ID LEFT JOIN RES_PARTNER t181 ON t111.PARTNER_ID = t181.ID LEFT JOIN RES_USERS t191 ON t1.USER_ID = t191.ID LEFT JOIN RES_PARTNER t201 ON t191.PARTNER_ID = t201.ID LEFT JOIN ACCOUNT_CASH_ROUNDING t211 ON t1.CASH_ROUNDING_ID = t211.ID LEFT JOIN ACCOUNT_INVOICE t221 ON t1.VENDOR_BILL_ID = t221.ID LEFT JOIN ACCOUNT_INVOICE t231 ON t1.REFUND_INVOICE_ID = t231.ID LEFT JOIN ACCOUNT_FISCAL_POSITION t241 ON t1.FISCAL_POSITION_ID = t241.ID LEFT JOIN ACCOUNT_MOVE t251 ON t1.MOVE_ID = t251.ID LEFT JOIN RES_PARTNER t261 ON t1.COMMERCIAL_PARTNER_ID = t261.ID LEFT JOIN CRM_TEAM t271 ON t1.TEAM_ID = t271.ID LEFT JOIN ACCOUNT_PAYMENT_TERM t281 ON t1.PAYMENT_TERM_ID = t281.ID
]]>
</sql>
</mapper>
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.businesscentral.core.odoo_stock.mapper.Stock_moveMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Stock_moveResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ADDITIONAL, t141.BACKORDER_ID, t1.BOM_LINE_ID, t1.COMPANY_ID, t61.NAME AS COMPANY_ID_TEXT, t1.CONSUME_UNBUILD_ID, t251.NAME AS CONSUME_UNBUILD_ID_TEXT, t1.CREATED_PRODUCTION_ID, t101.NAME AS CREATED_PRODUCTION_ID_TEXT, t1.CREATED_PURCHASE_LINE_ID, t111.NAME AS CREATED_PURCHASE_LINE_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t211.NAME AS CREATE_UID_TEXT, t1.DATE, t1.DATE_EXPECTED, t1.GROUP_ID, t21.TRACKING AS HAS_TRACKING, t1.ID, t1.INVENTORY_ID, t281.NAME AS INVENTORY_ID_TEXT, t1.IS_DONE, t1.LOCATION_DEST_ID, t41.NAME AS LOCATION_DEST_ID_TEXT, t1.LOCATION_ID, t191.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.NOTE, t1.OPERATION_ID, t231.NAME AS OPERATION_ID_TEXT, t1.ORIGIN, t1.ORIGIN_RETURNED_MOVE_ID, t161.NAME AS ORIGIN_RETURNED_MOVE_ID_TEXT, t1.PACKAGE_LEVEL_ID, t1.PARTNER_ID, t131.NAME AS PARTNER_ID_TEXT, t91.CODE AS PICKING_CODE, t1.PICKING_ID, t141.NAME AS PICKING_ID_TEXT, t141.PARTNER_ID AS PICKING_PARTNER_ID, t91.SHOW_ENTIRE_PACKS AS PICKING_TYPE_ENTIRE_PACKS, t1.PICKING_TYPE_ID, t91.NAME AS PICKING_TYPE_ID_TEXT, t1.PRICE_UNIT, t1.PRIORITY, t1.PROCURE_METHOD, t1.PRODUCTION_ID, t71.NAME AS PRODUCTION_ID_TEXT, t1.PRODUCT_ID, t21.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_PACKAGING, t261.NAME AS PRODUCT_PACKAGING_TEXT, t1.PRODUCT_QTY, t11.PRODUCT_TMPL_ID, t21.TYPE AS PRODUCT_TYPE, t1.PRODUCT_UOM, t1.PRODUCT_UOM_QTY, t221.NAME AS PRODUCT_UOM_TEXT, t1.PROPAGATE, t1.PURCHASE_LINE_ID, t181.NAME AS PURCHASE_LINE_ID_TEXT, t1.RAW_MATERIAL_PRODUCTION_ID, t151.NAME AS RAW_MATERIAL_PRODUCTION_ID_TEXT, t1.REFERENCE, t1.REMAINING_QTY, t1.REMAINING_VALUE, t1.REPAIR_ID, t171.NAME AS REPAIR_ID_TEXT, t1.RESTRICT_PARTNER_ID, t271.NAME AS RESTRICT_PARTNER_ID_TEXT, t1.RULE_ID, t291.NAME AS RULE_ID_TEXT, t1.SALE_LINE_ID, t121.NAME AS SALE_LINE_ID_TEXT, t41.SCRAP_LOCATION AS SCRAPPED, t1.SEQUENCE, t91.SHOW_OPERATIONS, t1.STATE, t1.TO_REFUND, t1.UNBUILD_ID, t31.NAME AS UNBUILD_ID_TEXT, t1.UNIT_FACTOR, t1.VALUE, t1.WAREHOUSE_ID, t81.NAME AS WAREHOUSE_ID_TEXT, t1.WORKORDER_ID, t241.NAME AS WORKORDER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t311.NAME AS WRITE_UID_TEXT FROM STOCK_MOVE t1 LEFT JOIN PRODUCT_PRODUCT t11 ON t1.PRODUCT_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t11.PRODUCT_TMPL_ID = t21.ID LEFT JOIN MRP_UNBUILD t31 ON t1.UNBUILD_ID = t31.ID LEFT JOIN STOCK_LOCATION t41 ON t1.LOCATION_DEST_ID = t41.ID LEFT JOIN RES_COMPANY t51 ON t1.COMPANY_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN MRP_PRODUCTION t71 ON t1.PRODUCTION_ID = t71.ID LEFT JOIN STOCK_WAREHOUSE t81 ON t1.WAREHOUSE_ID = t81.ID LEFT JOIN STOCK_PICKING_TYPE t91 ON t1.PICKING_TYPE_ID = t91.ID LEFT JOIN MRP_PRODUCTION t101 ON t1.CREATED_PRODUCTION_ID = t101.ID LEFT JOIN PURCHASE_ORDER_LINE t111 ON t1.CREATED_PURCHASE_LINE_ID = t111.ID LEFT JOIN SALE_ORDER_LINE t121 ON t1.SALE_LINE_ID = t121.ID LEFT JOIN RES_PARTNER t131 ON t1.PARTNER_ID = t131.ID LEFT JOIN STOCK_PICKING t141 ON t1.PICKING_ID = t141.ID LEFT JOIN MRP_PRODUCTION t151 ON t1.RAW_MATERIAL_PRODUCTION_ID = t151.ID LEFT JOIN STOCK_MOVE t161 ON t1.ORIGIN_RETURNED_MOVE_ID = t161.ID LEFT JOIN REPAIR_ORDER t171 ON t1.REPAIR_ID = t171.ID LEFT JOIN PURCHASE_ORDER_LINE t181 ON t1.PURCHASE_LINE_ID = t181.ID LEFT JOIN STOCK_LOCATION t191 ON t1.LOCATION_ID = t191.ID LEFT JOIN RES_USERS t201 ON t1.CREATE_UID = t201.ID LEFT JOIN RES_PARTNER t211 ON t201.PARTNER_ID = t211.ID LEFT JOIN UOM_UOM t221 ON t1.PRODUCT_UOM = t221.ID LEFT JOIN MRP_ROUTING_WORKCENTER t231 ON t1.OPERATION_ID = t231.ID LEFT JOIN MRP_WORKORDER t241 ON t1.WORKORDER_ID = t241.ID LEFT JOIN MRP_UNBUILD t251 ON t1.CONSUME_UNBUILD_ID = t251.ID LEFT JOIN PRODUCT_PACKAGING t261 ON t1.PRODUCT_PACKAGING = t261.ID LEFT JOIN RES_PARTNER t271 ON t1.RESTRICT_PARTNER_ID = t271.ID LEFT JOIN STOCK_INVENTORY t281 ON t1.INVENTORY_ID = t281.ID LEFT JOIN STOCK_RULE t291 ON t1.RULE_ID = t291.ID LEFT JOIN RES_USERS t301 ON t1.WRITE_UID = t301.ID LEFT JOIN RES_PARTNER t311 ON t301.PARTNER_ID = t311.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="Stock_moveResultMap" type="cn.ibizlab.businesscentral.core.odoo_stock.domain.Stock_move" autoMapping="true">
......@@ -171,35 +174,228 @@
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__MRP_BOM_LINE__BOM_LINE_ID] -->
<select id="selectByBomLineId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where bom_line_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__MRP_PRODUCTION__CREATED_PRODUCTION_ID] -->
<select id="selectByCreatedProductionId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where created_production_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__MRP_PRODUCTION__PRODUCTION_ID] -->
<select id="selectByProductionId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where production_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__MRP_PRODUCTION__RAW_MATERIAL_PRODUCTION_ID] -->
<select id="selectByRawMaterialProductionId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where raw_material_production_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__MRP_ROUTING_WORKCENTER__OPERATION_ID] -->
<select id="selectByOperationId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where operation_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__MRP_UNBUILD__CONSUME_UNBUILD_ID] -->
<select id="selectByConsumeUnbuildId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where consume_unbuild_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__MRP_UNBUILD__UNBUILD_ID] -->
<select id="selectByUnbuildId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where unbuild_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__MRP_WORKORDER__WORKORDER_ID] -->
<select id="selectByWorkorderId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where workorder_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__PRODUCT_PACKAGING__PRODUCT_PACKAGING] -->
<select id="selectByProductPackaging" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where product_packaging=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__PRODUCT_PRODUCT__PRODUCT_ID] -->
<select id="selectByProductId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where product_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__PURCHASE_ORDER_LINE__CREATED_PURCHASE_LINE_ID] -->
<select id="selectByCreatedPurchaseLineId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where created_purchase_line_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__PURCHASE_ORDER_LINE__PURCHASE_LINE_ID] -->
<select id="selectByPurchaseLineId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where purchase_line_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__REPAIR_ORDER__REPAIR_ID] -->
<select id="selectByRepairId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where repair_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__RES_COMPANY__COMPANY_ID] -->
<select id="selectByCompanyId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where company_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__RES_PARTNER__PARTNER_ID] -->
<select id="selectByPartnerId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where partner_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__RES_PARTNER__RESTRICT_PARTNER_ID] -->
<select id="selectByRestrictPartnerId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where restrict_partner_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__RES_USERS__CREATE_UID] -->
<select id="selectByCreateUid" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where create_uid=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__RES_USERS__WRITE_UID] -->
<select id="selectByWriteUid" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where write_uid=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__SALE_ORDER_LINE__SALE_LINE_ID] -->
<select id="selectBySaleLineId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where sale_line_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_INVENTORY__INVENTORY_ID] -->
<select id="selectByInventoryId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where inventory_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_LOCATION__LOCATION_DEST_ID] -->
<select id="selectByLocationDestId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where location_dest_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_LOCATION__LOCATION_ID] -->
<select id="selectByLocationId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where location_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_MOVE__ORIGIN_RETURNED_MOVE_ID] -->
<select id="selectByOriginReturnedMoveId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where origin_returned_move_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_PACKAGE_LEVEL__PACKAGE_LEVEL_ID] -->
<select id="selectByPackageLevelId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where package_level_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_PICKING_TYPE__PICKING_TYPE_ID] -->
<select id="selectByPickingTypeId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where picking_type_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_PICKING__PICKING_ID] -->
<select id="selectByPickingId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where picking_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_RULE__RULE_ID] -->
<select id="selectByRuleId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where rule_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__STOCK_WAREHOUSE__WAREHOUSE_ID] -->
<select id="selectByWarehouseId" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where warehouse_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_STOCK_MOVE__UOM_UOM__PRODUCT_UOM] -->
<select id="selectByProductUom" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
) t1
where product_uom=#{id}
</select>
<!--数据集合[Default]-->
<select id="searchDefault" parameterType="cn.ibizlab.businesscentral.core.odoo_stock.filter.Stock_moveSearchContext" resultMap="Stock_moveResultMap">
select t1.* from (
<include refid="Default" />
)t1
<where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ADDITIONAL, t121.BACKORDER_ID, t1.BOM_LINE_ID, t1.COMPANY_ID, t61.NAME AS COMPANY_ID_TEXT, t1.CONSUME_UNBUILD_ID, t221.NAME AS CONSUME_UNBUILD_ID_TEXT, t1.CREATED_PRODUCTION_ID, t101.NAME AS CREATED_PRODUCTION_ID_TEXT, t1.CREATED_PURCHASE_LINE_ID, t1.CREATE_DATE, t1.CREATE_UID, t181.NAME AS CREATE_UID_TEXT, t1.DATE, t1.DATE_EXPECTED, t1.GROUP_ID, t21.TRACKING AS HAS_TRACKING, t1.ID, t1.INVENTORY_ID, t251.NAME AS INVENTORY_ID_TEXT, t1.IS_DONE, t1.LOCATION_DEST_ID, t41.NAME AS LOCATION_DEST_ID_TEXT, t1.LOCATION_ID, t161.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.OPERATION_ID, t201.NAME AS OPERATION_ID_TEXT, t1.ORIGIN, t1.ORIGIN_RETURNED_MOVE_ID, t141.NAME AS ORIGIN_RETURNED_MOVE_ID_TEXT, t1.PACKAGE_LEVEL_ID, t1.PARTNER_ID, t111.NAME AS PARTNER_ID_TEXT, t91.CODE AS PICKING_CODE, t1.PICKING_ID, t121.NAME AS PICKING_ID_TEXT, t121.PARTNER_ID AS PICKING_PARTNER_ID, t91.SHOW_ENTIRE_PACKS AS PICKING_TYPE_ENTIRE_PACKS, t1.PICKING_TYPE_ID, t91.NAME AS PICKING_TYPE_ID_TEXT, t1.PRICE_UNIT, t1.PRIORITY, t1.PROCURE_METHOD, t1.PRODUCTION_ID, t71.NAME AS PRODUCTION_ID_TEXT, t1.PRODUCT_ID, t21.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_PACKAGING, t231.NAME AS PRODUCT_PACKAGING_TEXT, t1.PRODUCT_QTY, t11.PRODUCT_TMPL_ID, t21.TYPE AS PRODUCT_TYPE, t1.PRODUCT_UOM, t1.PRODUCT_UOM_QTY, t191.NAME AS PRODUCT_UOM_TEXT, t1.PROPAGATE, t1.PURCHASE_LINE_ID, t1.RAW_MATERIAL_PRODUCTION_ID, t131.NAME AS RAW_MATERIAL_PRODUCTION_ID_TEXT, t1.REFERENCE, t1.REMAINING_QTY, t1.REMAINING_VALUE, t1.REPAIR_ID, t151.NAME AS REPAIR_ID_TEXT, t1.RESTRICT_PARTNER_ID, t241.NAME AS RESTRICT_PARTNER_ID_TEXT, t1.RULE_ID, t261.NAME AS RULE_ID_TEXT, t1.SALE_LINE_ID, t41.SCRAP_LOCATION AS SCRAPPED, t1.SEQUENCE, t91.SHOW_OPERATIONS, t1.STATE, t1.TO_REFUND, t1.UNBUILD_ID, t31.NAME AS UNBUILD_ID_TEXT, t1.UNIT_FACTOR, t1.VALUE, t1.WAREHOUSE_ID, t81.NAME AS WAREHOUSE_ID_TEXT, t1.WORKORDER_ID, t211.NAME AS WORKORDER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t281.NAME AS WRITE_UID_TEXT FROM STOCK_MOVE t1 LEFT JOIN PRODUCT_PRODUCT t11 ON t1.PRODUCT_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t11.PRODUCT_TMPL_ID = t21.ID LEFT JOIN MRP_UNBUILD t31 ON t1.UNBUILD_ID = t31.ID LEFT JOIN STOCK_LOCATION t41 ON t1.LOCATION_DEST_ID = t41.ID LEFT JOIN RES_COMPANY t51 ON t1.COMPANY_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN MRP_PRODUCTION t71 ON t1.PRODUCTION_ID = t71.ID LEFT JOIN STOCK_WAREHOUSE t81 ON t1.WAREHOUSE_ID = t81.ID LEFT JOIN STOCK_PICKING_TYPE t91 ON t1.PICKING_TYPE_ID = t91.ID LEFT JOIN MRP_PRODUCTION t101 ON t1.CREATED_PRODUCTION_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t1.PARTNER_ID = t111.ID LEFT JOIN STOCK_PICKING t121 ON t1.PICKING_ID = t121.ID LEFT JOIN MRP_PRODUCTION t131 ON t1.RAW_MATERIAL_PRODUCTION_ID = t131.ID LEFT JOIN STOCK_MOVE t141 ON t1.ORIGIN_RETURNED_MOVE_ID = t141.ID LEFT JOIN REPAIR_ORDER t151 ON t1.REPAIR_ID = t151.ID LEFT JOIN STOCK_LOCATION t161 ON t1.LOCATION_ID = t161.ID LEFT JOIN RES_USERS t171 ON t1.CREATE_UID = t171.ID LEFT JOIN RES_PARTNER t181 ON t171.PARTNER_ID = t181.ID LEFT JOIN UOM_UOM t191 ON t1.PRODUCT_UOM = t191.ID LEFT JOIN MRP_ROUTING_WORKCENTER t201 ON t1.OPERATION_ID = t201.ID LEFT JOIN MRP_WORKORDER t211 ON t1.WORKORDER_ID = t211.ID LEFT JOIN MRP_UNBUILD t221 ON t1.CONSUME_UNBUILD_ID = t221.ID LEFT JOIN PRODUCT_PACKAGING t231 ON t1.PRODUCT_PACKAGING = t231.ID LEFT JOIN RES_PARTNER t241 ON t1.RESTRICT_PARTNER_ID = t241.ID LEFT JOIN STOCK_INVENTORY t251 ON t1.INVENTORY_ID = t251.ID LEFT JOIN STOCK_RULE t261 ON t1.RULE_ID = t261.ID LEFT JOIN RES_USERS t271 ON t1.WRITE_UID = t271.ID LEFT JOIN RES_PARTNER t281 ON t271.PARTNER_ID = t281.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ADDITIONAL, t141.BACKORDER_ID, t1.BOM_LINE_ID, t1.COMPANY_ID, t61.NAME AS COMPANY_ID_TEXT, t1.CONSUME_UNBUILD_ID, t251.NAME AS CONSUME_UNBUILD_ID_TEXT, t1.CREATED_PRODUCTION_ID, t101.NAME AS CREATED_PRODUCTION_ID_TEXT, t1.CREATED_PURCHASE_LINE_ID, t111.NAME AS CREATED_PURCHASE_LINE_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t211.NAME AS CREATE_UID_TEXT, t1.DATE, t1.DATE_EXPECTED, t1.GROUP_ID, t21.TRACKING AS HAS_TRACKING, t1.ID, t1.INVENTORY_ID, t281.NAME AS INVENTORY_ID_TEXT, t1.IS_DONE, t1.LOCATION_DEST_ID, t41.NAME AS LOCATION_DEST_ID_TEXT, t1.LOCATION_ID, t191.NAME AS LOCATION_ID_TEXT, t1.NAME, t1.NOTE, t1.OPERATION_ID, t231.NAME AS OPERATION_ID_TEXT, t1.ORIGIN, t1.ORIGIN_RETURNED_MOVE_ID, t161.NAME AS ORIGIN_RETURNED_MOVE_ID_TEXT, t1.PACKAGE_LEVEL_ID, t1.PARTNER_ID, t131.NAME AS PARTNER_ID_TEXT, t91.CODE AS PICKING_CODE, t1.PICKING_ID, t141.NAME AS PICKING_ID_TEXT, t141.PARTNER_ID AS PICKING_PARTNER_ID, t91.SHOW_ENTIRE_PACKS AS PICKING_TYPE_ENTIRE_PACKS, t1.PICKING_TYPE_ID, t91.NAME AS PICKING_TYPE_ID_TEXT, t1.PRICE_UNIT, t1.PRIORITY, t1.PROCURE_METHOD, t1.PRODUCTION_ID, t71.NAME AS PRODUCTION_ID_TEXT, t1.PRODUCT_ID, t21.NAME AS PRODUCT_ID_TEXT, t1.PRODUCT_PACKAGING, t261.NAME AS PRODUCT_PACKAGING_TEXT, t1.PRODUCT_QTY, t11.PRODUCT_TMPL_ID, t21.TYPE AS PRODUCT_TYPE, t1.PRODUCT_UOM, t1.PRODUCT_UOM_QTY, t221.NAME AS PRODUCT_UOM_TEXT, t1.PROPAGATE, t1.PURCHASE_LINE_ID, t181.NAME AS PURCHASE_LINE_ID_TEXT, t1.RAW_MATERIAL_PRODUCTION_ID, t151.NAME AS RAW_MATERIAL_PRODUCTION_ID_TEXT, t1.REFERENCE, t1.REMAINING_QTY, t1.REMAINING_VALUE, t1.REPAIR_ID, t171.NAME AS REPAIR_ID_TEXT, t1.RESTRICT_PARTNER_ID, t271.NAME AS RESTRICT_PARTNER_ID_TEXT, t1.RULE_ID, t291.NAME AS RULE_ID_TEXT, t1.SALE_LINE_ID, t121.NAME AS SALE_LINE_ID_TEXT, t41.SCRAP_LOCATION AS SCRAPPED, t1.SEQUENCE, t91.SHOW_OPERATIONS, t1.STATE, t1.TO_REFUND, t1.UNBUILD_ID, t31.NAME AS UNBUILD_ID_TEXT, t1.UNIT_FACTOR, t1.VALUE, t1.WAREHOUSE_ID, t81.NAME AS WAREHOUSE_ID_TEXT, t1.WORKORDER_ID, t241.NAME AS WORKORDER_ID_TEXT, t1.WRITE_DATE, t1.WRITE_UID, t311.NAME AS WRITE_UID_TEXT FROM STOCK_MOVE t1 LEFT JOIN PRODUCT_PRODUCT t11 ON t1.PRODUCT_ID = t11.ID LEFT JOIN PRODUCT_TEMPLATE t21 ON t11.PRODUCT_TMPL_ID = t21.ID LEFT JOIN MRP_UNBUILD t31 ON t1.UNBUILD_ID = t31.ID LEFT JOIN STOCK_LOCATION t41 ON t1.LOCATION_DEST_ID = t41.ID LEFT JOIN RES_COMPANY t51 ON t1.COMPANY_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN MRP_PRODUCTION t71 ON t1.PRODUCTION_ID = t71.ID LEFT JOIN STOCK_WAREHOUSE t81 ON t1.WAREHOUSE_ID = t81.ID LEFT JOIN STOCK_PICKING_TYPE t91 ON t1.PICKING_TYPE_ID = t91.ID LEFT JOIN MRP_PRODUCTION t101 ON t1.CREATED_PRODUCTION_ID = t101.ID LEFT JOIN PURCHASE_ORDER_LINE t111 ON t1.CREATED_PURCHASE_LINE_ID = t111.ID LEFT JOIN SALE_ORDER_LINE t121 ON t1.SALE_LINE_ID = t121.ID LEFT JOIN RES_PARTNER t131 ON t1.PARTNER_ID = t131.ID LEFT JOIN STOCK_PICKING t141 ON t1.PICKING_ID = t141.ID LEFT JOIN MRP_PRODUCTION t151 ON t1.RAW_MATERIAL_PRODUCTION_ID = t151.ID LEFT JOIN STOCK_MOVE t161 ON t1.ORIGIN_RETURNED_MOVE_ID = t161.ID LEFT JOIN REPAIR_ORDER t171 ON t1.REPAIR_ID = t171.ID LEFT JOIN PURCHASE_ORDER_LINE t181 ON t1.PURCHASE_LINE_ID = t181.ID LEFT JOIN STOCK_LOCATION t191 ON t1.LOCATION_ID = t191.ID LEFT JOIN RES_USERS t201 ON t1.CREATE_UID = t201.ID LEFT JOIN RES_PARTNER t211 ON t201.PARTNER_ID = t211.ID LEFT JOIN UOM_UOM t221 ON t1.PRODUCT_UOM = t221.ID LEFT JOIN MRP_ROUTING_WORKCENTER t231 ON t1.OPERATION_ID = t231.ID LEFT JOIN MRP_WORKORDER t241 ON t1.WORKORDER_ID = t241.ID LEFT JOIN MRP_UNBUILD t251 ON t1.CONSUME_UNBUILD_ID = t251.ID LEFT JOIN PRODUCT_PACKAGING t261 ON t1.PRODUCT_PACKAGING = t261.ID LEFT JOIN RES_PARTNER t271 ON t1.RESTRICT_PARTNER_ID = t271.ID LEFT JOIN STOCK_INVENTORY t281 ON t1.INVENTORY_ID = t281.ID LEFT JOIN STOCK_RULE t291 ON t1.RULE_ID = t291.ID LEFT JOIN RES_USERS t301 ON t1.WRITE_UID = t301.ID LEFT JOIN RES_PARTNER t311 ON t301.PARTNER_ID = t311.ID
]]>
</sql>
</mapper>
......@@ -109,6 +109,55 @@ public class Account_invoiceResource {
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@ApiOperation(value = "获取发票草稿", tags = {"发票" }, notes = "获取发票草稿")
@RequestMapping(method = RequestMethod.GET, value = "/account_invoices/getdraft")
public ResponseEntity<Account_invoiceDTO> getDraft() {
return ResponseEntity.status(HttpStatus.OK).body(account_invoiceMapping.toDto(account_invoiceService.getDraft(new Account_invoice())));
}
@ApiOperation(value = "检查发票", tags = {"发票" }, notes = "检查发票")
@RequestMapping(method = RequestMethod.POST, value = "/account_invoices/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody Account_invoiceDTO account_invoicedto) {
return ResponseEntity.status(HttpStatus.OK).body(account_invoiceService.checkKey(account_invoiceMapping.toDomain(account_invoicedto)));
}
@PreAuthorize("hasPermission(this.account_invoiceMapping.toDomain(#account_invoicedto),'iBizBusinessCentral-Account_invoice-Save')")
@ApiOperation(value = "保存发票", tags = {"发票" }, notes = "保存发票")
@RequestMapping(method = RequestMethod.POST, value = "/account_invoices/save")
public ResponseEntity<Boolean> save(@RequestBody Account_invoiceDTO account_invoicedto) {
return ResponseEntity.status(HttpStatus.OK).body(account_invoiceService.save(account_invoiceMapping.toDomain(account_invoicedto)));
}
@PreAuthorize("hasPermission(this.account_invoiceMapping.toDomain(#account_invoicedtos),'iBizBusinessCentral-Account_invoice-Save')")
@ApiOperation(value = "批量保存发票", tags = {"发票" }, notes = "批量保存发票")
@RequestMapping(method = RequestMethod.POST, value = "/account_invoices/savebatch")
public ResponseEntity<Boolean> saveBatch(@RequestBody List<Account_invoiceDTO> account_invoicedtos) {
account_invoiceService.saveBatch(account_invoiceMapping.toDomain(account_invoicedtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account_invoice-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Account_invoice-Get')")
@ApiOperation(value = "获取数据集", tags = {"发票" } ,notes = "获取数据集")
@RequestMapping(method= RequestMethod.GET , value="/account_invoices/fetchdefault")
public ResponseEntity<List<Account_invoiceDTO>> fetchDefault(Account_invoiceSearchContext context) {
Page<Account_invoice> domains = account_invoiceService.searchDefault(context) ;
List<Account_invoiceDTO> list = account_invoiceMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account_invoice-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Account_invoice-Get')")
@ApiOperation(value = "查询数据集", tags = {"发票" } ,notes = "查询数据集")
@RequestMapping(method= RequestMethod.POST , value="/account_invoices/searchdefault")
public ResponseEntity<Page<Account_invoiceDTO>> searchDefault(@RequestBody Account_invoiceSearchContext context) {
Page<Account_invoice> domains = account_invoiceService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(account_invoiceMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
}
......@@ -109,6 +109,55 @@ public class Stock_moveResource {
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@ApiOperation(value = "获取库存移动草稿", tags = {"库存移动" }, notes = "获取库存移动草稿")
@RequestMapping(method = RequestMethod.GET, value = "/stock_moves/getdraft")
public ResponseEntity<Stock_moveDTO> getDraft() {
return ResponseEntity.status(HttpStatus.OK).body(stock_moveMapping.toDto(stock_moveService.getDraft(new Stock_move())));
}
@ApiOperation(value = "检查库存移动", tags = {"库存移动" }, notes = "检查库存移动")
@RequestMapping(method = RequestMethod.POST, value = "/stock_moves/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody Stock_moveDTO stock_movedto) {
return ResponseEntity.status(HttpStatus.OK).body(stock_moveService.checkKey(stock_moveMapping.toDomain(stock_movedto)));
}
@PreAuthorize("hasPermission(this.stock_moveMapping.toDomain(#stock_movedto),'iBizBusinessCentral-Stock_move-Save')")
@ApiOperation(value = "保存库存移动", tags = {"库存移动" }, notes = "保存库存移动")
@RequestMapping(method = RequestMethod.POST, value = "/stock_moves/save")
public ResponseEntity<Boolean> save(@RequestBody Stock_moveDTO stock_movedto) {
return ResponseEntity.status(HttpStatus.OK).body(stock_moveService.save(stock_moveMapping.toDomain(stock_movedto)));
}
@PreAuthorize("hasPermission(this.stock_moveMapping.toDomain(#stock_movedtos),'iBizBusinessCentral-Stock_move-Save')")
@ApiOperation(value = "批量保存库存移动", tags = {"库存移动" }, notes = "批量保存库存移动")
@RequestMapping(method = RequestMethod.POST, value = "/stock_moves/savebatch")
public ResponseEntity<Boolean> saveBatch(@RequestBody List<Stock_moveDTO> stock_movedtos) {
stock_moveService.saveBatch(stock_moveMapping.toDomain(stock_movedtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Stock_move-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Stock_move-Get')")
@ApiOperation(value = "获取数据集", tags = {"库存移动" } ,notes = "获取数据集")
@RequestMapping(method= RequestMethod.GET , value="/stock_moves/fetchdefault")
public ResponseEntity<List<Stock_moveDTO>> fetchDefault(Stock_moveSearchContext context) {
Page<Stock_move> domains = stock_moveService.searchDefault(context) ;
List<Stock_moveDTO> list = stock_moveMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Stock_move-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Stock_move-Get')")
@ApiOperation(value = "查询数据集", tags = {"库存移动" } ,notes = "查询数据集")
@RequestMapping(method= RequestMethod.POST , value="/stock_moves/searchdefault")
public ResponseEntity<Page<Stock_moveDTO>> searchDefault(@RequestBody Stock_moveSearchContext context) {
Page<Stock_move> domains = stock_moveService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(stock_moveMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册