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

xignzi006 发布系统代码 [Spring Boot]

上级 9cdfdbef
package cn.ibizlab.businesscentral.core.extensions.service;
import cn.ibizlab.businesscentral.core.odoo_account.service.impl.Account_taxServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.businesscentral.core.odoo_account.domain.Account_tax;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;
/**
* 实体[税率] 自定义服务对象
*/
@Slf4j
@Primary
@Service("Account_taxExService")
public class Account_taxExService extends Account_taxServiceImpl {
@Override
protected Class currentModelClass() {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
}
/**
* 自定义行为[Calc_tax]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public Account_tax calc_tax(Account_tax et) {
return super.calc_tax(et);
}
}
......@@ -21,6 +21,16 @@ public class Res_config_settingsExService extends Res_config_settingsServiceImpl
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
}
/**
* 自定义行为[GetLatestSettings]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public Res_config_settings getLatestSettings(Res_config_settings et) {
return super.getLatestSettings(et);
}
/**
* 自定义行为[Get_default]用户扩展
* @param et
......
......@@ -64,6 +64,10 @@ public class account_taxFallback implements account_taxFeignClient{
public Account_tax calc_tax( Long id, Account_tax account_tax){
return null;
}
public Boolean checkKey(Account_tax account_tax){
return false;
}
......
......@@ -60,6 +60,10 @@ public interface account_taxFeignClient {
Account_tax getDraft();
@RequestMapping(method = RequestMethod.POST, value = "/account_taxes/{id}/calc_tax")
Account_tax calc_tax(@PathVariable("id") Long id,@RequestBody Account_tax account_tax);
@RequestMapping(method = RequestMethod.POST, value = "/account_taxes/checkkey")
Boolean checkKey(@RequestBody Account_tax account_tax);
......
......@@ -33,6 +33,7 @@ public interface IAccount_taxService extends IService<Account_tax>{
void removeBatch(Collection<Long> idList) ;
Account_tax get(Long key) ;
Account_tax getDraft(Account_tax et) ;
Account_tax calc_tax(Account_tax et) ;
boolean checkKey(Account_tax et) ;
boolean save(Account_tax et) ;
void saveBatch(List<Account_tax> list) ;
......
......@@ -208,6 +208,13 @@ public class Account_taxServiceImpl extends EBSServiceImpl<Account_taxMapper, Ac
return et;
}
@Override
@Transactional
public Account_tax calc_tax(Account_tax et) {
//自定义代码
return et;
}
@Override
public boolean checkKey(Account_tax et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId())));
......
......@@ -69,6 +69,10 @@ public class res_config_settingsFallback implements res_config_settingsFeignClie
}
public Res_config_settings getLatestSettings( Long id, Res_config_settings res_config_settings){
return null;
}
public Res_config_settings get_default( Long id, Res_config_settings res_config_settings){
return null;
}
......
......@@ -64,6 +64,10 @@ public interface res_config_settingsFeignClient {
Boolean checkKey(@RequestBody Res_config_settings res_config_settings);
@RequestMapping(method = RequestMethod.GET, value = "/res_config_settings/{id}/getlatestsettings")
Res_config_settings getLatestSettings(@PathVariable("id") Long id,@RequestBody Res_config_settings res_config_settings);
@RequestMapping(method = RequestMethod.GET, value = "/res_config_settings/{id}/get_default")
Res_config_settings get_default(@PathVariable("id") Long id,@RequestBody Res_config_settings res_config_settings);
......
......@@ -80,6 +80,11 @@ public class res_usersFallback implements res_usersFeignClient{
return false;
}
public Page<Res_users> searchActive(Res_usersSearchContext context){
return null;
}
public Page<Res_users> searchDefault(Res_usersSearchContext context){
return null;
}
......
......@@ -76,6 +76,11 @@ public interface res_usersFeignClient {
@RequestMapping(method = RequestMethod.POST, value = "/res_users/searchactive")
Page<Res_users> searchActive(@RequestBody Res_usersSearchContext context);
@RequestMapping(method = RequestMethod.POST, value = "/res_users/searchdefault")
Page<Res_users> searchDefault(@RequestBody Res_usersSearchContext context);
......
......@@ -1877,6 +1877,14 @@ public class Res_config_settings extends EntityMP implements Serializable {
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
private Long writeUid;
/**
* 技能管理
*/
@DEField(name = "module_hr_skills")
@TableField(value = "module_hr_skills")
@JSONField(name = "module_hr_skills")
@JsonProperty("module_hr_skills")
private Boolean moduleHrSkills;
/**
*
......@@ -3144,6 +3152,14 @@ public class Res_config_settings extends EntityMP implements Serializable {
this.modify("auth_signup_template_user_id",authSignupTemplateUserId);
}
/**
* 设置 [技能管理]
*/
public void setModuleHrSkills(Boolean moduleHrSkills){
this.moduleHrSkills = moduleHrSkills ;
this.modify("module_hr_skills",moduleHrSkills);
}
@Override
public Serializable getDefaultKey(boolean gen) {
......
......@@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSONObject;
public interface Res_usersMapper extends BaseMapper<Res_users>{
Page<Res_users> searchActive(IPage page, @Param("srf") Res_usersSearchContext context, @Param("ew") Wrapper<Res_users> wrapper) ;
Page<Res_users> searchDefault(IPage page, @Param("srf") Res_usersSearchContext context, @Param("ew") Wrapper<Res_users> wrapper) ;
@Override
Res_users selectById(Serializable id);
......
......@@ -34,6 +34,7 @@ public interface IRes_config_settingsService extends IService<Res_config_setting
Res_config_settings get(Long key) ;
Res_config_settings getDraft(Res_config_settings et) ;
boolean checkKey(Res_config_settings et) ;
Res_config_settings getLatestSettings(Res_config_settings et) ;
Res_config_settings get_default(Res_config_settings et) ;
boolean save(Res_config_settings et) ;
void saveBatch(List<Res_config_settings> list) ;
......
......@@ -37,6 +37,7 @@ public interface IRes_usersService extends IService<Res_users>{
boolean checkKey(Res_users et) ;
boolean save(Res_users et) ;
void saveBatch(List<Res_users> list) ;
Page<Res_users> searchActive(Res_usersSearchContext context) ;
Page<Res_users> searchDefault(Res_usersSearchContext context) ;
List<Res_users> selectBySaleTeamId(Long id);
void resetBySaleTeamId(Long id);
......
......@@ -176,6 +176,13 @@ public class Res_config_settingsServiceImpl extends EBSServiceImpl<Res_config_se
public boolean checkKey(Res_config_settings et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId())));
}
@Override
@Transactional
public Res_config_settings getLatestSettings(Res_config_settings et) {
//自定义代码
return et;
}
@Override
@Transactional
public Res_config_settings get_default(Res_config_settings et) {
......
......@@ -1551,6 +1551,15 @@ public class Res_usersServiceImpl extends EBSServiceImpl<Res_usersMapper, Res_us
}
/**
* 查询集合 有效用户
*/
@Override
public Page<Res_users> searchActive(Res_usersSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Res_users> pages=baseMapper.searchActive(context.getPages(),context,context.getSelectCond());
return new PageImpl<Res_users>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
/**
* 查询集合 数据集
*/
......
......@@ -554,6 +554,29 @@ public class Hr_job extends EntityMP implements Serializable {
@JSONField(name = "user_id")
@JsonProperty("user_id")
private Long userId;
/**
* 面试表单
*/
@DEField(name = "survey_id")
@TableField(value = "survey_id")
@JSONField(name = "survey_id")
@JsonProperty("survey_id")
private Long surveyId;
/**
* 面试表单
*/
@TableField(exist = false)
@JSONField(name = "survey_title")
@JsonProperty("survey_title")
private String surveyTitle;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_survey.domain.Survey_survey odooSurvey;
/**
*
......@@ -821,6 +844,14 @@ public class Hr_job extends EntityMP implements Serializable {
this.modify("user_id",userId);
}
/**
* 设置 [面试表单]
*/
public void setSurveyId(Long surveyId){
this.surveyId = surveyId ;
this.modify("survey_id",surveyId);
}
@Override
public Serializable getDefaultKey(boolean gen) {
......
......@@ -216,6 +216,27 @@ public class Hr_jobSearchContext extends QueryWrapperContext<Hr_job> {
this.getSearchCond().eq("user_id", n_user_id_eq);
}
}
private Long n_survey_id_eq;//[面试表单]
public void setN_survey_id_eq(Long n_survey_id_eq) {
this.n_survey_id_eq = n_survey_id_eq;
if(!ObjectUtils.isEmpty(this.n_survey_id_eq)){
this.getSearchCond().eq("survey_id", n_survey_id_eq);
}
}
private String n_survey_title_eq;//[面试表单]
public void setN_survey_title_eq(String n_survey_title_eq) {
this.n_survey_title_eq = n_survey_title_eq;
if(!ObjectUtils.isEmpty(this.n_survey_title_eq)){
this.getSearchCond().eq("survey_title", n_survey_title_eq);
}
}
private String n_survey_title_like;//[面试表单]
public void setN_survey_title_like(String n_survey_title_like) {
this.n_survey_title_like = n_survey_title_like;
if(!ObjectUtils.isEmpty(this.n_survey_title_like)){
this.getSearchCond().like("survey_title", n_survey_title_like);
}
}
/**
* 启用快速搜索
......
......@@ -62,6 +62,8 @@ public interface Hr_jobMapper extends BaseMapper<Hr_job>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<Hr_job> selectBySurveyId(@Param("id") Serializable id) ;
List<Hr_job> selectByDepartmentId(@Param("id") Serializable id) ;
List<Hr_job> selectByManagerId(@Param("id") Serializable id) ;
......
......@@ -37,6 +37,8 @@ public interface IHr_jobService extends IService<Hr_job>{
boolean save(Hr_job et) ;
void saveBatch(List<Hr_job> list) ;
Page<Hr_job> searchDefault(Hr_jobSearchContext context) ;
List<Hr_job> selectBySurveyId(Long id);
void removeBySurveyId(Long id);
List<Hr_job> selectByDepartmentId(Long id);
void resetByDepartmentId(Long id);
void resetByDepartmentId(Collection<Long> ids);
......
......@@ -68,6 +68,9 @@ public class Hr_jobServiceImpl extends EBSServiceImpl<Hr_jobMapper, Hr_job> impl
protected cn.ibizlab.businesscentral.core.odoo_hr.service.IHr_recruitment_stageService hrRecruitmentStageService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_survey.service.ISurvey_surveyService surveySurveyService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_hr.service.IHr_departmentService hrDepartmentService;
@Autowired
@Lazy
......@@ -229,6 +232,15 @@ public class Hr_jobServiceImpl extends EBSServiceImpl<Hr_jobMapper, Hr_job> impl
}
@Override
public List<Hr_job> selectBySurveyId(Long id) {
return baseMapper.selectBySurveyId(id);
}
@Override
public void removeBySurveyId(Long id) {
this.remove(new QueryWrapper<Hr_job>().eq("survey_id",id));
}
@Override
public List<Hr_job> selectByDepartmentId(Long id) {
return baseMapper.selectByDepartmentId(id);
......@@ -392,6 +404,16 @@ public class Hr_jobServiceImpl extends EBSServiceImpl<Hr_jobMapper, Hr_job> impl
* @param et
*/
private void fillParentData(Hr_job et){
//实体关系[DER1N_HR_JOB_SURVEY_SURVEY_SURVEY_ID]
if(!ObjectUtils.isEmpty(et.getSurveyId())){
cn.ibizlab.businesscentral.core.odoo_survey.domain.Survey_survey odooSurvey=et.getOdooSurvey();
if(ObjectUtils.isEmpty(odooSurvey)){
cn.ibizlab.businesscentral.core.odoo_survey.domain.Survey_survey majorEntity=surveySurveyService.get(et.getSurveyId());
et.setOdooSurvey(majorEntity);
odooSurvey=majorEntity;
}
et.setSurveyTitle(odooSurvey.getTitle());
}
//实体关系[DER1N_HR_JOB__HR_DEPARTMENT__DEPARTMENT_ID]
if(!ObjectUtils.isEmpty(et.getDepartmentId())){
cn.ibizlab.businesscentral.core.odoo_hr.domain.Hr_department odooDepartment=et.getOdooDepartment();
......
......@@ -134,7 +134,7 @@ public class Survey_surveySearchContext extends QueryWrapperContext<Survey_surve
this.query=query;
if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper ->
wrapper.like("id", query)
wrapper.like("title", query)
);
}
}
......
......@@ -51,6 +51,9 @@ import org.springframework.util.StringUtils;
@Service("Survey_surveyServiceImpl")
public class Survey_surveyServiceImpl extends EBSServiceImpl<Survey_surveyMapper, Survey_survey> implements ISurvey_surveyService {
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_hr.service.IHr_jobService hrJobService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_survey.service.ISurvey_mail_compose_messageService surveyMailComposeMessageService;
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Res_config_settingsResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t11.ACCOUNT_BANK_RECONCILIATION_START, t1.ALIAS_DOMAIN, t1.AUTH_SIGNUP_RESET_PASSWORD, t1.AUTH_SIGNUP_TEMPLATE_USER_ID, t61.NAME AS AUTH_SIGNUP_TEMPLATE_USER_ID_TEXT, t1.AUTOMATIC_INVOICE, t1.AVAILABLE_THRESHOLD, t1.CHART_TEMPLATE_ID, t131.NAME AS CHART_TEMPLATE_ID_TEXT, t11.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t121.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.CRM_ALIAS_PREFIX, t11.CURRENCY_EXCHANGE_JOURNAL_ID, t11.CURRENCY_ID, t1.DEFAULT_INVOICE_POLICY, t1.DEFAULT_PICKING_POLICY, t1.DEFAULT_PURCHASE_METHOD, t1.DEFAULT_SALE_ORDER_TEMPLATE_ID, t141.NAME AS DEFAULT_SALE_ORDER_TEMPLATE_ID_TEXT, t1.DEPOSIT_DEFAULT_PRODUCT_ID, t81.NAME AS DEPOSIT_DEFAULT_PRODUCT_ID_TEXT, t1.DIGEST_EMAILS, t1.DIGEST_ID, t41.NAME AS DIGEST_ID_TEXT, t1.EXPENSE_ALIAS_PREFIX, t1.EXTERNAL_EMAIL_SERVER_DEFAULT, t11.EXTERNAL_REPORT_LAYOUT_ID, t1.FAIL_COUNTER, t1.GENERATE_LEAD_FROM_ALIAS, t1.GROUP_ANALYTIC_ACCOUNTING, t1.GROUP_ANALYTIC_TAGS, t1.GROUP_ATTENDANCE_USE_PIN, t1.GROUP_CASH_ROUNDING, t1.GROUP_DELIVERY_INVOICE_ADDRESS, t1.GROUP_DISCOUNT_PER_SO_LINE, t1.GROUP_DISPLAY_INCOTERM, t1.GROUP_FISCAL_YEAR, t1.GROUP_LOT_ON_DELIVERY_SLIP, t1.GROUP_MASS_MAILING_CAMPAIGN, t1.GROUP_MRP_ROUTINGS, t1.GROUP_MULTI_CURRENCY, t1.GROUP_MULTI_WEBSITE, t1.GROUP_PRODUCT_PRICELIST, t1.GROUP_PRODUCT_VARIANT, t1.GROUP_PROFORMA_SALES, t1.GROUP_PROJECT_RATING, t1.GROUP_SALE_DELIVERY_ADDRESS, t1.GROUP_SALE_ORDER_TEMPLATE, t1.GROUP_SALE_PRICELIST, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_EXCLUDED, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_INCLUDED, t1.GROUP_STOCK_ADV_LOCATION, t1.GROUP_STOCK_MULTI_LOCATIONS, t1.GROUP_STOCK_MULTI_WAREHOUSES, t1.GROUP_STOCK_PACKAGING, t1.GROUP_STOCK_PRODUCTION_LOT, t1.GROUP_STOCK_TRACKING_LOT, t1.GROUP_STOCK_TRACKING_OWNER, t1.GROUP_SUBTASK_PROJECT, t1.GROUP_UOM, t1.GROUP_USE_LEAD, t1.GROUP_WARNING_ACCOUNT, t1.GROUP_WARNING_PURCHASE, t1.GROUP_WARNING_SALE, t1.GROUP_WARNING_STOCK, t1.ID, t1.INVENTORY_AVAILABILITY, t11.INVOICE_IS_EMAIL, t11.INVOICE_IS_PRINT, t11.INVOICE_IS_SNAILMAIL, t1.IS_INSTALLED_SALE, t1.LOCK_CONFIRMED_PO, t11.MANUFACTURING_LEAD, t1.MASS_MAILING_MAIL_SERVER_ID, t1.MASS_MAILING_OUTGOING_MAIL_SERVER, t1.MODULE_ACCOUNT, t1.MODULE_ACCOUNT_3WAY_MATCH, t1.MODULE_ACCOUNT_ACCOUNTANT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CAMT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CSV, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_OFX, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF, t1.MODULE_ACCOUNT_BATCH_PAYMENT, t1.MODULE_ACCOUNT_BUDGET, t1.MODULE_ACCOUNT_CHECK_PRINTING, t1.MODULE_ACCOUNT_INTRASTAT, t1.MODULE_ACCOUNT_INVOICE_EXTRACT, t1.MODULE_ACCOUNT_PAYMENT, t1.MODULE_ACCOUNT_PLAID, t1.MODULE_ACCOUNT_REPORTS, t1.MODULE_ACCOUNT_SEPA, t1.MODULE_ACCOUNT_SEPA_DIRECT_DEBIT, t1.MODULE_ACCOUNT_TAXCLOUD, t1.MODULE_ACCOUNT_YODLEE, t1.MODULE_AUTH_LDAP, t1.MODULE_AUTH_OAUTH, t1.MODULE_BASE_GENGO, t1.MODULE_BASE_IMPORT, t1.MODULE_CURRENCY_RATE_LIVE, t1.MODULE_DELIVERY, t1.MODULE_DELIVERY_BPOST, t1.MODULE_DELIVERY_DHL, t1.MODULE_DELIVERY_EASYPOST, t1.MODULE_DELIVERY_FEDEX, t1.MODULE_DELIVERY_UPS, t1.MODULE_DELIVERY_USPS, t1.MODULE_EVENT_BARCODE, t1.MODULE_EVENT_SALE, t1.MODULE_GOOGLE_CALENDAR, t1.MODULE_GOOGLE_DRIVE, t1.MODULE_GOOGLE_SPREADSHEET, t1.MODULE_HR_ORG_CHART, t1.MODULE_HR_RECRUITMENT_SURVEY, t1.MODULE_HR_TIMESHEET, t1.MODULE_INTER_COMPANY_RULES, t1.MODULE_L10N_EU_SERVICE, t1.MODULE_MRP_MPS, t1.MODULE_MRP_PLM, t1.MODULE_MRP_WORKORDER, t1.MODULE_PAD, t1.MODULE_PARTNER_AUTOCOMPLETE, t1.MODULE_POS_MERCURY, t1.MODULE_PROCUREMENT_JIT, t1.MODULE_PRODUCT_EMAIL_TEMPLATE, t1.MODULE_PRODUCT_EXPIRY, t1.MODULE_PRODUCT_MARGIN, t1.MODULE_PROJECT_FORECAST, t1.MODULE_PURCHASE_REQUISITION, t1.MODULE_QUALITY_CONTROL, t1.MODULE_SALE_COUPON, t1.MODULE_SALE_MARGIN, t1.MODULE_SALE_QUOTATION_BUILDER, t1.MODULE_STOCK_BARCODE, t1.MODULE_STOCK_DROPSHIPPING, t1.MODULE_STOCK_LANDED_COSTS, t1.MODULE_STOCK_PICKING_BATCH, t1.MODULE_VOIP, t1.MODULE_WEBSITE_EVENT_QUESTIONS, t1.MODULE_WEBSITE_EVENT_SALE, t1.MODULE_WEBSITE_EVENT_TRACK, t1.MODULE_WEBSITE_HR_RECRUITMENT, t1.MODULE_WEBSITE_LINKS, t1.MODULE_WEBSITE_SALE_COMPARISON, t1.MODULE_WEBSITE_SALE_DELIVERY, t1.MODULE_WEBSITE_SALE_DIGITAL, t1.MODULE_WEBSITE_SALE_STOCK, t1.MODULE_WEBSITE_SALE_WISHLIST, t1.MODULE_WEBSITE_VERSION, t1.MODULE_WEB_UNSPLASH, t11.PAPERFORMAT_ID, t11.PORTAL_CONFIRMATION_PAY, t11.PORTAL_CONFIRMATION_SIGN, t11.PO_DOUBLE_VALIDATION, t11.PO_DOUBLE_VALIDATION_AMOUNT, t11.PO_LEAD, t11.PO_LOCK, t1.PO_ORDER_APPROVAL, t1.PRODUCT_WEIGHT_IN_LBS, t11.ACCOUNT_PURCHASE_TAX_ID AS PURCHASE_TAX_ID, t11.QR_CODE, t11.QUOTATION_VALIDITY_DAYS, t11.REPORT_FOOTER, t11.RESOURCE_CALENDAR_ID, t1.SALE_DELIVERY_SETTINGS, t11.ACCOUNT_SALE_TAX_ID AS SALE_TAX_ID, t11.SECURITY_LEAD, t1.SHOW_BLACKLIST_BUTTONS, t1.SHOW_EFFECT, t1.SHOW_LINE_SUBTOTALS_TAX_SELECTION, t11.SNAILMAIL_COLOR, t11.SNAILMAIL_DUPLEX, t11.TAX_CALCULATION_ROUNDING_METHOD, t11.TAX_CASH_BASIS_JOURNAL_ID, t11.TAX_EXIGIBILITY, t1.TEMPLATE_ID, t91.NAME AS TEMPLATE_ID_TEXT, t1.UNSPLASH_ACCESS_KEY, t1.USER_DEFAULT_RIGHTS, t1.USE_MAILGATEWAY, t1.USE_MANUFACTURING_LEAD, t1.USE_PO_LEAD, t1.USE_QUOTATION_VALIDITY_DAYS, t1.USE_SECURITY_LEAD, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM RES_CONFIG_SETTINGS t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN DIGEST_DIGEST t41 ON t1.DIGEST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.AUTH_SIGNUP_TEMPLATE_USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.DEPOSIT_DEFAULT_PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN MAIL_TEMPLATE t91 ON t1.TEMPLATE_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t11.PARTNER_ID = t121.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t131 ON t1.CHART_TEMPLATE_ID = t131.ID LEFT JOIN SALE_ORDER_TEMPLATE t141 ON t1.DEFAULT_SALE_ORDER_TEMPLATE_ID = t141.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t11.ACCOUNT_BANK_RECONCILIATION_START, t1.ALIAS_DOMAIN, t1.AUTH_SIGNUP_RESET_PASSWORD, t1.AUTH_SIGNUP_TEMPLATE_USER_ID, t61.NAME AS AUTH_SIGNUP_TEMPLATE_USER_ID_TEXT, t1.AUTOMATIC_INVOICE, t1.AVAILABLE_THRESHOLD, t1.CHART_TEMPLATE_ID, t131.NAME AS CHART_TEMPLATE_ID_TEXT, t11.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t121.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.CRM_ALIAS_PREFIX, t11.CURRENCY_EXCHANGE_JOURNAL_ID, t11.CURRENCY_ID, t1.DEFAULT_INVOICE_POLICY, t1.DEFAULT_PICKING_POLICY, t1.DEFAULT_PURCHASE_METHOD, t1.DEFAULT_SALE_ORDER_TEMPLATE_ID, t141.NAME AS DEFAULT_SALE_ORDER_TEMPLATE_ID_TEXT, t1.DEPOSIT_DEFAULT_PRODUCT_ID, t81.NAME AS DEPOSIT_DEFAULT_PRODUCT_ID_TEXT, t1.DIGEST_EMAILS, t1.DIGEST_ID, t41.NAME AS DIGEST_ID_TEXT, t1.EXPENSE_ALIAS_PREFIX, t1.EXTERNAL_EMAIL_SERVER_DEFAULT, t11.EXTERNAL_REPORT_LAYOUT_ID, t1.FAIL_COUNTER, t1.GENERATE_LEAD_FROM_ALIAS, t1.GROUP_ANALYTIC_ACCOUNTING, t1.GROUP_ANALYTIC_TAGS, t1.GROUP_ATTENDANCE_USE_PIN, t1.GROUP_CASH_ROUNDING, t1.GROUP_DELIVERY_INVOICE_ADDRESS, t1.GROUP_DISCOUNT_PER_SO_LINE, t1.GROUP_DISPLAY_INCOTERM, t1.GROUP_FISCAL_YEAR, t1.GROUP_LOT_ON_DELIVERY_SLIP, t1.GROUP_MASS_MAILING_CAMPAIGN, t1.GROUP_MRP_ROUTINGS, t1.GROUP_MULTI_CURRENCY, t1.GROUP_MULTI_WEBSITE, t1.GROUP_PRODUCT_PRICELIST, t1.GROUP_PRODUCT_VARIANT, t1.GROUP_PROFORMA_SALES, t1.GROUP_PROJECT_RATING, t1.GROUP_SALE_DELIVERY_ADDRESS, t1.GROUP_SALE_ORDER_TEMPLATE, t1.GROUP_SALE_PRICELIST, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_EXCLUDED, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_INCLUDED, t1.GROUP_STOCK_ADV_LOCATION, t1.GROUP_STOCK_MULTI_LOCATIONS, t1.GROUP_STOCK_MULTI_WAREHOUSES, t1.GROUP_STOCK_PACKAGING, t1.GROUP_STOCK_PRODUCTION_LOT, t1.GROUP_STOCK_TRACKING_LOT, t1.GROUP_STOCK_TRACKING_OWNER, t1.GROUP_SUBTASK_PROJECT, t1.GROUP_UOM, t1.GROUP_USE_LEAD, t1.GROUP_WARNING_ACCOUNT, t1.GROUP_WARNING_PURCHASE, t1.GROUP_WARNING_SALE, t1.GROUP_WARNING_STOCK, t1.ID, t1.INVENTORY_AVAILABILITY, t11.INVOICE_IS_EMAIL, t11.INVOICE_IS_PRINT, t11.INVOICE_IS_SNAILMAIL, t1.IS_INSTALLED_SALE, t1.LOCK_CONFIRMED_PO, t11.MANUFACTURING_LEAD, t1.MASS_MAILING_MAIL_SERVER_ID, t1.MASS_MAILING_OUTGOING_MAIL_SERVER, t1.MODULE_ACCOUNT, t1.MODULE_ACCOUNT_3WAY_MATCH, t1.MODULE_ACCOUNT_ACCOUNTANT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CAMT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CSV, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_OFX, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF, t1.MODULE_ACCOUNT_BATCH_PAYMENT, t1.MODULE_ACCOUNT_BUDGET, t1.MODULE_ACCOUNT_CHECK_PRINTING, t1.MODULE_ACCOUNT_INTRASTAT, t1.MODULE_ACCOUNT_INVOICE_EXTRACT, t1.MODULE_ACCOUNT_PAYMENT, t1.MODULE_ACCOUNT_PLAID, t1.MODULE_ACCOUNT_REPORTS, t1.MODULE_ACCOUNT_SEPA, t1.MODULE_ACCOUNT_SEPA_DIRECT_DEBIT, t1.MODULE_ACCOUNT_TAXCLOUD, t1.MODULE_ACCOUNT_YODLEE, t1.MODULE_AUTH_LDAP, t1.MODULE_AUTH_OAUTH, t1.MODULE_BASE_GENGO, t1.MODULE_BASE_IMPORT, t1.MODULE_CURRENCY_RATE_LIVE, t1.MODULE_DELIVERY, t1.MODULE_DELIVERY_BPOST, t1.MODULE_DELIVERY_DHL, t1.MODULE_DELIVERY_EASYPOST, t1.MODULE_DELIVERY_FEDEX, t1.MODULE_DELIVERY_UPS, t1.MODULE_DELIVERY_USPS, t1.MODULE_EVENT_BARCODE, t1.MODULE_EVENT_SALE, t1.MODULE_GOOGLE_CALENDAR, t1.MODULE_GOOGLE_DRIVE, t1.MODULE_GOOGLE_SPREADSHEET, t1.MODULE_HR_ORG_CHART, t1.MODULE_HR_RECRUITMENT_SURVEY, t1.MODULE_HR_SKILLS, t1.MODULE_HR_TIMESHEET, t1.MODULE_INTER_COMPANY_RULES, t1.MODULE_L10N_EU_SERVICE, t1.MODULE_MRP_MPS, t1.MODULE_MRP_PLM, t1.MODULE_MRP_WORKORDER, t1.MODULE_PAD, t1.MODULE_PARTNER_AUTOCOMPLETE, t1.MODULE_POS_MERCURY, t1.MODULE_PROCUREMENT_JIT, t1.MODULE_PRODUCT_EMAIL_TEMPLATE, t1.MODULE_PRODUCT_EXPIRY, t1.MODULE_PRODUCT_MARGIN, t1.MODULE_PROJECT_FORECAST, t1.MODULE_PURCHASE_REQUISITION, t1.MODULE_QUALITY_CONTROL, t1.MODULE_SALE_COUPON, t1.MODULE_SALE_MARGIN, t1.MODULE_SALE_QUOTATION_BUILDER, t1.MODULE_STOCK_BARCODE, t1.MODULE_STOCK_DROPSHIPPING, t1.MODULE_STOCK_LANDED_COSTS, t1.MODULE_STOCK_PICKING_BATCH, t1.MODULE_VOIP, t1.MODULE_WEBSITE_EVENT_QUESTIONS, t1.MODULE_WEBSITE_EVENT_SALE, t1.MODULE_WEBSITE_EVENT_TRACK, t1.MODULE_WEBSITE_HR_RECRUITMENT, t1.MODULE_WEBSITE_LINKS, t1.MODULE_WEBSITE_SALE_COMPARISON, t1.MODULE_WEBSITE_SALE_DELIVERY, t1.MODULE_WEBSITE_SALE_DIGITAL, t1.MODULE_WEBSITE_SALE_STOCK, t1.MODULE_WEBSITE_SALE_WISHLIST, t1.MODULE_WEBSITE_VERSION, t1.MODULE_WEB_UNSPLASH, t11.PAPERFORMAT_ID, t11.PORTAL_CONFIRMATION_PAY, t11.PORTAL_CONFIRMATION_SIGN, t11.PO_DOUBLE_VALIDATION, t11.PO_DOUBLE_VALIDATION_AMOUNT, t11.PO_LEAD, t11.PO_LOCK, t1.PO_ORDER_APPROVAL, t1.PRODUCT_WEIGHT_IN_LBS, t11.ACCOUNT_PURCHASE_TAX_ID AS PURCHASE_TAX_ID, t11.QR_CODE, t11.QUOTATION_VALIDITY_DAYS, t11.REPORT_FOOTER, t11.RESOURCE_CALENDAR_ID, t1.SALE_DELIVERY_SETTINGS, t11.ACCOUNT_SALE_TAX_ID AS SALE_TAX_ID, t11.SECURITY_LEAD, t1.SHOW_BLACKLIST_BUTTONS, t1.SHOW_EFFECT, t1.SHOW_LINE_SUBTOTALS_TAX_SELECTION, t11.SNAILMAIL_COLOR, t11.SNAILMAIL_DUPLEX, t11.TAX_CALCULATION_ROUNDING_METHOD, t11.TAX_CASH_BASIS_JOURNAL_ID, t11.TAX_EXIGIBILITY, t1.TEMPLATE_ID, t91.NAME AS TEMPLATE_ID_TEXT, t1.UNSPLASH_ACCESS_KEY, t1.USER_DEFAULT_RIGHTS, t1.USE_MAILGATEWAY, t1.USE_MANUFACTURING_LEAD, t1.USE_PO_LEAD, t1.USE_QUOTATION_VALIDITY_DAYS, t1.USE_SECURITY_LEAD, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM RES_CONFIG_SETTINGS t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN DIGEST_DIGEST t41 ON t1.DIGEST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.AUTH_SIGNUP_TEMPLATE_USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.DEPOSIT_DEFAULT_PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN MAIL_TEMPLATE t91 ON t1.TEMPLATE_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t11.PARTNER_ID = t121.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t131 ON t1.CHART_TEMPLATE_ID = t131.ID LEFT JOIN SALE_ORDER_TEMPLATE t141 ON t1.DEFAULT_SALE_ORDER_TEMPLATE_ID = t141.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -244,6 +244,7 @@
<result property="createUid" column="create_uid" />
<result property="authSignupTemplateUserId" column="auth_signup_template_user_id" />
<result property="writeUid" column="write_uid" />
<result property="moduleHrSkills" column="module_hr_skills" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
......@@ -341,12 +342,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t11.ACCOUNT_BANK_RECONCILIATION_START, t1.ALIAS_DOMAIN, t1.AUTH_SIGNUP_RESET_PASSWORD, t1.AUTH_SIGNUP_TEMPLATE_USER_ID, t61.NAME AS AUTH_SIGNUP_TEMPLATE_USER_ID_TEXT, t1.AUTOMATIC_INVOICE, t1.AVAILABLE_THRESHOLD, t1.CHART_TEMPLATE_ID, t131.NAME AS CHART_TEMPLATE_ID_TEXT, t11.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t121.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.CRM_ALIAS_PREFIX, t11.CURRENCY_EXCHANGE_JOURNAL_ID, t11.CURRENCY_ID, t1.DEFAULT_INVOICE_POLICY, t1.DEFAULT_PICKING_POLICY, t1.DEFAULT_PURCHASE_METHOD, t1.DEFAULT_SALE_ORDER_TEMPLATE_ID, t141.NAME AS DEFAULT_SALE_ORDER_TEMPLATE_ID_TEXT, t1.DEPOSIT_DEFAULT_PRODUCT_ID, t81.NAME AS DEPOSIT_DEFAULT_PRODUCT_ID_TEXT, t1.DIGEST_EMAILS, t1.DIGEST_ID, t41.NAME AS DIGEST_ID_TEXT, t1.EXPENSE_ALIAS_PREFIX, t1.EXTERNAL_EMAIL_SERVER_DEFAULT, t11.EXTERNAL_REPORT_LAYOUT_ID, t1.FAIL_COUNTER, t1.GENERATE_LEAD_FROM_ALIAS, t1.GROUP_ANALYTIC_ACCOUNTING, t1.GROUP_ANALYTIC_TAGS, t1.GROUP_ATTENDANCE_USE_PIN, t1.GROUP_CASH_ROUNDING, t1.GROUP_DELIVERY_INVOICE_ADDRESS, t1.GROUP_DISCOUNT_PER_SO_LINE, t1.GROUP_DISPLAY_INCOTERM, t1.GROUP_FISCAL_YEAR, t1.GROUP_LOT_ON_DELIVERY_SLIP, t1.GROUP_MASS_MAILING_CAMPAIGN, t1.GROUP_MRP_ROUTINGS, t1.GROUP_MULTI_CURRENCY, t1.GROUP_MULTI_WEBSITE, t1.GROUP_PRODUCT_PRICELIST, t1.GROUP_PRODUCT_VARIANT, t1.GROUP_PROFORMA_SALES, t1.GROUP_PROJECT_RATING, t1.GROUP_SALE_DELIVERY_ADDRESS, t1.GROUP_SALE_ORDER_TEMPLATE, t1.GROUP_SALE_PRICELIST, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_EXCLUDED, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_INCLUDED, t1.GROUP_STOCK_ADV_LOCATION, t1.GROUP_STOCK_MULTI_LOCATIONS, t1.GROUP_STOCK_MULTI_WAREHOUSES, t1.GROUP_STOCK_PACKAGING, t1.GROUP_STOCK_PRODUCTION_LOT, t1.GROUP_STOCK_TRACKING_LOT, t1.GROUP_STOCK_TRACKING_OWNER, t1.GROUP_SUBTASK_PROJECT, t1.GROUP_UOM, t1.GROUP_USE_LEAD, t1.GROUP_WARNING_ACCOUNT, t1.GROUP_WARNING_PURCHASE, t1.GROUP_WARNING_SALE, t1.GROUP_WARNING_STOCK, t1.ID, t1.INVENTORY_AVAILABILITY, t11.INVOICE_IS_EMAIL, t11.INVOICE_IS_PRINT, t11.INVOICE_IS_SNAILMAIL, t1.IS_INSTALLED_SALE, t1.LOCK_CONFIRMED_PO, t11.MANUFACTURING_LEAD, t1.MASS_MAILING_MAIL_SERVER_ID, t1.MASS_MAILING_OUTGOING_MAIL_SERVER, t1.MODULE_ACCOUNT, t1.MODULE_ACCOUNT_3WAY_MATCH, t1.MODULE_ACCOUNT_ACCOUNTANT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CAMT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CSV, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_OFX, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF, t1.MODULE_ACCOUNT_BATCH_PAYMENT, t1.MODULE_ACCOUNT_BUDGET, t1.MODULE_ACCOUNT_CHECK_PRINTING, t1.MODULE_ACCOUNT_INTRASTAT, t1.MODULE_ACCOUNT_INVOICE_EXTRACT, t1.MODULE_ACCOUNT_PAYMENT, t1.MODULE_ACCOUNT_PLAID, t1.MODULE_ACCOUNT_REPORTS, t1.MODULE_ACCOUNT_SEPA, t1.MODULE_ACCOUNT_SEPA_DIRECT_DEBIT, t1.MODULE_ACCOUNT_TAXCLOUD, t1.MODULE_ACCOUNT_YODLEE, t1.MODULE_AUTH_LDAP, t1.MODULE_AUTH_OAUTH, t1.MODULE_BASE_GENGO, t1.MODULE_BASE_IMPORT, t1.MODULE_CURRENCY_RATE_LIVE, t1.MODULE_DELIVERY, t1.MODULE_DELIVERY_BPOST, t1.MODULE_DELIVERY_DHL, t1.MODULE_DELIVERY_EASYPOST, t1.MODULE_DELIVERY_FEDEX, t1.MODULE_DELIVERY_UPS, t1.MODULE_DELIVERY_USPS, t1.MODULE_EVENT_BARCODE, t1.MODULE_EVENT_SALE, t1.MODULE_GOOGLE_CALENDAR, t1.MODULE_GOOGLE_DRIVE, t1.MODULE_GOOGLE_SPREADSHEET, t1.MODULE_HR_ORG_CHART, t1.MODULE_HR_RECRUITMENT_SURVEY, t1.MODULE_HR_TIMESHEET, t1.MODULE_INTER_COMPANY_RULES, t1.MODULE_L10N_EU_SERVICE, t1.MODULE_MRP_MPS, t1.MODULE_MRP_PLM, t1.MODULE_MRP_WORKORDER, t1.MODULE_PAD, t1.MODULE_PARTNER_AUTOCOMPLETE, t1.MODULE_POS_MERCURY, t1.MODULE_PROCUREMENT_JIT, t1.MODULE_PRODUCT_EMAIL_TEMPLATE, t1.MODULE_PRODUCT_EXPIRY, t1.MODULE_PRODUCT_MARGIN, t1.MODULE_PROJECT_FORECAST, t1.MODULE_PURCHASE_REQUISITION, t1.MODULE_QUALITY_CONTROL, t1.MODULE_SALE_COUPON, t1.MODULE_SALE_MARGIN, t1.MODULE_SALE_QUOTATION_BUILDER, t1.MODULE_STOCK_BARCODE, t1.MODULE_STOCK_DROPSHIPPING, t1.MODULE_STOCK_LANDED_COSTS, t1.MODULE_STOCK_PICKING_BATCH, t1.MODULE_VOIP, t1.MODULE_WEBSITE_EVENT_QUESTIONS, t1.MODULE_WEBSITE_EVENT_SALE, t1.MODULE_WEBSITE_EVENT_TRACK, t1.MODULE_WEBSITE_HR_RECRUITMENT, t1.MODULE_WEBSITE_LINKS, t1.MODULE_WEBSITE_SALE_COMPARISON, t1.MODULE_WEBSITE_SALE_DELIVERY, t1.MODULE_WEBSITE_SALE_DIGITAL, t1.MODULE_WEBSITE_SALE_STOCK, t1.MODULE_WEBSITE_SALE_WISHLIST, t1.MODULE_WEBSITE_VERSION, t1.MODULE_WEB_UNSPLASH, t11.PAPERFORMAT_ID, t11.PORTAL_CONFIRMATION_PAY, t11.PORTAL_CONFIRMATION_SIGN, t11.PO_DOUBLE_VALIDATION, t11.PO_DOUBLE_VALIDATION_AMOUNT, t11.PO_LEAD, t11.PO_LOCK, t1.PO_ORDER_APPROVAL, t1.PRODUCT_WEIGHT_IN_LBS, t11.ACCOUNT_PURCHASE_TAX_ID AS PURCHASE_TAX_ID, t11.QR_CODE, t11.QUOTATION_VALIDITY_DAYS, t11.RESOURCE_CALENDAR_ID, t1.SALE_DELIVERY_SETTINGS, t11.ACCOUNT_SALE_TAX_ID AS SALE_TAX_ID, t11.SECURITY_LEAD, t1.SHOW_BLACKLIST_BUTTONS, t1.SHOW_EFFECT, t1.SHOW_LINE_SUBTOTALS_TAX_SELECTION, t11.SNAILMAIL_COLOR, t11.SNAILMAIL_DUPLEX, t11.TAX_CALCULATION_ROUNDING_METHOD, t11.TAX_CASH_BASIS_JOURNAL_ID, t11.TAX_EXIGIBILITY, t1.TEMPLATE_ID, t91.NAME AS TEMPLATE_ID_TEXT, t1.UNSPLASH_ACCESS_KEY, t1.USER_DEFAULT_RIGHTS, t1.USE_MAILGATEWAY, t1.USE_MANUFACTURING_LEAD, t1.USE_PO_LEAD, t1.USE_QUOTATION_VALIDITY_DAYS, t1.USE_SECURITY_LEAD, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM RES_CONFIG_SETTINGS t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN DIGEST_DIGEST t41 ON t1.DIGEST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.AUTH_SIGNUP_TEMPLATE_USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.DEPOSIT_DEFAULT_PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN MAIL_TEMPLATE t91 ON t1.TEMPLATE_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t11.PARTNER_ID = t121.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t131 ON t1.CHART_TEMPLATE_ID = t131.ID LEFT JOIN SALE_ORDER_TEMPLATE t141 ON t1.DEFAULT_SALE_ORDER_TEMPLATE_ID = t141.ID
<![CDATA[ SELECT t11.ACCOUNT_BANK_RECONCILIATION_START, t1.ALIAS_DOMAIN, t1.AUTH_SIGNUP_RESET_PASSWORD, t1.AUTH_SIGNUP_TEMPLATE_USER_ID, t61.NAME AS AUTH_SIGNUP_TEMPLATE_USER_ID_TEXT, t1.AUTOMATIC_INVOICE, t1.AVAILABLE_THRESHOLD, t1.CHART_TEMPLATE_ID, t131.NAME AS CHART_TEMPLATE_ID_TEXT, t11.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t121.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.CRM_ALIAS_PREFIX, t11.CURRENCY_EXCHANGE_JOURNAL_ID, t11.CURRENCY_ID, t1.DEFAULT_INVOICE_POLICY, t1.DEFAULT_PICKING_POLICY, t1.DEFAULT_PURCHASE_METHOD, t1.DEFAULT_SALE_ORDER_TEMPLATE_ID, t141.NAME AS DEFAULT_SALE_ORDER_TEMPLATE_ID_TEXT, t1.DEPOSIT_DEFAULT_PRODUCT_ID, t81.NAME AS DEPOSIT_DEFAULT_PRODUCT_ID_TEXT, t1.DIGEST_EMAILS, t1.DIGEST_ID, t41.NAME AS DIGEST_ID_TEXT, t1.EXPENSE_ALIAS_PREFIX, t1.EXTERNAL_EMAIL_SERVER_DEFAULT, t11.EXTERNAL_REPORT_LAYOUT_ID, t1.FAIL_COUNTER, t1.GENERATE_LEAD_FROM_ALIAS, t1.GROUP_ANALYTIC_ACCOUNTING, t1.GROUP_ANALYTIC_TAGS, t1.GROUP_ATTENDANCE_USE_PIN, t1.GROUP_CASH_ROUNDING, t1.GROUP_DELIVERY_INVOICE_ADDRESS, t1.GROUP_DISCOUNT_PER_SO_LINE, t1.GROUP_DISPLAY_INCOTERM, t1.GROUP_FISCAL_YEAR, t1.GROUP_LOT_ON_DELIVERY_SLIP, t1.GROUP_MASS_MAILING_CAMPAIGN, t1.GROUP_MRP_ROUTINGS, t1.GROUP_MULTI_CURRENCY, t1.GROUP_MULTI_WEBSITE, t1.GROUP_PRODUCT_PRICELIST, t1.GROUP_PRODUCT_VARIANT, t1.GROUP_PROFORMA_SALES, t1.GROUP_PROJECT_RATING, t1.GROUP_SALE_DELIVERY_ADDRESS, t1.GROUP_SALE_ORDER_TEMPLATE, t1.GROUP_SALE_PRICELIST, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_EXCLUDED, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_INCLUDED, t1.GROUP_STOCK_ADV_LOCATION, t1.GROUP_STOCK_MULTI_LOCATIONS, t1.GROUP_STOCK_MULTI_WAREHOUSES, t1.GROUP_STOCK_PACKAGING, t1.GROUP_STOCK_PRODUCTION_LOT, t1.GROUP_STOCK_TRACKING_LOT, t1.GROUP_STOCK_TRACKING_OWNER, t1.GROUP_SUBTASK_PROJECT, t1.GROUP_UOM, t1.GROUP_USE_LEAD, t1.GROUP_WARNING_ACCOUNT, t1.GROUP_WARNING_PURCHASE, t1.GROUP_WARNING_SALE, t1.GROUP_WARNING_STOCK, t1.ID, t1.INVENTORY_AVAILABILITY, t11.INVOICE_IS_EMAIL, t11.INVOICE_IS_PRINT, t11.INVOICE_IS_SNAILMAIL, t1.IS_INSTALLED_SALE, t1.LOCK_CONFIRMED_PO, t11.MANUFACTURING_LEAD, t1.MASS_MAILING_MAIL_SERVER_ID, t1.MASS_MAILING_OUTGOING_MAIL_SERVER, t1.MODULE_ACCOUNT, t1.MODULE_ACCOUNT_3WAY_MATCH, t1.MODULE_ACCOUNT_ACCOUNTANT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CAMT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CSV, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_OFX, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF, t1.MODULE_ACCOUNT_BATCH_PAYMENT, t1.MODULE_ACCOUNT_BUDGET, t1.MODULE_ACCOUNT_CHECK_PRINTING, t1.MODULE_ACCOUNT_INTRASTAT, t1.MODULE_ACCOUNT_INVOICE_EXTRACT, t1.MODULE_ACCOUNT_PAYMENT, t1.MODULE_ACCOUNT_PLAID, t1.MODULE_ACCOUNT_REPORTS, t1.MODULE_ACCOUNT_SEPA, t1.MODULE_ACCOUNT_SEPA_DIRECT_DEBIT, t1.MODULE_ACCOUNT_TAXCLOUD, t1.MODULE_ACCOUNT_YODLEE, t1.MODULE_AUTH_LDAP, t1.MODULE_AUTH_OAUTH, t1.MODULE_BASE_GENGO, t1.MODULE_BASE_IMPORT, t1.MODULE_CURRENCY_RATE_LIVE, t1.MODULE_DELIVERY, t1.MODULE_DELIVERY_BPOST, t1.MODULE_DELIVERY_DHL, t1.MODULE_DELIVERY_EASYPOST, t1.MODULE_DELIVERY_FEDEX, t1.MODULE_DELIVERY_UPS, t1.MODULE_DELIVERY_USPS, t1.MODULE_EVENT_BARCODE, t1.MODULE_EVENT_SALE, t1.MODULE_GOOGLE_CALENDAR, t1.MODULE_GOOGLE_DRIVE, t1.MODULE_GOOGLE_SPREADSHEET, t1.MODULE_HR_ORG_CHART, t1.MODULE_HR_RECRUITMENT_SURVEY, t1.MODULE_HR_SKILLS, t1.MODULE_HR_TIMESHEET, t1.MODULE_INTER_COMPANY_RULES, t1.MODULE_L10N_EU_SERVICE, t1.MODULE_MRP_MPS, t1.MODULE_MRP_PLM, t1.MODULE_MRP_WORKORDER, t1.MODULE_PAD, t1.MODULE_PARTNER_AUTOCOMPLETE, t1.MODULE_POS_MERCURY, t1.MODULE_PROCUREMENT_JIT, t1.MODULE_PRODUCT_EMAIL_TEMPLATE, t1.MODULE_PRODUCT_EXPIRY, t1.MODULE_PRODUCT_MARGIN, t1.MODULE_PROJECT_FORECAST, t1.MODULE_PURCHASE_REQUISITION, t1.MODULE_QUALITY_CONTROL, t1.MODULE_SALE_COUPON, t1.MODULE_SALE_MARGIN, t1.MODULE_SALE_QUOTATION_BUILDER, t1.MODULE_STOCK_BARCODE, t1.MODULE_STOCK_DROPSHIPPING, t1.MODULE_STOCK_LANDED_COSTS, t1.MODULE_STOCK_PICKING_BATCH, t1.MODULE_VOIP, t1.MODULE_WEBSITE_EVENT_QUESTIONS, t1.MODULE_WEBSITE_EVENT_SALE, t1.MODULE_WEBSITE_EVENT_TRACK, t1.MODULE_WEBSITE_HR_RECRUITMENT, t1.MODULE_WEBSITE_LINKS, t1.MODULE_WEBSITE_SALE_COMPARISON, t1.MODULE_WEBSITE_SALE_DELIVERY, t1.MODULE_WEBSITE_SALE_DIGITAL, t1.MODULE_WEBSITE_SALE_STOCK, t1.MODULE_WEBSITE_SALE_WISHLIST, t1.MODULE_WEBSITE_VERSION, t1.MODULE_WEB_UNSPLASH, t11.PAPERFORMAT_ID, t11.PORTAL_CONFIRMATION_PAY, t11.PORTAL_CONFIRMATION_SIGN, t11.PO_DOUBLE_VALIDATION, t11.PO_DOUBLE_VALIDATION_AMOUNT, t11.PO_LEAD, t11.PO_LOCK, t1.PO_ORDER_APPROVAL, t1.PRODUCT_WEIGHT_IN_LBS, t11.ACCOUNT_PURCHASE_TAX_ID AS PURCHASE_TAX_ID, t11.QR_CODE, t11.QUOTATION_VALIDITY_DAYS, t11.RESOURCE_CALENDAR_ID, t1.SALE_DELIVERY_SETTINGS, t11.ACCOUNT_SALE_TAX_ID AS SALE_TAX_ID, t11.SECURITY_LEAD, t1.SHOW_BLACKLIST_BUTTONS, t1.SHOW_EFFECT, t1.SHOW_LINE_SUBTOTALS_TAX_SELECTION, t11.SNAILMAIL_COLOR, t11.SNAILMAIL_DUPLEX, t11.TAX_CALCULATION_ROUNDING_METHOD, t11.TAX_CASH_BASIS_JOURNAL_ID, t11.TAX_EXIGIBILITY, t1.TEMPLATE_ID, t91.NAME AS TEMPLATE_ID_TEXT, t1.UNSPLASH_ACCESS_KEY, t1.USER_DEFAULT_RIGHTS, t1.USE_MAILGATEWAY, t1.USE_MANUFACTURING_LEAD, t1.USE_PO_LEAD, t1.USE_QUOTATION_VALIDITY_DAYS, t1.USE_SECURITY_LEAD, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM RES_CONFIG_SETTINGS t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN DIGEST_DIGEST t41 ON t1.DIGEST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.AUTH_SIGNUP_TEMPLATE_USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.DEPOSIT_DEFAULT_PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN MAIL_TEMPLATE t91 ON t1.TEMPLATE_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t11.PARTNER_ID = t121.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t131 ON t1.CHART_TEMPLATE_ID = t131.ID LEFT JOIN SALE_ORDER_TEMPLATE t141 ON t1.DEFAULT_SALE_ORDER_TEMPLATE_ID = t141.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t11.ACCOUNT_BANK_RECONCILIATION_START, t1.ALIAS_DOMAIN, t1.AUTH_SIGNUP_RESET_PASSWORD, t1.AUTH_SIGNUP_TEMPLATE_USER_ID, t61.NAME AS AUTH_SIGNUP_TEMPLATE_USER_ID_TEXT, t1.AUTOMATIC_INVOICE, t1.AVAILABLE_THRESHOLD, t1.CHART_TEMPLATE_ID, t131.NAME AS CHART_TEMPLATE_ID_TEXT, t11.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t121.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.CRM_ALIAS_PREFIX, t11.CURRENCY_EXCHANGE_JOURNAL_ID, t11.CURRENCY_ID, t1.DEFAULT_INVOICE_POLICY, t1.DEFAULT_PICKING_POLICY, t1.DEFAULT_PURCHASE_METHOD, t1.DEFAULT_SALE_ORDER_TEMPLATE_ID, t141.NAME AS DEFAULT_SALE_ORDER_TEMPLATE_ID_TEXT, t1.DEPOSIT_DEFAULT_PRODUCT_ID, t81.NAME AS DEPOSIT_DEFAULT_PRODUCT_ID_TEXT, t1.DIGEST_EMAILS, t1.DIGEST_ID, t41.NAME AS DIGEST_ID_TEXT, t1.EXPENSE_ALIAS_PREFIX, t1.EXTERNAL_EMAIL_SERVER_DEFAULT, t11.EXTERNAL_REPORT_LAYOUT_ID, t1.FAIL_COUNTER, t1.GENERATE_LEAD_FROM_ALIAS, t1.GROUP_ANALYTIC_ACCOUNTING, t1.GROUP_ANALYTIC_TAGS, t1.GROUP_ATTENDANCE_USE_PIN, t1.GROUP_CASH_ROUNDING, t1.GROUP_DELIVERY_INVOICE_ADDRESS, t1.GROUP_DISCOUNT_PER_SO_LINE, t1.GROUP_DISPLAY_INCOTERM, t1.GROUP_FISCAL_YEAR, t1.GROUP_LOT_ON_DELIVERY_SLIP, t1.GROUP_MASS_MAILING_CAMPAIGN, t1.GROUP_MRP_ROUTINGS, t1.GROUP_MULTI_CURRENCY, t1.GROUP_MULTI_WEBSITE, t1.GROUP_PRODUCT_PRICELIST, t1.GROUP_PRODUCT_VARIANT, t1.GROUP_PROFORMA_SALES, t1.GROUP_PROJECT_RATING, t1.GROUP_SALE_DELIVERY_ADDRESS, t1.GROUP_SALE_ORDER_TEMPLATE, t1.GROUP_SALE_PRICELIST, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_EXCLUDED, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_INCLUDED, t1.GROUP_STOCK_ADV_LOCATION, t1.GROUP_STOCK_MULTI_LOCATIONS, t1.GROUP_STOCK_MULTI_WAREHOUSES, t1.GROUP_STOCK_PACKAGING, t1.GROUP_STOCK_PRODUCTION_LOT, t1.GROUP_STOCK_TRACKING_LOT, t1.GROUP_STOCK_TRACKING_OWNER, t1.GROUP_SUBTASK_PROJECT, t1.GROUP_UOM, t1.GROUP_USE_LEAD, t1.GROUP_WARNING_ACCOUNT, t1.GROUP_WARNING_PURCHASE, t1.GROUP_WARNING_SALE, t1.GROUP_WARNING_STOCK, t1.ID, t1.INVENTORY_AVAILABILITY, t11.INVOICE_IS_EMAIL, t11.INVOICE_IS_PRINT, t11.INVOICE_IS_SNAILMAIL, t1.IS_INSTALLED_SALE, t1.LOCK_CONFIRMED_PO, t11.MANUFACTURING_LEAD, t1.MASS_MAILING_MAIL_SERVER_ID, t1.MASS_MAILING_OUTGOING_MAIL_SERVER, t1.MODULE_ACCOUNT, t1.MODULE_ACCOUNT_3WAY_MATCH, t1.MODULE_ACCOUNT_ACCOUNTANT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CAMT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CSV, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_OFX, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF, t1.MODULE_ACCOUNT_BATCH_PAYMENT, t1.MODULE_ACCOUNT_BUDGET, t1.MODULE_ACCOUNT_CHECK_PRINTING, t1.MODULE_ACCOUNT_INTRASTAT, t1.MODULE_ACCOUNT_INVOICE_EXTRACT, t1.MODULE_ACCOUNT_PAYMENT, t1.MODULE_ACCOUNT_PLAID, t1.MODULE_ACCOUNT_REPORTS, t1.MODULE_ACCOUNT_SEPA, t1.MODULE_ACCOUNT_SEPA_DIRECT_DEBIT, t1.MODULE_ACCOUNT_TAXCLOUD, t1.MODULE_ACCOUNT_YODLEE, t1.MODULE_AUTH_LDAP, t1.MODULE_AUTH_OAUTH, t1.MODULE_BASE_GENGO, t1.MODULE_BASE_IMPORT, t1.MODULE_CURRENCY_RATE_LIVE, t1.MODULE_DELIVERY, t1.MODULE_DELIVERY_BPOST, t1.MODULE_DELIVERY_DHL, t1.MODULE_DELIVERY_EASYPOST, t1.MODULE_DELIVERY_FEDEX, t1.MODULE_DELIVERY_UPS, t1.MODULE_DELIVERY_USPS, t1.MODULE_EVENT_BARCODE, t1.MODULE_EVENT_SALE, t1.MODULE_GOOGLE_CALENDAR, t1.MODULE_GOOGLE_DRIVE, t1.MODULE_GOOGLE_SPREADSHEET, t1.MODULE_HR_ORG_CHART, t1.MODULE_HR_RECRUITMENT_SURVEY, t1.MODULE_HR_TIMESHEET, t1.MODULE_INTER_COMPANY_RULES, t1.MODULE_L10N_EU_SERVICE, t1.MODULE_MRP_MPS, t1.MODULE_MRP_PLM, t1.MODULE_MRP_WORKORDER, t1.MODULE_PAD, t1.MODULE_PARTNER_AUTOCOMPLETE, t1.MODULE_POS_MERCURY, t1.MODULE_PROCUREMENT_JIT, t1.MODULE_PRODUCT_EMAIL_TEMPLATE, t1.MODULE_PRODUCT_EXPIRY, t1.MODULE_PRODUCT_MARGIN, t1.MODULE_PROJECT_FORECAST, t1.MODULE_PURCHASE_REQUISITION, t1.MODULE_QUALITY_CONTROL, t1.MODULE_SALE_COUPON, t1.MODULE_SALE_MARGIN, t1.MODULE_SALE_QUOTATION_BUILDER, t1.MODULE_STOCK_BARCODE, t1.MODULE_STOCK_DROPSHIPPING, t1.MODULE_STOCK_LANDED_COSTS, t1.MODULE_STOCK_PICKING_BATCH, t1.MODULE_VOIP, t1.MODULE_WEBSITE_EVENT_QUESTIONS, t1.MODULE_WEBSITE_EVENT_SALE, t1.MODULE_WEBSITE_EVENT_TRACK, t1.MODULE_WEBSITE_HR_RECRUITMENT, t1.MODULE_WEBSITE_LINKS, t1.MODULE_WEBSITE_SALE_COMPARISON, t1.MODULE_WEBSITE_SALE_DELIVERY, t1.MODULE_WEBSITE_SALE_DIGITAL, t1.MODULE_WEBSITE_SALE_STOCK, t1.MODULE_WEBSITE_SALE_WISHLIST, t1.MODULE_WEBSITE_VERSION, t1.MODULE_WEB_UNSPLASH, t11.PAPERFORMAT_ID, t11.PORTAL_CONFIRMATION_PAY, t11.PORTAL_CONFIRMATION_SIGN, t11.PO_DOUBLE_VALIDATION, t11.PO_DOUBLE_VALIDATION_AMOUNT, t11.PO_LEAD, t11.PO_LOCK, t1.PO_ORDER_APPROVAL, t1.PRODUCT_WEIGHT_IN_LBS, t11.ACCOUNT_PURCHASE_TAX_ID AS PURCHASE_TAX_ID, t11.QR_CODE, t11.QUOTATION_VALIDITY_DAYS, t11.REPORT_FOOTER, t11.RESOURCE_CALENDAR_ID, t1.SALE_DELIVERY_SETTINGS, t11.ACCOUNT_SALE_TAX_ID AS SALE_TAX_ID, t11.SECURITY_LEAD, t1.SHOW_BLACKLIST_BUTTONS, t1.SHOW_EFFECT, t1.SHOW_LINE_SUBTOTALS_TAX_SELECTION, t11.SNAILMAIL_COLOR, t11.SNAILMAIL_DUPLEX, t11.TAX_CALCULATION_ROUNDING_METHOD, t11.TAX_CASH_BASIS_JOURNAL_ID, t11.TAX_EXIGIBILITY, t1.TEMPLATE_ID, t91.NAME AS TEMPLATE_ID_TEXT, t1.UNSPLASH_ACCESS_KEY, t1.USER_DEFAULT_RIGHTS, t1.USE_MAILGATEWAY, t1.USE_MANUFACTURING_LEAD, t1.USE_PO_LEAD, t1.USE_QUOTATION_VALIDITY_DAYS, t1.USE_SECURITY_LEAD, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM RES_CONFIG_SETTINGS t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN DIGEST_DIGEST t41 ON t1.DIGEST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.AUTH_SIGNUP_TEMPLATE_USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.DEPOSIT_DEFAULT_PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN MAIL_TEMPLATE t91 ON t1.TEMPLATE_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t11.PARTNER_ID = t121.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t131 ON t1.CHART_TEMPLATE_ID = t131.ID LEFT JOIN SALE_ORDER_TEMPLATE t141 ON t1.DEFAULT_SALE_ORDER_TEMPLATE_ID = t141.ID
<![CDATA[ SELECT t11.ACCOUNT_BANK_RECONCILIATION_START, t1.ALIAS_DOMAIN, t1.AUTH_SIGNUP_RESET_PASSWORD, t1.AUTH_SIGNUP_TEMPLATE_USER_ID, t61.NAME AS AUTH_SIGNUP_TEMPLATE_USER_ID_TEXT, t1.AUTOMATIC_INVOICE, t1.AVAILABLE_THRESHOLD, t1.CHART_TEMPLATE_ID, t131.NAME AS CHART_TEMPLATE_ID_TEXT, t11.CURRENCY_ID AS COMPANY_CURRENCY_ID, t1.COMPANY_ID, t121.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.CRM_ALIAS_PREFIX, t11.CURRENCY_EXCHANGE_JOURNAL_ID, t11.CURRENCY_ID, t1.DEFAULT_INVOICE_POLICY, t1.DEFAULT_PICKING_POLICY, t1.DEFAULT_PURCHASE_METHOD, t1.DEFAULT_SALE_ORDER_TEMPLATE_ID, t141.NAME AS DEFAULT_SALE_ORDER_TEMPLATE_ID_TEXT, t1.DEPOSIT_DEFAULT_PRODUCT_ID, t81.NAME AS DEPOSIT_DEFAULT_PRODUCT_ID_TEXT, t1.DIGEST_EMAILS, t1.DIGEST_ID, t41.NAME AS DIGEST_ID_TEXT, t1.EXPENSE_ALIAS_PREFIX, t1.EXTERNAL_EMAIL_SERVER_DEFAULT, t11.EXTERNAL_REPORT_LAYOUT_ID, t1.FAIL_COUNTER, t1.GENERATE_LEAD_FROM_ALIAS, t1.GROUP_ANALYTIC_ACCOUNTING, t1.GROUP_ANALYTIC_TAGS, t1.GROUP_ATTENDANCE_USE_PIN, t1.GROUP_CASH_ROUNDING, t1.GROUP_DELIVERY_INVOICE_ADDRESS, t1.GROUP_DISCOUNT_PER_SO_LINE, t1.GROUP_DISPLAY_INCOTERM, t1.GROUP_FISCAL_YEAR, t1.GROUP_LOT_ON_DELIVERY_SLIP, t1.GROUP_MASS_MAILING_CAMPAIGN, t1.GROUP_MRP_ROUTINGS, t1.GROUP_MULTI_CURRENCY, t1.GROUP_MULTI_WEBSITE, t1.GROUP_PRODUCT_PRICELIST, t1.GROUP_PRODUCT_VARIANT, t1.GROUP_PROFORMA_SALES, t1.GROUP_PROJECT_RATING, t1.GROUP_SALE_DELIVERY_ADDRESS, t1.GROUP_SALE_ORDER_TEMPLATE, t1.GROUP_SALE_PRICELIST, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_EXCLUDED, t1.GROUP_SHOW_LINE_SUBTOTALS_TAX_INCLUDED, t1.GROUP_STOCK_ADV_LOCATION, t1.GROUP_STOCK_MULTI_LOCATIONS, t1.GROUP_STOCK_MULTI_WAREHOUSES, t1.GROUP_STOCK_PACKAGING, t1.GROUP_STOCK_PRODUCTION_LOT, t1.GROUP_STOCK_TRACKING_LOT, t1.GROUP_STOCK_TRACKING_OWNER, t1.GROUP_SUBTASK_PROJECT, t1.GROUP_UOM, t1.GROUP_USE_LEAD, t1.GROUP_WARNING_ACCOUNT, t1.GROUP_WARNING_PURCHASE, t1.GROUP_WARNING_SALE, t1.GROUP_WARNING_STOCK, t1.ID, t1.INVENTORY_AVAILABILITY, t11.INVOICE_IS_EMAIL, t11.INVOICE_IS_PRINT, t11.INVOICE_IS_SNAILMAIL, t1.IS_INSTALLED_SALE, t1.LOCK_CONFIRMED_PO, t11.MANUFACTURING_LEAD, t1.MASS_MAILING_MAIL_SERVER_ID, t1.MASS_MAILING_OUTGOING_MAIL_SERVER, t1.MODULE_ACCOUNT, t1.MODULE_ACCOUNT_3WAY_MATCH, t1.MODULE_ACCOUNT_ACCOUNTANT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CAMT, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_CSV, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_OFX, t1.MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF, t1.MODULE_ACCOUNT_BATCH_PAYMENT, t1.MODULE_ACCOUNT_BUDGET, t1.MODULE_ACCOUNT_CHECK_PRINTING, t1.MODULE_ACCOUNT_INTRASTAT, t1.MODULE_ACCOUNT_INVOICE_EXTRACT, t1.MODULE_ACCOUNT_PAYMENT, t1.MODULE_ACCOUNT_PLAID, t1.MODULE_ACCOUNT_REPORTS, t1.MODULE_ACCOUNT_SEPA, t1.MODULE_ACCOUNT_SEPA_DIRECT_DEBIT, t1.MODULE_ACCOUNT_TAXCLOUD, t1.MODULE_ACCOUNT_YODLEE, t1.MODULE_AUTH_LDAP, t1.MODULE_AUTH_OAUTH, t1.MODULE_BASE_GENGO, t1.MODULE_BASE_IMPORT, t1.MODULE_CURRENCY_RATE_LIVE, t1.MODULE_DELIVERY, t1.MODULE_DELIVERY_BPOST, t1.MODULE_DELIVERY_DHL, t1.MODULE_DELIVERY_EASYPOST, t1.MODULE_DELIVERY_FEDEX, t1.MODULE_DELIVERY_UPS, t1.MODULE_DELIVERY_USPS, t1.MODULE_EVENT_BARCODE, t1.MODULE_EVENT_SALE, t1.MODULE_GOOGLE_CALENDAR, t1.MODULE_GOOGLE_DRIVE, t1.MODULE_GOOGLE_SPREADSHEET, t1.MODULE_HR_ORG_CHART, t1.MODULE_HR_RECRUITMENT_SURVEY, t1.MODULE_HR_SKILLS, t1.MODULE_HR_TIMESHEET, t1.MODULE_INTER_COMPANY_RULES, t1.MODULE_L10N_EU_SERVICE, t1.MODULE_MRP_MPS, t1.MODULE_MRP_PLM, t1.MODULE_MRP_WORKORDER, t1.MODULE_PAD, t1.MODULE_PARTNER_AUTOCOMPLETE, t1.MODULE_POS_MERCURY, t1.MODULE_PROCUREMENT_JIT, t1.MODULE_PRODUCT_EMAIL_TEMPLATE, t1.MODULE_PRODUCT_EXPIRY, t1.MODULE_PRODUCT_MARGIN, t1.MODULE_PROJECT_FORECAST, t1.MODULE_PURCHASE_REQUISITION, t1.MODULE_QUALITY_CONTROL, t1.MODULE_SALE_COUPON, t1.MODULE_SALE_MARGIN, t1.MODULE_SALE_QUOTATION_BUILDER, t1.MODULE_STOCK_BARCODE, t1.MODULE_STOCK_DROPSHIPPING, t1.MODULE_STOCK_LANDED_COSTS, t1.MODULE_STOCK_PICKING_BATCH, t1.MODULE_VOIP, t1.MODULE_WEBSITE_EVENT_QUESTIONS, t1.MODULE_WEBSITE_EVENT_SALE, t1.MODULE_WEBSITE_EVENT_TRACK, t1.MODULE_WEBSITE_HR_RECRUITMENT, t1.MODULE_WEBSITE_LINKS, t1.MODULE_WEBSITE_SALE_COMPARISON, t1.MODULE_WEBSITE_SALE_DELIVERY, t1.MODULE_WEBSITE_SALE_DIGITAL, t1.MODULE_WEBSITE_SALE_STOCK, t1.MODULE_WEBSITE_SALE_WISHLIST, t1.MODULE_WEBSITE_VERSION, t1.MODULE_WEB_UNSPLASH, t11.PAPERFORMAT_ID, t11.PORTAL_CONFIRMATION_PAY, t11.PORTAL_CONFIRMATION_SIGN, t11.PO_DOUBLE_VALIDATION, t11.PO_DOUBLE_VALIDATION_AMOUNT, t11.PO_LEAD, t11.PO_LOCK, t1.PO_ORDER_APPROVAL, t1.PRODUCT_WEIGHT_IN_LBS, t11.ACCOUNT_PURCHASE_TAX_ID AS PURCHASE_TAX_ID, t11.QR_CODE, t11.QUOTATION_VALIDITY_DAYS, t11.REPORT_FOOTER, t11.RESOURCE_CALENDAR_ID, t1.SALE_DELIVERY_SETTINGS, t11.ACCOUNT_SALE_TAX_ID AS SALE_TAX_ID, t11.SECURITY_LEAD, t1.SHOW_BLACKLIST_BUTTONS, t1.SHOW_EFFECT, t1.SHOW_LINE_SUBTOTALS_TAX_SELECTION, t11.SNAILMAIL_COLOR, t11.SNAILMAIL_DUPLEX, t11.TAX_CALCULATION_ROUNDING_METHOD, t11.TAX_CASH_BASIS_JOURNAL_ID, t11.TAX_EXIGIBILITY, t1.TEMPLATE_ID, t91.NAME AS TEMPLATE_ID_TEXT, t1.UNSPLASH_ACCESS_KEY, t1.USER_DEFAULT_RIGHTS, t1.USE_MAILGATEWAY, t1.USE_MANUFACTURING_LEAD, t1.USE_PO_LEAD, t1.USE_QUOTATION_VALIDITY_DAYS, t1.USE_SECURITY_LEAD, t1.WEBSITE_ID, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM RES_CONFIG_SETTINGS t1 LEFT JOIN RES_COMPANY t11 ON t1.COMPANY_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN DIGEST_DIGEST t41 ON t1.DIGEST_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.AUTH_SIGNUP_TEMPLATE_USER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN PRODUCT_PRODUCT t71 ON t1.DEPOSIT_DEFAULT_PRODUCT_ID = t71.ID LEFT JOIN PRODUCT_TEMPLATE t81 ON t71.PRODUCT_TMPL_ID = t81.ID LEFT JOIN MAIL_TEMPLATE t91 ON t1.TEMPLATE_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN RES_PARTNER t121 ON t11.PARTNER_ID = t121.ID LEFT JOIN ACCOUNT_CHART_TEMPLATE t131 ON t1.CHART_TEMPLATE_ID = t131.ID LEFT JOIN SALE_ORDER_TEMPLATE t141 ON t1.DEFAULT_SALE_ORDER_TEMPLATE_ID = t141.ID
]]>
</sql>
......
......@@ -228,6 +228,12 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Active]-->
<sql id="Active" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTION_ID, t1.ACTIVE, t11.ACTIVE AS ACTIVE_PARTNER, t11.ADDITIONAL_INFO, t101.ALIAS_CONTACT, t1.ALIAS_ID, t11.BARCODE, t11.CALENDAR_LAST_NOTIF_ACK, t11.CITY, t11.COLOR, t11.COMMERCIAL_COMPANY_NAME, t11.COMMERCIAL_PARTNER_ID, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t11.COMPANY_NAME, t11.COUNTRY_ID, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t11.CREDIT_LIMIT, t11.DATE, t11.DEBIT_LIMIT, t11.EMAIL, t11.EMPLOYEE, t11.FUNCTION, t1.ID, t11.INDUSTRY_ID, t11.INVOICE_WARN, t11.IS_COMPANY, t11.IS_PUBLISHED, t1.KARMA, t11.LANG, t11.LAST_TIME_ENTRIES_CHECKED, t1.LOGIN, t11.MESSAGE_BOUNCE, t11.MESSAGE_MAIN_ATTACHMENT_ID, t11.MOBILE, t11.NAME, t1.NOTIFICATION_TYPE, t1.ODOOBOT_STATE, t11.PARENT_ID, t21.NAME AS PARENT_NAME, t11.PARTNER_GID, t1.PARTNER_ID, t11.PARTNER_SHARE, t11.PHONE, t11.PICKING_WARN, t11.PURCHASE_WARN, t11.REF, t1.SALE_TEAM_ID, t31.NAME AS SALE_TEAM_ID_TEXT, t11.SALE_WARN, t1.SHARE, t11.SIGNUP_EXPIRATION, t11.SIGNUP_TOKEN, t11.SIGNUP_TYPE, t11.STATE_ID, t11.STREET, t11.STREET2, t1.TARGET_SALES_DONE, t1.TARGET_SALES_INVOICED, t1.TARGET_SALES_WON, t11.TEAM_ID, t11.TITLE, t11.TYPE, t11.TZ, t11.USER_ID, t11.VAT, t11.WEBSITE, t1.WEBSITE_ID, t11.WEBSITE_META_KEYWORDS, t11.WEBSITE_META_OG_IMG, t11.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT, t11.ZIP FROM RES_USERS t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARENT_ID = t21.ID LEFT JOIN CRM_TEAM t31 ON t1.SALE_TEAM_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN MAIL_ALIAS t101 ON t1.ALIAS_ID = t101.ID
WHERE ( t1.ACTIVE = true )
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTION_ID, t1.ACTIVE, t11.ACTIVE AS ACTIVE_PARTNER, t11.ADDITIONAL_INFO, t101.ALIAS_CONTACT, t1.ALIAS_ID, t11.BARCODE, t11.CALENDAR_LAST_NOTIF_ACK, t11.CITY, t11.COLOR, t11.COMMERCIAL_COMPANY_NAME, t11.COMMERCIAL_PARTNER_ID, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t11.COMPANY_NAME, t11.COUNTRY_ID, t1.CREATE_DATE, t1.CREATE_UID, t71.NAME AS CREATE_UID_TEXT, t11.CREDIT_LIMIT, t11.DATE, t11.DEBIT_LIMIT, t11.EMAIL, t11.EMPLOYEE, t11.FUNCTION, t1.ID, t11.INDUSTRY_ID, t11.INVOICE_WARN, t11.IS_COMPANY, t11.IS_PUBLISHED, t1.KARMA, t11.LANG, t11.LAST_TIME_ENTRIES_CHECKED, t1.LOGIN, t11.MESSAGE_BOUNCE, t11.MESSAGE_MAIN_ATTACHMENT_ID, t11.MOBILE, t11.NAME, t1.NOTIFICATION_TYPE, t1.ODOOBOT_STATE, t11.PARENT_ID, t21.NAME AS PARENT_NAME, t11.PARTNER_GID, t1.PARTNER_ID, t11.PARTNER_SHARE, t11.PHONE, t11.PICKING_WARN, t11.PURCHASE_WARN, t11.REF, t1.SALE_TEAM_ID, t31.NAME AS SALE_TEAM_ID_TEXT, t11.SALE_WARN, t1.SHARE, t11.SIGNUP_EXPIRATION, t11.SIGNUP_TOKEN, t11.SIGNUP_TYPE, t11.STATE_ID, t11.STREET, t11.STREET2, t1.TARGET_SALES_DONE, t1.TARGET_SALES_INVOICED, t1.TARGET_SALES_WON, t11.TEAM_ID, t11.TITLE, t11.TYPE, t11.TZ, t11.USER_ID, t11.VAT, t11.WEBSITE, t1.WEBSITE_ID, t11.WEBSITE_META_KEYWORDS, t11.WEBSITE_META_OG_IMG, t11.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t51.NAME AS WRITE_UID_TEXT, t11.ZIP FROM RES_USERS t1 LEFT JOIN RES_PARTNER t11 ON t1.PARTNER_ID = t11.ID LEFT JOIN RES_PARTNER t21 ON t11.PARENT_ID = t21.ID LEFT JOIN CRM_TEAM t31 ON t1.SALE_TEAM_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.WRITE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_USERS t61 ON t1.CREATE_UID = t61.ID LEFT JOIN RES_PARTNER t71 ON t61.PARTNER_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN MAIL_ALIAS t101 ON t1.ALIAS_ID = t101.ID
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Hr_jobResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_DEFAULTS, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.DESCRIPTION, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.REQUIREMENTS, t1.STATE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_DEFAULTS, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.DESCRIPTION, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.REQUIREMENTS, t1.STATE, t1.SURVEY_ID, t161.TITLE AS SURVEY_TITLE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN SURVEY_SURVEY t161 ON t1.SURVEY_ID = t161.ID ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -74,8 +74,12 @@
<result property="departmentId" column="department_id" />
<result property="aliasId" column="alias_id" />
<result property="userId" column="user_id" />
<result property="surveyId" column="survey_id" />
<result property="surveyTitle" column="survey_title" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooSurvey" javaType="cn.ibizlab.businesscentral.core.odoo_survey.domain.Survey_survey" column="survey_id" select="cn.ibizlab.businesscentral.core.odoo_survey.mapper.Survey_surveyMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooDepartment" javaType="cn.ibizlab.businesscentral.core.odoo_hr.domain.Hr_department" column="department_id" select="cn.ibizlab.businesscentral.core.odoo_hr.mapper.Hr_departmentMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
......@@ -96,6 +100,13 @@
<association property="odooWrite" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users" column="write_uid" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_usersMapper.selectById" fetchType="lazy"></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_HR_JOB_SURVEY_SURVEY_SURVEY_ID] -->
<select id="selectBySurveyId" resultMap="Hr_jobResultMap">
select t1.* from (
<include refid="Default" />
) t1
where survey_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_HR_JOB__HR_DEPARTMENT__DEPARTMENT_ID] -->
<select id="selectByDepartmentId" resultMap="Hr_jobResultMap">
select t1.* from (
......@@ -171,12 +182,12 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.STATE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_ID, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID
<![CDATA[ SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.STATE, t1.SURVEY_ID, t161.TITLE AS SURVEY_TITLE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_ID, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN SURVEY_SURVEY t161 ON t1.SURVEY_ID = t161.ID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_DEFAULTS, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.DESCRIPTION, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.REQUIREMENTS, t1.STATE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID
<![CDATA[ SELECT t1.ADDRESS_ID, t61.NAME AS ADDRESS_ID_TEXT, t11.ALIAS_CONTACT, t11.ALIAS_DEFAULTS, t11.ALIAS_FORCE_THREAD_ID, t1.ALIAS_ID, t11.ALIAS_MODEL_ID, t11.ALIAS_NAME, t11.ALIAS_PARENT_MODEL_ID, t11.ALIAS_PARENT_THREAD_ID, t11.ALIAS_USER_ID, t1.COLOR, t1.COMPANY_ID, t91.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t51.NAME AS CREATE_UID_TEXT, t1.DEPARTMENT_ID, t71.NAME AS DEPARTMENT_ID_TEXT, t1.DESCRIPTION, t1.EXPECTED_EMPLOYEES, t1.HR_RESPONSIBLE_ID, t151.NAME AS HR_RESPONSIBLE_ID_TEXT, t1.ID, t1.IS_PUBLISHED, t1.MANAGER_ID, t131.NAME AS MANAGER_ID_TEXT, t1.MESSAGE_MAIN_ATTACHMENT_ID, t1.NAME, t1.NO_OF_EMPLOYEE, t1.NO_OF_HIRED_EMPLOYEE, t1.NO_OF_RECRUITMENT, t1.REQUIREMENTS, t1.STATE, t1.SURVEY_ID, t161.TITLE AS SURVEY_TITLE, t1.USER_ID, t111.NAME AS USER_ID_TEXT, t1.WEBSITE_DESCRIPTION, t1.WEBSITE_ID, t1.WEBSITE_META_DESCRIPTION, t1.WEBSITE_META_KEYWORDS, t1.WEBSITE_META_OG_IMG, t1.WEBSITE_META_TITLE, t1.WRITE_DATE, t1.WRITE_UID, t31.NAME AS WRITE_UID_TEXT FROM HR_JOB t1 LEFT JOIN MAIL_ALIAS t11 ON t1.ALIAS_ID = t11.ID LEFT JOIN RES_USERS t21 ON t1.WRITE_UID = t21.ID LEFT JOIN RES_PARTNER t31 ON t21.PARTNER_ID = t31.ID LEFT JOIN RES_USERS t41 ON t1.CREATE_UID = t41.ID LEFT JOIN RES_PARTNER t51 ON t41.PARTNER_ID = t51.ID LEFT JOIN RES_PARTNER t61 ON t1.ADDRESS_ID = t61.ID LEFT JOIN HR_DEPARTMENT t71 ON t1.DEPARTMENT_ID = t71.ID LEFT JOIN RES_COMPANY t81 ON t1.COMPANY_ID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.USER_ID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID LEFT JOIN HR_EMPLOYEE t121 ON t1.MANAGER_ID = t121.ID LEFT JOIN RESOURCE_RESOURCE t131 ON t121.RESOURCE_ID = t131.ID LEFT JOIN RES_USERS t141 ON t1.HR_RESPONSIBLE_ID = t141.ID LEFT JOIN RES_PARTNER t151 ON t141.PARTNER_ID = t151.ID LEFT JOIN SURVEY_SURVEY t161 ON t1.SURVEY_ID = t161.ID
]]>
</sql>
......
......@@ -70955,6 +70955,41 @@
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"SURVEY_ID" ,
"codename":"Survey_id",
"field_logic_name":"面试表单",
"entity_name":"Hr_job",
"ref_de":"SURVEY_SURVEY",
"ref_field_name":"ID",
"relation_name":"DER1N_HR_JOB_SURVEY_SURVEY_SURVEY_ID",
"relation_codename":"Odoo_survey",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"SURVEY_TITLE" ,
"codename":"Survey_title",
"field_logic_name":"面试表单",
"entity_name":"Hr_job",
"ref_de":"SURVEY_SURVEY",
"ref_field_name":"TITLE",
"relation_name":"DER1N_HR_JOB_SURVEY_SURVEY_SURVEY_ID",
"relation_codename":"Odoo_survey",
"field_type":"PICKUPTEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
......@@ -70990,6 +71025,12 @@
}
],
"parentEntitys":[
{"name":"DER1N_HR_JOB_SURVEY_SURVEY_SURVEY_ID",
"relation_type":"DER1N",
"code_name":"Odoo_survey",
"entity_name":"HR_JOB",
"ref_entity_name":"SURVEY_SURVEY"
},
{"name":"DER1N_HR_JOB__HR_DEPARTMENT__DEPARTMENT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_department",
......@@ -146351,6 +146392,21 @@
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"MODULE_HR_SKILLS" ,
"codename":"Module_hr_skills",
"field_logic_name":"技能管理",
"entity_name":"Res_config_settings",
"field_type":"TRUEFALSE",
"dict":"Odoo_truefalse",
"nullable":1,
"physical_field":1,
"data_type":"BIT",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
......@@ -192001,7 +192057,7 @@
"data_type":"BIGINT",
"key_field":1,
"show_order":1000,
"major_field":1
"major_field":0
},
{
"fieldname":"TOT_START_SURVEY" ,
......@@ -192382,7 +192438,7 @@
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
"major_field":1
},
{
"fieldname":"THANK_YOU_MESSAGE" ,
......@@ -192615,6 +192671,12 @@
}
],
"subEntitys":[
{"name":"DER1N_HR_JOB_SURVEY_SURVEY_SURVEY_ID",
"relation_type":"DER1N",
"code_name":"Odoo_survey",
"entity_name":"HR_JOB",
"ref_entity_name":"SURVEY_SURVEY"
},
{"name":"DER1N_SURVEY_MAIL_COMPOSE_MESSAGE__SURVEY_SURVEY__SURVEY_ID",
"relation_type":"DER1N",
"code_name":"Odoo_survey",
......@@ -632,6 +632,24 @@ public class Hr_jobDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class)
private Long userId;
/**
* 属性 [SURVEY_ID]
*
*/
@JSONField(name = "survey_id")
@JsonProperty("survey_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long surveyId;
/**
* 属性 [SURVEY_TITLE]
*
*/
@JSONField(name = "survey_title")
@JsonProperty("survey_title")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String surveyTitle;
/**
* 设置 [NO_OF_EMPLOYEE]
......@@ -825,6 +843,14 @@ public class Hr_jobDTO extends DTOBase implements Serializable {
this.modify("user_id",userId);
}
/**
* 设置 [SURVEY_ID]
*/
public void setSurveyId(Long surveyId){
this.surveyId = surveyId ;
this.modify("survey_id",surveyId);
}
}
......
......@@ -1977,6 +1977,14 @@ public class Res_config_settingsDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [MODULE_HR_SKILLS]
*
*/
@JSONField(name = "module_hr_skills")
@JsonProperty("module_hr_skills")
private Boolean moduleHrSkills;
/**
* 设置 [MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF]
......@@ -3170,6 +3178,14 @@ public class Res_config_settingsDTO extends DTOBase implements Serializable {
this.modify("auth_signup_template_user_id",authSignupTemplateUserId);
}
/**
* 设置 [MODULE_HR_SKILLS]
*/
public void setModuleHrSkills(Boolean moduleHrSkills){
this.moduleHrSkills = moduleHrSkills ;
this.modify("module_hr_skills",moduleHrSkills);
}
}
......
......@@ -115,6 +115,17 @@ public class Account_taxResource {
return ResponseEntity.status(HttpStatus.OK).body(account_taxMapping.toDto(account_taxService.getDraft(new Account_tax())));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Account_tax-Calc_tax-all')")
@ApiOperation(value = "calc_tax", tags = {"税率" }, notes = "calc_tax")
@RequestMapping(method = RequestMethod.POST, value = "/account_taxes/{account_tax_id}/calc_tax")
public ResponseEntity<Account_taxDTO> calc_tax(@PathVariable("account_tax_id") Long account_tax_id, @RequestBody Account_taxDTO account_taxdto) {
Account_tax domain = account_taxMapping.toDomain(account_taxdto);
domain.setId(account_tax_id);
domain = account_taxService.calc_tax(domain);
account_taxdto = account_taxMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(account_taxdto);
}
@ApiOperation(value = "检查税率", tags = {"税率" }, notes = "检查税率")
@RequestMapping(method = RequestMethod.POST, value = "/account_taxes/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody Account_taxDTO account_taxdto) {
......
......@@ -121,6 +121,17 @@ public class Res_config_settingsResource {
return ResponseEntity.status(HttpStatus.OK).body(res_config_settingsService.checkKey(res_config_settingsMapping.toDomain(res_config_settingsdto)));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_config_settings-GetLatestSettings-all')")
@ApiOperation(value = "获取设置", tags = {"配置设定" }, notes = "获取设置")
@RequestMapping(method = RequestMethod.GET, value = "/res_config_settings/{res_config_settings_id}/getlatestsettings")
public ResponseEntity<Res_config_settingsDTO> getLatestSettings(@PathVariable("res_config_settings_id") Long res_config_settings_id, @RequestBody Res_config_settingsDTO res_config_settingsdto) {
Res_config_settings domain = res_config_settingsMapping.toDomain(res_config_settingsdto);
domain.setId(res_config_settings_id);
domain = res_config_settingsService.getLatestSettings(domain);
res_config_settingsdto = res_config_settingsMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(res_config_settingsdto);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_config_settings-Get_default-all')")
@ApiOperation(value = "获取配置", tags = {"配置设定" }, notes = "获取配置")
@RequestMapping(method = RequestMethod.GET, value = "/res_config_settings/get_default")
......
......@@ -147,6 +147,28 @@ public class Res_usersResource {
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_users-searchActive-all') and hasPermission(#context,'iBizBusinessCentral-Res_users-Get')")
@ApiOperation(value = "获取有效用户", tags = {"用户" } ,notes = "获取有效用户")
@RequestMapping(method= RequestMethod.GET , value="/res_users/fetchactive")
public ResponseEntity<List<Res_usersDTO>> fetchActive(Res_usersSearchContext context) {
Page<Res_users> domains = res_usersService.searchActive(context) ;
List<Res_usersDTO> list = res_usersMapping.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-Res_users-searchActive-all') and hasPermission(#context,'iBizBusinessCentral-Res_users-Get')")
@ApiOperation(value = "查询有效用户", tags = {"用户" } ,notes = "查询有效用户")
@RequestMapping(method= RequestMethod.POST , value="/res_users/searchactive")
public ResponseEntity<Page<Res_usersDTO>> searchActive(@RequestBody Res_usersSearchContext context) {
Page<Res_users> domains = res_usersService.searchActive(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(res_usersMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_users-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Res_users-Get')")
@ApiOperation(value = "获取数据集", tags = {"用户" } ,notes = "获取数据集")
@RequestMapping(method= RequestMethod.GET , value="/res_users/fetchdefault")
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册