提交 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 ...@@ -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); 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]用户扩展 * 自定义行为[Get_default]用户扩展
* @param et * @param et
......
...@@ -64,6 +64,10 @@ public class account_taxFallback implements account_taxFeignClient{ ...@@ -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){ public Boolean checkKey(Account_tax account_tax){
return false; return false;
} }
......
...@@ -60,6 +60,10 @@ public interface account_taxFeignClient { ...@@ -60,6 +60,10 @@ public interface account_taxFeignClient {
Account_tax getDraft(); 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") @RequestMapping(method = RequestMethod.POST, value = "/account_taxes/checkkey")
Boolean checkKey(@RequestBody Account_tax account_tax); Boolean checkKey(@RequestBody Account_tax account_tax);
......
...@@ -33,6 +33,7 @@ public interface IAccount_taxService extends IService<Account_tax>{ ...@@ -33,6 +33,7 @@ public interface IAccount_taxService extends IService<Account_tax>{
void removeBatch(Collection<Long> idList) ; void removeBatch(Collection<Long> idList) ;
Account_tax get(Long key) ; Account_tax get(Long key) ;
Account_tax getDraft(Account_tax et) ; Account_tax getDraft(Account_tax et) ;
Account_tax calc_tax(Account_tax et) ;
boolean checkKey(Account_tax et) ; boolean checkKey(Account_tax et) ;
boolean save(Account_tax et) ; boolean save(Account_tax et) ;
void saveBatch(List<Account_tax> list) ; void saveBatch(List<Account_tax> list) ;
......
...@@ -208,6 +208,13 @@ public class Account_taxServiceImpl extends EBSServiceImpl<Account_taxMapper, Ac ...@@ -208,6 +208,13 @@ public class Account_taxServiceImpl extends EBSServiceImpl<Account_taxMapper, Ac
return et; return et;
} }
@Override
@Transactional
public Account_tax calc_tax(Account_tax et) {
//自定义代码
return et;
}
@Override @Override
public boolean checkKey(Account_tax et) { public boolean checkKey(Account_tax et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId()))); return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId())));
......
...@@ -69,6 +69,10 @@ public class res_config_settingsFallback implements res_config_settingsFeignClie ...@@ -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){ public Res_config_settings get_default( Long id, Res_config_settings res_config_settings){
return null; return null;
} }
......
...@@ -64,6 +64,10 @@ public interface res_config_settingsFeignClient { ...@@ -64,6 +64,10 @@ public interface res_config_settingsFeignClient {
Boolean checkKey(@RequestBody Res_config_settings res_config_settings); 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") @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); 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{ ...@@ -80,6 +80,11 @@ public class res_usersFallback implements res_usersFeignClient{
return false; return false;
} }
public Page<Res_users> searchActive(Res_usersSearchContext context){
return null;
}
public Page<Res_users> searchDefault(Res_usersSearchContext context){ public Page<Res_users> searchDefault(Res_usersSearchContext context){
return null; return null;
} }
......
...@@ -76,6 +76,11 @@ public interface res_usersFeignClient { ...@@ -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") @RequestMapping(method = RequestMethod.POST, value = "/res_users/searchdefault")
Page<Res_users> searchDefault(@RequestBody Res_usersSearchContext context); Page<Res_users> searchDefault(@RequestBody Res_usersSearchContext context);
......
...@@ -1877,6 +1877,14 @@ public class Res_config_settings extends EntityMP implements Serializable { ...@@ -1877,6 +1877,14 @@ public class Res_config_settings extends EntityMP implements Serializable {
@JSONField(name = "write_uid") @JSONField(name = "write_uid")
@JsonProperty("write_uid") @JsonProperty("write_uid")
private Long writeUid; 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 { ...@@ -3144,6 +3152,14 @@ public class Res_config_settings extends EntityMP implements Serializable {
this.modify("auth_signup_template_user_id",authSignupTemplateUserId); this.modify("auth_signup_template_user_id",authSignupTemplateUserId);
} }
/**
* 设置 [技能管理]
*/
public void setModuleHrSkills(Boolean moduleHrSkills){
this.moduleHrSkills = moduleHrSkills ;
this.modify("module_hr_skills",moduleHrSkills);
}
@Override @Override
public Serializable getDefaultKey(boolean gen) { public Serializable getDefaultKey(boolean gen) {
......
...@@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSONObject;
public interface Res_usersMapper extends BaseMapper<Res_users>{ 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) ; Page<Res_users> searchDefault(IPage page, @Param("srf") Res_usersSearchContext context, @Param("ew") Wrapper<Res_users> wrapper) ;
@Override @Override
Res_users selectById(Serializable id); Res_users selectById(Serializable id);
......
...@@ -34,6 +34,7 @@ public interface IRes_config_settingsService extends IService<Res_config_setting ...@@ -34,6 +34,7 @@ public interface IRes_config_settingsService extends IService<Res_config_setting
Res_config_settings get(Long key) ; Res_config_settings get(Long key) ;
Res_config_settings getDraft(Res_config_settings et) ; Res_config_settings getDraft(Res_config_settings et) ;
boolean checkKey(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) ; Res_config_settings get_default(Res_config_settings et) ;
boolean save(Res_config_settings et) ; boolean save(Res_config_settings et) ;
void saveBatch(List<Res_config_settings> list) ; void saveBatch(List<Res_config_settings> list) ;
......
...@@ -37,6 +37,7 @@ public interface IRes_usersService extends IService<Res_users>{ ...@@ -37,6 +37,7 @@ public interface IRes_usersService extends IService<Res_users>{
boolean checkKey(Res_users et) ; boolean checkKey(Res_users et) ;
boolean save(Res_users et) ; boolean save(Res_users et) ;
void saveBatch(List<Res_users> list) ; void saveBatch(List<Res_users> list) ;
Page<Res_users> searchActive(Res_usersSearchContext context) ;
Page<Res_users> searchDefault(Res_usersSearchContext context) ; Page<Res_users> searchDefault(Res_usersSearchContext context) ;
List<Res_users> selectBySaleTeamId(Long id); List<Res_users> selectBySaleTeamId(Long id);
void resetBySaleTeamId(Long id); void resetBySaleTeamId(Long id);
......
...@@ -176,6 +176,13 @@ public class Res_config_settingsServiceImpl extends EBSServiceImpl<Res_config_se ...@@ -176,6 +176,13 @@ public class Res_config_settingsServiceImpl extends EBSServiceImpl<Res_config_se
public boolean checkKey(Res_config_settings et) { public boolean checkKey(Res_config_settings et) {
return (!ObjectUtils.isEmpty(et.getId()))&&(!Objects.isNull(this.getById(et.getId()))); 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 @Override
@Transactional @Transactional
public Res_config_settings get_default(Res_config_settings et) { public Res_config_settings get_default(Res_config_settings et) {
......
...@@ -1551,6 +1551,15 @@ public class Res_usersServiceImpl extends EBSServiceImpl<Res_usersMapper, Res_us ...@@ -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 { ...@@ -554,6 +554,29 @@ public class Hr_job extends EntityMP implements Serializable {
@JSONField(name = "user_id") @JSONField(name = "user_id")
@JsonProperty("user_id") @JsonProperty("user_id")
private Long userId; 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 { ...@@ -821,6 +844,14 @@ public class Hr_job extends EntityMP implements Serializable {
this.modify("user_id",userId); this.modify("user_id",userId);
} }
/**
* 设置 [面试表单]
*/
public void setSurveyId(Long surveyId){
this.surveyId = surveyId ;
this.modify("survey_id",surveyId);
}
@Override @Override
public Serializable getDefaultKey(boolean gen) { public Serializable getDefaultKey(boolean gen) {
......
...@@ -216,6 +216,27 @@ public class Hr_jobSearchContext extends QueryWrapperContext<Hr_job> { ...@@ -216,6 +216,27 @@ public class Hr_jobSearchContext extends QueryWrapperContext<Hr_job> {
this.getSearchCond().eq("user_id", n_user_id_eq); 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>{ ...@@ -62,6 +62,8 @@ public interface Hr_jobMapper extends BaseMapper<Hr_job>{
@Delete("${sql}") @Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param); 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> selectByDepartmentId(@Param("id") Serializable id) ;
List<Hr_job> selectByManagerId(@Param("id") Serializable id) ; List<Hr_job> selectByManagerId(@Param("id") Serializable id) ;
......
...@@ -37,6 +37,8 @@ public interface IHr_jobService extends IService<Hr_job>{ ...@@ -37,6 +37,8 @@ public interface IHr_jobService extends IService<Hr_job>{
boolean save(Hr_job et) ; boolean save(Hr_job et) ;
void saveBatch(List<Hr_job> list) ; void saveBatch(List<Hr_job> list) ;
Page<Hr_job> searchDefault(Hr_jobSearchContext context) ; Page<Hr_job> searchDefault(Hr_jobSearchContext context) ;
List<Hr_job> selectBySurveyId(Long id);
void removeBySurveyId(Long id);
List<Hr_job> selectByDepartmentId(Long id); List<Hr_job> selectByDepartmentId(Long id);
void resetByDepartmentId(Long id); void resetByDepartmentId(Long id);
void resetByDepartmentId(Collection<Long> ids); void resetByDepartmentId(Collection<Long> ids);
......
...@@ -68,6 +68,9 @@ public class Hr_jobServiceImpl extends EBSServiceImpl<Hr_jobMapper, Hr_job> impl ...@@ -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; protected cn.ibizlab.businesscentral.core.odoo_hr.service.IHr_recruitment_stageService hrRecruitmentStageService;
@Autowired @Autowired
@Lazy @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; protected cn.ibizlab.businesscentral.core.odoo_hr.service.IHr_departmentService hrDepartmentService;
@Autowired @Autowired
@Lazy @Lazy
...@@ -229,6 +232,15 @@ public class Hr_jobServiceImpl extends EBSServiceImpl<Hr_jobMapper, Hr_job> impl ...@@ -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 @Override
public List<Hr_job> selectByDepartmentId(Long id) { public List<Hr_job> selectByDepartmentId(Long id) {
return baseMapper.selectByDepartmentId(id); return baseMapper.selectByDepartmentId(id);
...@@ -392,6 +404,16 @@ public class Hr_jobServiceImpl extends EBSServiceImpl<Hr_jobMapper, Hr_job> impl ...@@ -392,6 +404,16 @@ public class Hr_jobServiceImpl extends EBSServiceImpl<Hr_jobMapper, Hr_job> impl
* @param et * @param et
*/ */
private void fillParentData(Hr_job 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] //实体关系[DER1N_HR_JOB__HR_DEPARTMENT__DEPARTMENT_ID]
if(!ObjectUtils.isEmpty(et.getDepartmentId())){ if(!ObjectUtils.isEmpty(et.getDepartmentId())){
cn.ibizlab.businesscentral.core.odoo_hr.domain.Hr_department odooDepartment=et.getOdooDepartment(); cn.ibizlab.businesscentral.core.odoo_hr.domain.Hr_department odooDepartment=et.getOdooDepartment();
......
...@@ -134,7 +134,7 @@ public class Survey_surveySearchContext extends QueryWrapperContext<Survey_surve ...@@ -134,7 +134,7 @@ public class Survey_surveySearchContext extends QueryWrapperContext<Survey_surve
this.query=query; this.query=query;
if(!StringUtils.isEmpty(query)){ if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper -> this.getSearchCond().and( wrapper ->
wrapper.like("id", query) wrapper.like("title", query)
); );
} }
} }
......
...@@ -51,6 +51,9 @@ import org.springframework.util.StringUtils; ...@@ -51,6 +51,9 @@ import org.springframework.util.StringUtils;
@Service("Survey_surveyServiceImpl") @Service("Survey_surveyServiceImpl")
public class Survey_surveyServiceImpl extends EBSServiceImpl<Survey_surveyMapper, Survey_survey> implements ISurvey_surveyService { 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 @Autowired
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.odoo_survey.service.ISurvey_mail_compose_messageService surveyMailComposeMessageService; protected cn.ibizlab.businesscentral.core.odoo_survey.service.ISurvey_mail_compose_messageService surveyMailComposeMessageService;
......
...@@ -228,6 +228,12 @@ ...@@ -228,6 +228,12 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if> <if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select> </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]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql"> <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 <![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
......
...@@ -70955,6 +70955,41 @@ ...@@ -70955,6 +70955,41 @@
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
"major_field":0 "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":[ "subEntitys":[
...@@ -70990,6 +71025,12 @@ ...@@ -70990,6 +71025,12 @@
} }
], ],
"parentEntitys":[ "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", {"name":"DER1N_HR_JOB__HR_DEPARTMENT__DEPARTMENT_ID",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"Odoo_department", "code_name":"Odoo_department",
...@@ -146351,6 +146392,21 @@ ...@@ -146351,6 +146392,21 @@
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
"major_field":0 "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":[ "subEntitys":[
...@@ -192001,7 +192057,7 @@ ...@@ -192001,7 +192057,7 @@
"data_type":"BIGINT", "data_type":"BIGINT",
"key_field":1, "key_field":1,
"show_order":1000, "show_order":1000,
"major_field":1 "major_field":0
}, },
{ {
"fieldname":"TOT_START_SURVEY" , "fieldname":"TOT_START_SURVEY" ,
...@@ -192382,7 +192438,7 @@ ...@@ -192382,7 +192438,7 @@
"data_length":100, "data_length":100,
"key_field":0, "key_field":0,
"show_order":1000, "show_order":1000,
"major_field":0 "major_field":1
}, },
{ {
"fieldname":"THANK_YOU_MESSAGE" , "fieldname":"THANK_YOU_MESSAGE" ,
...@@ -192615,6 +192671,12 @@ ...@@ -192615,6 +192671,12 @@
} }
], ],
"subEntitys":[ "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", {"name":"DER1N_SURVEY_MAIL_COMPOSE_MESSAGE__SURVEY_SURVEY__SURVEY_ID",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"Odoo_survey", "code_name":"Odoo_survey",
...@@ -632,6 +632,24 @@ public class Hr_jobDTO extends DTOBase implements Serializable { ...@@ -632,6 +632,24 @@ public class Hr_jobDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long userId; 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] * 设置 [NO_OF_EMPLOYEE]
...@@ -825,6 +843,14 @@ public class Hr_jobDTO extends DTOBase implements Serializable { ...@@ -825,6 +843,14 @@ public class Hr_jobDTO extends DTOBase implements Serializable {
this.modify("user_id",userId); 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 { ...@@ -1977,6 +1977,14 @@ public class Res_config_settingsDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long writeUid; private Long writeUid;
/**
* 属性 [MODULE_HR_SKILLS]
*
*/
@JSONField(name = "module_hr_skills")
@JsonProperty("module_hr_skills")
private Boolean moduleHrSkills;
/** /**
* 设置 [MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF] * 设置 [MODULE_ACCOUNT_BANK_STATEMENT_IMPORT_QIF]
...@@ -3170,6 +3178,14 @@ public class Res_config_settingsDTO extends DTOBase implements Serializable { ...@@ -3170,6 +3178,14 @@ public class Res_config_settingsDTO extends DTOBase implements Serializable {
this.modify("auth_signup_template_user_id",authSignupTemplateUserId); 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 { ...@@ -115,6 +115,17 @@ public class Account_taxResource {
return ResponseEntity.status(HttpStatus.OK).body(account_taxMapping.toDto(account_taxService.getDraft(new Account_tax()))); 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 = "检查税率") @ApiOperation(value = "检查税率", tags = {"税率" }, notes = "检查税率")
@RequestMapping(method = RequestMethod.POST, value = "/account_taxes/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/account_taxes/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody Account_taxDTO account_taxdto) { public ResponseEntity<Boolean> checkKey(@RequestBody Account_taxDTO account_taxdto) {
......
...@@ -121,6 +121,17 @@ public class Res_config_settingsResource { ...@@ -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))); 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')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_config_settings-Get_default-all')")
@ApiOperation(value = "获取配置", tags = {"配置设定" }, notes = "获取配置") @ApiOperation(value = "获取配置", tags = {"配置设定" }, notes = "获取配置")
@RequestMapping(method = RequestMethod.GET, value = "/res_config_settings/get_default") @RequestMapping(method = RequestMethod.GET, value = "/res_config_settings/get_default")
......
...@@ -147,6 +147,28 @@ public class Res_usersResource { ...@@ -147,6 +147,28 @@ public class Res_usersResource {
return ResponseEntity.status(HttpStatus.OK).body(true); 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')") @PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Res_users-searchDefault-all') and hasPermission(#context,'iBizBusinessCentral-Res_users-Get')")
@ApiOperation(value = "获取数据集", tags = {"用户" } ,notes = "获取数据集") @ApiOperation(value = "获取数据集", tags = {"用户" } ,notes = "获取数据集")
@RequestMapping(method= RequestMethod.GET , value="/res_users/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/res_users/fetchdefault")
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册