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

Miracle 部署微服务应用

上级 88df5b2e
......@@ -174,6 +174,37 @@
}
]
},
{
"srfkey": "CL_HR_0024",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "BORROW",
"label": "借阅中",
"text": "借阅中",
"data":"",
"codename":"Borrow",
"color": "rgba(255, 0, 17, 1)",
"value": "BORROW",
"disabled": false,
"default": false
}
, {
"id": "HAVERETURN",
"label": "已归还",
"text": "已归还",
"data":"",
"codename":"Havereturn",
"color": "rgba(0, 89, 255, 1)",
"value": "HAVERETURN",
"disabled": false,
"default": false
}
]
},
{
"srfkey": "CL_HR_0007",
"emptytext": "未定义",
......
......@@ -22,6 +22,11 @@ export default {
"FAX": "传真",
"empty": ""
},
CL_HR_0024: {
"BORROW": "借阅中",
"HAVERETURN": "已归还",
"empty": ""
},
CL_HR_0007: {
"A": "A",
"B": "B",
......
......@@ -22,6 +22,11 @@ export default {
"FAX": "传真",
"empty": "",
},
CL_HR_0024: {
"BORROW": "借阅中",
"HAVERETURN": "已归还",
"empty": "",
},
CL_HR_0007: {
"A": "A",
"B": "B",
......
......@@ -114,6 +114,7 @@ export default {
wfstate: "工作流状态",
wfversion: "工作流版本",
wfstep: "工作流步骤",
createman: "建立人",
hrtransferapplyid: "调动申请标识",
},
uiactions: {
......@@ -149,6 +150,7 @@ export default {
wfstate: "工作流状态",
wfversion: "工作流版本",
wfstep: "工作流步骤",
createman: "建立人",
hrtransferapplyid: "调动申请标识",
},
uiactions: {
......@@ -184,6 +186,7 @@ export default {
wfstate: "工作流状态",
wfversion: "工作流版本",
wfstep: "工作流步骤",
createman: "建立人",
hrtransferapplyid: "调动申请标识",
},
uiactions: {
......
......@@ -113,6 +113,7 @@ export default {
wfstate: "工作流状态",
wfversion: "工作流版本",
wfstep: "工作流步骤",
createman: "建立人",
hrtransferapplyid: "调动申请标识",
},
uiactions: {
......@@ -148,6 +149,7 @@ export default {
wfstate: "工作流状态",
wfversion: "工作流版本",
wfstep: "工作流步骤",
createman: "建立人",
hrtransferapplyid: "调动申请标识",
},
uiactions: {
......@@ -183,6 +185,7 @@ export default {
wfstate: "工作流状态",
wfversion: "工作流版本",
wfstep: "工作流步骤",
createman: "建立人",
hrtransferapplyid: "调动申请标识",
},
uiactions: {
......
......@@ -168,6 +168,35 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "CL_HR_0024",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "BORROW",
label: "借阅中",
text: "借阅中",
"data":"",
"codename":"Borrow",
"color": "rgba(255, 0, 17, 1)",
value: "BORROW",
disabled: false,
},
{
id: "HAVERETURN",
label: "已归还",
text: "已归还",
"data":"",
"codename":"Havereturn",
"color": "rgba(0, 89, 255, 1)",
value: "HAVERETURN",
disabled: false,
},
]
},
{
srfkey: "CL_HR_0007",
emptytext: "未定义",
......
......@@ -213,6 +213,14 @@ export class GRID_001GridBase extends GridControlBase {
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'borrowstate',
srfkey: 'CL_HR_0024',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
]);
}
......
......@@ -93,7 +93,9 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.borrowstate}}</span>
<template >
<codelist :value="row.borrowstate" tag='CL_HR_0024' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
......
......@@ -257,6 +257,14 @@ export class MainGridBase extends GridControlBase {
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'borrowstate',
srfkey: 'CL_HR_0024',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
]);
}
......
......@@ -143,7 +143,9 @@
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.borrowstate}}</span>
<template >
<codelist :value="row.borrowstate" tag='CL_HR_0024' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
......
......@@ -100,6 +100,7 @@ export class EF_001EditFormBase extends EditFormControlBase {
wfstate: null,
wfversion: null,
wfstep: null,
createman: null,
hrtransferapplyid: null,
hrtransferapply:null,
};
......@@ -185,6 +186,8 @@ export class EF_001EditFormBase extends EditFormControlBase {
wfstep: new FormItemModel({ caption: '工作流步骤', detailType: 'FORMITEM', name: 'wfstep', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hrtransferapplyid: new FormItemModel({ caption: '调动申请标识', detailType: 'FORMITEM', name: 'hrtransferapplyid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
};
......
......@@ -145,6 +145,11 @@ export default class EF_001Model {
prop: 'wfstep',
dataType: 'SSCODELIST',
},
{
name: 'createman',
prop: 'createman',
dataType: 'TEXT',
},
{
name: 'hrtransferapplyid',
prop: 'hrtransferapplyid',
......
......@@ -100,6 +100,7 @@ export class IF_001EditFormBase extends EditFormControlBase {
wfstate: null,
wfversion: null,
wfstep: null,
createman: null,
hrtransferapplyid: null,
hrtransferapply:null,
};
......@@ -185,6 +186,8 @@ export class IF_001EditFormBase extends EditFormControlBase {
wfstep: new FormItemModel({ caption: '工作流步骤', detailType: 'FORMITEM', name: 'wfstep', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hrtransferapplyid: new FormItemModel({ caption: '调动申请标识', detailType: 'FORMITEM', name: 'hrtransferapplyid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
};
......
......@@ -145,6 +145,11 @@ export default class IF_001Model {
prop: 'wfstep',
dataType: 'SSCODELIST',
},
{
name: 'createman',
prop: 'createman',
dataType: 'TEXT',
},
{
name: 'hrtransferapplyid',
prop: 'hrtransferapplyid',
......
......@@ -100,6 +100,7 @@ export class MainEditFormBase extends EditFormControlBase {
wfstate: null,
wfversion: null,
wfstep: null,
createman: null,
hrtransferapplyid: null,
hrtransferapply:null,
};
......@@ -185,6 +186,8 @@ export class MainEditFormBase extends EditFormControlBase {
wfstep: new FormItemModel({ caption: '工作流步骤', detailType: 'FORMITEM', name: 'wfstep', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hrtransferapplyid: new FormItemModel({ caption: '调动申请标识', detailType: 'FORMITEM', name: 'hrtransferapplyid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
};
......
......@@ -145,6 +145,11 @@ export default class MainModel {
prop: 'wfstep',
dataType: 'SSCODELIST',
},
{
name: 'createman',
prop: 'createman',
dataType: 'TEXT',
},
{
name: 'hrtransferapplyid',
prop: 'hrtransferapplyid',
......
......@@ -136,16 +136,6 @@
<app-file-upload :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange($event)" :data="JSON.stringify(this.data)" name='attachment' :value="data.attachment" :disabled="detailsModel.attachment.disabled" :uploadparams='{}' :exportparams='{}' style="overflow: auto;"></app-file-upload>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.organizationid.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='organizationid' :itemRules="this.rules.organizationid" class='' :caption="$t('entities.hrtransferapply.main_form.details.organizationid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.organizationid.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='organizationid' :value="data.organizationid" dataType="PICKUPDATA" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
</row>
......
package cn.ibizlab.humanresource.core.humanresource.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.humanresource.util.domain.EntityBase;
import cn.ibizlab.humanresource.util.annotation.DEField;
import cn.ibizlab.humanresource.util.enums.DEPredefinedFieldType;
import cn.ibizlab.humanresource.util.enums.DEFieldDefaultValueType;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.humanresource.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.humanresource.util.domain.EntityMP;
/**
* 实体[档案借阅]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "T_HRARCHIVESBORROW",resultMap = "HRArchivesBorrowResultMap")
public class HRArchivesBorrow extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建立人
*/
@DEField(preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman" , fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate" , fill = FieldFill.INSERT)
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 档案借阅标识
*/
@DEField(isKeyField=true)
@TableId(value= "hrarchivesborrowid",type=IdType.ASSIGN_UUID)
@JSONField(name = "hrarchivesborrowid")
@JsonProperty("hrarchivesborrowid")
private String hrarchivesborrowid;
/**
* 档案借阅名称
*/
@TableField(value = "hrarchivesborrowname")
@JSONField(name = "hrarchivesborrowname")
@JsonProperty("hrarchivesborrowname")
private String hrarchivesborrowname;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 设置 [档案借阅名称]
*/
public void setHrarchivesborrowname(String hrarchivesborrowname){
this.hrarchivesborrowname = hrarchivesborrowname ;
this.modify("hrarchivesborrowname",hrarchivesborrowname);
}
}
package cn.ibizlab.humanresource.core.humanresource.filter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import cn.ibizlab.humanresource.util.filter.QueryWrapperContext;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import cn.ibizlab.humanresource.core.humanresource.domain.HRArchivesBorrow;
/**
* 关系型数据实体[HRArchivesBorrow] 查询条件对象
*/
@Slf4j
@Data
public class HRArchivesBorrowSearchContext extends QueryWrapperContext<HRArchivesBorrow> {
private String n_hrarchivesborrowname_like;//[档案借阅名称]
public void setN_hrarchivesborrowname_like(String n_hrarchivesborrowname_like) {
this.n_hrarchivesborrowname_like = n_hrarchivesborrowname_like;
if(!ObjectUtils.isEmpty(this.n_hrarchivesborrowname_like)){
this.getSearchCond().like("hrarchivesborrowname", n_hrarchivesborrowname_like);
}
}
/**
* 启用快速搜索
*/
public void setQuery(String query)
{
this.query=query;
if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper ->
wrapper.like("hrarchivesborrowname", query)
);
}
}
}
package cn.ibizlab.humanresource.core.humanresource.mapper;
import java.util.List;
import org.apache.ibatis.annotations.*;
import java.util.Map;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import java.util.HashMap;
import org.apache.ibatis.annotations.Select;
import cn.ibizlab.humanresource.core.humanresource.domain.HRArchivesBorrow;
import cn.ibizlab.humanresource.core.humanresource.filter.HRArchivesBorrowSearchContext;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import java.io.Serializable;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.alibaba.fastjson.JSONObject;
public interface HRArchivesBorrowMapper extends BaseMapper<HRArchivesBorrow>{
Page<HRArchivesBorrow> searchDefault(IPage page, @Param("srf") HRArchivesBorrowSearchContext context, @Param("ew") Wrapper<HRArchivesBorrow> wrapper) ;
@Override
HRArchivesBorrow selectById(Serializable id);
@Override
int insert(HRArchivesBorrow entity);
@Override
int updateById(@Param(Constants.ENTITY) HRArchivesBorrow entity);
@Override
int update(@Param(Constants.ENTITY) HRArchivesBorrow entity, @Param("ew") Wrapper<HRArchivesBorrow> updateWrapper);
@Override
int deleteById(Serializable id);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select("${sql}")
List<JSONObject> selectBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update("${sql}")
boolean updateBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert("${sql}")
boolean insertBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
}
package cn.ibizlab.humanresource.core.humanresource.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.humanresource.core.humanresource.domain.HRArchivesBorrow;
import cn.ibizlab.humanresource.core.humanresource.filter.HRArchivesBorrowSearchContext;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 实体[HRArchivesBorrow] 服务对象接口
*/
public interface IHRArchivesBorrowService extends IService<HRArchivesBorrow>{
boolean create(HRArchivesBorrow et) ;
void createBatch(List<HRArchivesBorrow> list) ;
boolean update(HRArchivesBorrow et) ;
void updateBatch(List<HRArchivesBorrow> list) ;
boolean remove(String key) ;
void removeBatch(Collection<String> idList) ;
HRArchivesBorrow get(String key) ;
HRArchivesBorrow getDraft(HRArchivesBorrow et) ;
boolean checkKey(HRArchivesBorrow et) ;
boolean save(HRArchivesBorrow et) ;
void saveBatch(List<HRArchivesBorrow> list) ;
Page<HRArchivesBorrow> searchDefault(HRArchivesBorrowSearchContext context) ;
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
List<HRArchivesBorrow> getHrarchivesborrowByIds(List<String> ids) ;
List<HRArchivesBorrow> getHrarchivesborrowByEntities(List<HRArchivesBorrow> entities) ;
}
package cn.ibizlab.humanresource.core.humanresource.service.impl;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.Map;
import java.util.HashSet;
import java.util.HashMap;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.math.BigInteger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy;
import cn.ibizlab.humanresource.core.humanresource.domain.HRArchivesBorrow;
import cn.ibizlab.humanresource.core.humanresource.filter.HRArchivesBorrowSearchContext;
import cn.ibizlab.humanresource.core.humanresource.service.IHRArchivesBorrowService;
import cn.ibizlab.humanresource.util.helper.CachedBeanCopier;
import cn.ibizlab.humanresource.util.helper.DEFieldCacheMap;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ibizlab.humanresource.core.humanresource.mapper.HRArchivesBorrowMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.StringUtils;
/**
* 实体[档案借阅] 服务对象接口实现
*/
@Slf4j
@Service("HRArchivesBorrowServiceImpl")
public class HRArchivesBorrowServiceImpl extends ServiceImpl<HRArchivesBorrowMapper, HRArchivesBorrow> implements IHRArchivesBorrowService {
protected int batchSize = 500;
@Override
@Transactional
public boolean create(HRArchivesBorrow et) {
if(!this.retBool(this.baseMapper.insert(et)))
return false;
CachedBeanCopier.copy(get(et.getHrarchivesborrowid()),et);
return true;
}
@Override
public void createBatch(List<HRArchivesBorrow> list) {
this.saveBatch(list,batchSize);
}
@Override
@Transactional
public boolean update(HRArchivesBorrow et) {
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("hrarchivesborrowid",et.getHrarchivesborrowid())))
return false;
CachedBeanCopier.copy(get(et.getHrarchivesborrowid()),et);
return true;
}
@Override
public void updateBatch(List<HRArchivesBorrow> list) {
updateBatchById(list,batchSize);
}
@Override
@Transactional
public boolean remove(String key) {
boolean result=removeById(key);
return result ;
}
@Override
public void removeBatch(Collection<String> idList) {
removeByIds(idList);
}
@Override
@Transactional
public HRArchivesBorrow get(String key) {
HRArchivesBorrow et = getById(key);
if(et==null){
et=new HRArchivesBorrow();
et.setHrarchivesborrowid(key);
}
else{
}
return et;
}
@Override
public HRArchivesBorrow getDraft(HRArchivesBorrow et) {
return et;
}
@Override
public boolean checkKey(HRArchivesBorrow et) {
return (!ObjectUtils.isEmpty(et.getHrarchivesborrowid()))&&(!Objects.isNull(this.getById(et.getHrarchivesborrowid())));
}
@Override
@Transactional
public boolean save(HRArchivesBorrow et) {
if(!saveOrUpdate(et))
return false;
return true;
}
@Override
@Transactional
public boolean saveOrUpdate(HRArchivesBorrow et) {
if (null == et) {
return false;
} else {
return checkKey(et) ? this.update(et) : this.create(et);
}
}
@Override
public boolean saveBatch(Collection<HRArchivesBorrow> list) {
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
public void saveBatch(List<HRArchivesBorrow> list) {
saveOrUpdateBatch(list,batchSize);
}
/**
* 查询集合 DEFAULT
*/
@Override
public Page<HRArchivesBorrow> searchDefault(HRArchivesBorrowSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<HRArchivesBorrow> pages=baseMapper.searchDefault(context.getPages(),context,context.getSelectCond());
return new PageImpl<HRArchivesBorrow>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
@Override
public List<JSONObject> select(String sql, Map param){
return this.baseMapper.selectBySQL(sql,param);
}
@Override
@Transactional
public boolean execute(String sql , Map param){
if (sql == null || sql.isEmpty()) {
return false;
}
if (sql.toLowerCase().trim().startsWith("insert")) {
return this.baseMapper.insertBySQL(sql,param);
}
if (sql.toLowerCase().trim().startsWith("update")) {
return this.baseMapper.updateBySQL(sql,param);
}
if (sql.toLowerCase().trim().startsWith("delete")) {
return this.baseMapper.deleteBySQL(sql,param);
}
log.warn("暂未支持的SQL语法");
return true;
}
@Override
public List<HRArchivesBorrow> getHrarchivesborrowByIds(List<String> ids) {
return this.listByIds(ids);
}
@Override
public List<HRArchivesBorrow> getHrarchivesborrowByEntities(List<HRArchivesBorrow> entities) {
List ids =new ArrayList();
for(HRArchivesBorrow entity : entities){
Serializable id=entity.getHrarchivesborrowid();
if(!ObjectUtils.isEmpty(id)){
ids.add(id);
}
}
if(ids.size()>0)
return this.listByIds(ids);
else
return entities;
}
}
......@@ -4,7 +4,7 @@
<!--输出实体[HRARCHIVES]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrarchives-39-1">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrarchives-104-1">
<createTable tableName="T_HRARCHIVES">
<column name="HRARCHIVESID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRARCHIVES_HRARCHIVESID"/>
......@@ -51,8 +51,28 @@
</changeSet>
<!--输出实体[HRARCHIVESBORROW]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrarchivesborrow-2-2">
<createTable tableName="T_HRARCHIVESBORROW">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
<column name="HRARCHIVESBORROWID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRARCHIVESBORROW_HRARCHIVES"/>
</column>
<column name="HRARCHIVESBORROWNAME" remarks="" type="VARCHAR(200)">
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
<column name="UPDATEMAN" remarks="" type="VARCHAR(60)">
</column>
</createTable>
</changeSet>
<!--输出实体[HRATTENDANCE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrattendance-3-2">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrattendance-3-3">
<createTable tableName="ATTENDANCE">
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
......@@ -72,7 +92,7 @@
<!--输出实体[HRCERTIFICATE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrcertificate-93-3">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrcertificate-93-4">
<createTable tableName="T_HRCERTIFICATE">
<column name="HRCERTIFICATEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRCERTIFICATE_HRCERTIFICATE"/>
......@@ -114,7 +134,7 @@
<!--输出实体[HRCONTRACT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrcontract-137-4">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrcontract-137-5">
<createTable tableName="T_HRCONTRACT">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -164,7 +184,7 @@
<!--输出实体[HRDISTRIBUTION]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrdistribution-39-5">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrdistribution-39-6">
<createTable tableName="T_HRDISTRIBUTION">
<column name="UPDATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -194,7 +214,7 @@
<!--输出实体[HRDUTY]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrduty-67-6">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrduty-67-7">
<createTable tableName="T_HRDUTY">
<column name="HRDUTYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRDUTY_HRDUTYID"/>
......@@ -216,7 +236,7 @@
<!--输出实体[HRDUTYCERT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrdutycert-23-7">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrdutycert-23-8">
<createTable tableName="T_HRDUTYCERT">
<column name="HRDUTYCERTNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -242,7 +262,7 @@
<!--输出实体[HRDUTYEDU]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrdutyedu-22-8">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrdutyedu-22-9">
<createTable tableName="T_HRDUTYEDU">
<column name="HRDUTYEDUID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRDUTYEDU_HRDUTYEDUID"/>
......@@ -268,7 +288,7 @@
<!--输出实体[HRDUTYSKILL]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrdutyskill-21-9">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrdutyskill-21-10">
<createTable tableName="T_HRDUTYSKILL">
<column name="HRDUTYSKILLNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -294,7 +314,7 @@
<!--输出实体[HREDUCATION]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hreducation-44-10">
<changeSet author="a_LAB01_e85d8801c" id="tab-hreducation-44-11">
<createTable tableName="T_HREDUCATION">
<column name="HREDUCATIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HREDUCATION_HREDUCATIONID"/>
......@@ -344,7 +364,7 @@
<!--输出实体[HREMPSTATE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrempstate-18-11">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrempstate-18-12">
<createTable tableName="T_HREMPSTATE">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -370,7 +390,7 @@
<!--输出实体[HREMPLOYEE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hremployee-291-12">
<changeSet author="a_LAB01_e85d8801c" id="tab-hremployee-291-13">
<createTable tableName="EMPLOYEE">
<column name="EMPLOYEENAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -454,7 +474,7 @@
<!--输出实体[HRFAMILY]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrfamily-23-13">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrfamily-23-14">
<createTable tableName="T_HRFAMILY">
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
......@@ -494,7 +514,7 @@
<!--输出实体[HRLANGUAGEABILITY]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrlanguageability-17-14">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrlanguageability-17-15">
<createTable tableName="T_HRLANGUAGEABILITY">
<column name="UPDATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -524,7 +544,7 @@
<!--输出实体[HRLEAVE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrleave-3-15">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrleave-3-16">
<createTable tableName="LEAVE">
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
......@@ -544,7 +564,7 @@
<!--输出实体[HRLEGAL]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrlegal-90-16">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrlegal-90-17">
<createTable tableName="LEGAL">
<column name="LEGALNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -570,7 +590,7 @@
<!--输出实体[HROMHIERARCHYPURPOSE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hromhierarchypurpose-11-17">
<changeSet author="a_LAB01_e85d8801c" id="tab-hromhierarchypurpose-11-18">
<createTable tableName="OMHIERARCHYPURPOSE">
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
......@@ -590,7 +610,7 @@
<!--输出实体[HROMHIERARCHY]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hromhierarchy-76-18">
<changeSet author="a_LAB01_e85d8801c" id="tab-hromhierarchy-76-19">
<createTable tableName="OMHIERARCHY">
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
......@@ -618,7 +638,7 @@
<!--输出实体[HROMHIERARCHYCAT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hromhierarchycat-99-19">
<changeSet author="a_LAB01_e85d8801c" id="tab-hromhierarchycat-99-20">
<createTable tableName="OMHIERARCHYCAT">
<column name="OMHIERARCHYCATID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HROMHIERARCHYCAT_OMHIERARCH"/>
......@@ -640,7 +660,7 @@
<!--输出实体[HROMHIERARCHYPURPOSEREF]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hromhierarchypurposeref-6-20">
<changeSet author="a_LAB01_e85d8801c" id="tab-hromhierarchypurposeref-6-21">
<createTable tableName="OMHIERARCHYPURPOSEREF">
<column name="UPDATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -664,7 +684,7 @@
<!--输出实体[HROPERATIONUNIT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hroperationunit-64-21">
<changeSet author="a_LAB01_e85d8801c" id="tab-hroperationunit-64-22">
<createTable tableName="OPERATIONUNIT">
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
......@@ -684,7 +704,7 @@
<!--输出实体[HRORGADDRESS]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrorgaddress-29-22">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrorgaddress-29-23">
<createTable tableName="T_HRORGADDRESS">
<column name="HRORGADDRESSNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -714,7 +734,7 @@
<!--输出实体[HRORGCONTACT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrorgcontact-24-23">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrorgcontact-24-24">
<createTable tableName="T_HRORGCONTACT">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -742,7 +762,7 @@
<!--输出实体[HRORGANIZATION]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrorganization-37-24">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrorganization-37-25">
<createTable tableName="ORGANIZATION">
<column name="UPDATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -776,7 +796,7 @@
<!--输出实体[HRPAPER]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrpaper-16-25">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrpaper-16-26">
<createTable tableName="T_HRPAPER">
<column name="HRPAPERID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRPAPER_HRPAPERID"/>
......@@ -810,7 +830,7 @@
<!--输出实体[HRPATENT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrpatent-17-26">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrpatent-17-27">
<createTable tableName="T_HRPATENT">
<column name="HRPATENTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRPATENT_HRPATENTID"/>
......@@ -840,7 +860,7 @@
<!--输出实体[HRPOST]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrpost-109-27">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrpost-110-28">
<createTable tableName="T_HRPOST">
<column name="HRPOSTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRPOST_HRPOSTID"/>
......@@ -874,7 +894,7 @@
<!--输出实体[HRPOSTREL]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrpostrel-29-28">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrpostrel-29-29">
<createTable tableName="T_HRPOSTREL">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -902,7 +922,7 @@
<!--输出实体[HRRESEARCH]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrresearch-14-29">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrresearch-14-30">
<createTable tableName="T_HRRESEARCH">
<column name="HRRESEARCHID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRRESEARCH_HRRESEARCHID"/>
......@@ -928,7 +948,7 @@
<!--输出实体[HRREWARD]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrreward-19-30">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrreward-19-31">
<createTable tableName="T_HRREWARD">
<column name="HRREWARDNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -964,7 +984,7 @@
<!--输出实体[HRTECHNICALTITLE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrtechnicaltitle-88-31">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrtechnicaltitle-88-32">
<createTable tableName="T_HRTECHNICALTITLE">
<column name="HRTECHNICALTITLEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRTECHNICALTITLE_HRTECHNICA"/>
......@@ -1004,7 +1024,7 @@
<!--输出实体[HRTRAININGRECORD]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrtrainingrecord-8-32">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrtrainingrecord-8-33">
<createTable tableName="T_HRTRAININGRECORD">
<column name="HRTRAININGRECORDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRTRAININGRECORD_HRTRAINING"/>
......@@ -1026,7 +1046,7 @@
<!--输出实体[HRTRANSFERAPPLY]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrtransferapply-184-33">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrtransferapply-205-34">
<createTable tableName="T_HRTRANSFERAPPLY">
<column name="HRTRANSFERAPPLYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRTRANSFERAPPLY_HRTRANSFERA"/>
......@@ -1072,7 +1092,7 @@
<!--输出实体[HRWORKRECORD]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrworkrecord-16-34">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrworkrecord-16-35">
<createTable tableName="T_HRWORKRECORD">
<column name="HRWORKRECORDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRWORKRECORD_HRWORKRECORDID"/>
......@@ -1107,148 +1127,149 @@
</changeSet>
<!--输出实体[HRARCHIVES]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrarchives-39-35">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrarchives-104-36">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRARCHIVES" constraintName="DER1N_HRARCHIVES_HREMPLOYEE_HR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrarchives-39-36">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrarchives-104-37">
<addForeignKeyConstraint baseColumnNames="HRORGANIZATIONID" baseTableName="T_HRARCHIVES" constraintName="DER1N_HRARCHIVES_HRORGANIZATIO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<!--输出实体[HRARCHIVESBORROW]外键关系 -->
<!--输出实体[HRATTENDANCE]外键关系 -->
<!--输出实体[HRCERTIFICATE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrcertificate-93-37">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrcertificate-93-38">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRCERTIFICATE" constraintName="DER1N_HRCERTIFICATE_HREMPLOYEE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrcertificate-93-38">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrcertificate-93-39">
<addForeignKeyConstraint baseColumnNames="REGISTERORGANIZATIONID" baseTableName="T_HRCERTIFICATE" constraintName="DER1N_HRCERTIFICATE_HRORGANIZA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<!--输出实体[HRCONTRACT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrcontract-137-39">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrcontract-137-40">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRCONTRACT" constraintName="DER1N_HRCONTRACT_HREMPLOYEE_HR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrcontract-137-40">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrcontract-137-41">
<addForeignKeyConstraint baseColumnNames="MGRORGANIZATIONID" baseTableName="T_HRCONTRACT" constraintName="DER1N_HRCONTRACT_HRORGANIZATIO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<!--输出实体[HRDISTRIBUTION]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdistribution-39-42">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdistribution-39-43">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRDISTRIBUTION" constraintName="DER1N_HRDISTRIBUTION_HREMPLOYE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdistribution-39-43">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdistribution-39-44">
<addForeignKeyConstraint baseColumnNames="HRPOSTID" baseTableName="T_HRDISTRIBUTION" constraintName="DER1N_HRDISTRIBUTION_HRPOST_HR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRPOSTID" referencedTableName="T_HRPOST" validate="true"/>
</changeSet>
<!--输出实体[HRDUTY]外键关系 -->
<!--输出实体[HRDUTYCERT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdutycert-23-44">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdutycert-23-45">
<addForeignKeyConstraint baseColumnNames="HRDUTYID" baseTableName="T_HRDUTYCERT" constraintName="DER1N_HRDUTYCERT_HRDUTY_HRDUTY" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRDUTYID" referencedTableName="T_HRDUTY" validate="true"/>
</changeSet>
<!--输出实体[HRDUTYEDU]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdutyedu-22-45">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdutyedu-22-46">
<addForeignKeyConstraint baseColumnNames="HRDUTYID" baseTableName="T_HRDUTYEDU" constraintName="DER1N_HRDUTYEDU_HRDUTY_HRDUTYI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRDUTYID" referencedTableName="T_HRDUTY" validate="true"/>
</changeSet>
<!--输出实体[HRDUTYSKILL]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdutyskill-21-46">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrdutyskill-21-47">
<addForeignKeyConstraint baseColumnNames="HRDUTYID" baseTableName="T_HRDUTYSKILL" constraintName="DER1N_HRDUTYSKILL_HRDUTY_HRDUT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRDUTYID" referencedTableName="T_HRDUTY" validate="true"/>
</changeSet>
<!--输出实体[HREDUCATION]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hreducation-44-47">
<changeSet author="a_LAB01_e85d8801c" id="fk-hreducation-44-48">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HREDUCATION" constraintName="DER1N_HREDUCATION_HREMPLOYEE_H" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HREMPSTATE]外键关系 -->
<!--输出实体[HREMPLOYEE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-291-48">
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-291-49">
<addForeignKeyConstraint baseColumnNames="ORGANIZATIONID" baseTableName="EMPLOYEE" constraintName="DER1N_EMPLOYEE_ORGANIZATION_OR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-291-49">
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-291-50">
<addForeignKeyConstraint baseColumnNames="EMPSTATE" baseTableName="EMPLOYEE" constraintName="DER1N_HREMPLOYEE_HREMPSTATE_EM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HREMPSTATEID" referencedTableName="T_HREMPSTATE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-291-50">
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-291-51">
<addForeignKeyConstraint baseColumnNames="HRPOSTID" baseTableName="EMPLOYEE" constraintName="DER1N_HREMPLOYEE_HRPOST_HRPOST" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRPOSTID" referencedTableName="T_HRPOST" validate="true"/>
</changeSet>
<!--输出实体[HRFAMILY]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrfamily-23-51">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrfamily-23-52">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRFAMILY" constraintName="DER1N_HRFAMILY_HREMPLOYEE_HREM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRLANGUAGEABILITY]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrlanguageability-17-52">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrlanguageability-17-53">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRLANGUAGEABILITY" constraintName="DER1N_HRLANGUAGEABILITY_HREMPL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRLEAVE]外键关系 -->
<!--输出实体[HRLEGAL]外键关系 -->
<!--输出实体[HROMHIERARCHYPURPOSE]外键关系 -->
<!--输出实体[HROMHIERARCHY]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hromhierarchy-76-53">
<changeSet author="a_LAB01_e85d8801c" id="fk-hromhierarchy-76-54">
<addForeignKeyConstraint baseColumnNames="HROMHIERARCHYCATID" baseTableName="OMHIERARCHY" constraintName="DER1N_HROMHIERARCHY_HROMHIERAR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OMHIERARCHYCATID" referencedTableName="OMHIERARCHYCAT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hromhierarchy-76-54">
<changeSet author="a_LAB01_e85d8801c" id="fk-hromhierarchy-76-55">
<addForeignKeyConstraint baseColumnNames="POMHIERARCHYID" baseTableName="OMHIERARCHY" constraintName="DER1N_OMHIERARCHY_OMHIERARCHY_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OMHIERARCHYID" referencedTableName="OMHIERARCHY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hromhierarchy-76-55">
<changeSet author="a_LAB01_e85d8801c" id="fk-hromhierarchy-76-56">
<addForeignKeyConstraint baseColumnNames="ORGANIZATIONID" baseTableName="OMHIERARCHY" constraintName="DER1N_OMHIERARCHY_ORGANIZATION" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<!--输出实体[HROMHIERARCHYCAT]外键关系 -->
<!--输出实体[HROMHIERARCHYPURPOSEREF]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hromhierarchypurposeref-6-56">
<changeSet author="a_LAB01_e85d8801c" id="fk-hromhierarchypurposeref-6-57">
<addForeignKeyConstraint baseColumnNames="OMHIERARCHYCATID" baseTableName="OMHIERARCHYPURPOSEREF" constraintName="DER1N_OMHIERARCHYPURPOSEREF_OM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OMHIERARCHYCATID" referencedTableName="OMHIERARCHYCAT" validate="true"/>
</changeSet>
<!--输出实体[HROPERATIONUNIT]外键关系 -->
<!--输出实体[HRORGADDRESS]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrorgaddress-29-58">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrorgaddress-29-59">
<addForeignKeyConstraint baseColumnNames="HRORGANIZATIONID" baseTableName="T_HRORGADDRESS" constraintName="DER1N_HRORGADDRESS_HRORGANIZAT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<!--输出实体[HRORGCONTACT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrorgcontact-24-59">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrorgcontact-24-60">
<addForeignKeyConstraint baseColumnNames="HRORGANIZATIONID" baseTableName="T_HRORGCONTACT" constraintName="DER1N_HRORGCONTACT_HRORGANIZAT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<!--输出实体[HRORGANIZATION]外键关系 -->
<!--输出实体[HRPAPER]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpaper-16-60">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpaper-16-61">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRPAPER" constraintName="DER1N_HRPAPER_HREMPLOYEE_HREMP" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRPATENT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpatent-17-61">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpatent-17-62">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRPATENT" constraintName="DER1N_HRPATENT_HREMPLOYEE_HREM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRPOST]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpost-109-62">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpost-110-63">
<addForeignKeyConstraint baseColumnNames="HRDUTYID" baseTableName="T_HRPOST" constraintName="DER1N_HRPOST_HRDUTY_HRDUTYID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRDUTYID" referencedTableName="T_HRDUTY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpost-109-63">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpost-110-64">
<addForeignKeyConstraint baseColumnNames="HRORGANIZATIONID" baseTableName="T_HRPOST" constraintName="DER1N_HRPOST_HRORGANIZATION_HR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<!--输出实体[HRPOSTREL]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpostrel-29-64">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpostrel-29-65">
<addForeignKeyConstraint baseColumnNames="HRPOSTID" baseTableName="T_HRPOSTREL" constraintName="DER1N_HRPOSTREL_HRPOST_HRPOSTI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRPOSTID" referencedTableName="T_HRPOST" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpostrel-29-65">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrpostrel-29-66">
<addForeignKeyConstraint baseColumnNames="PHRPOSTID" baseTableName="T_HRPOSTREL" constraintName="DER1N_HRPOSTREL_HRPOST_PHRPOST" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRPOSTID" referencedTableName="T_HRPOST" validate="true"/>
</changeSet>
<!--输出实体[HRRESEARCH]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrresearch-14-66">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrresearch-14-67">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRRESEARCH" constraintName="DER1N_HRRESEARCH_HREMPLOYEE_HR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRREWARD]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrreward-19-67">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrreward-19-68">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRREWARD" constraintName="DER1N_HRREWARD_HREMPLOYEE_HREM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRTECHNICALTITLE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtechnicaltitle-88-68">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtechnicaltitle-88-69">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRTECHNICALTITLE" constraintName="DER1N_HRTECHNICALTITLE_HREMPLO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRTRAININGRECORD]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtrainingrecord-8-69">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtrainingrecord-8-70">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRTRAININGRECORD" constraintName="DER1N_HRTRAININGRECORD_HREMPLO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRTRANSFERAPPLY]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-184-70">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-205-71">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRTRANSFERAPPLY" constraintName="DER1N_HRTRANSFERAPPLY_HREMPLOY" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-184-71">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-205-72">
<addForeignKeyConstraint baseColumnNames="HRORGANIZATIONID2" baseTableName="T_HRTRANSFERAPPLY" constraintName="DER1N_HRTRANSFERAPPLY_HRORGANI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-184-72">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-205-73">
<addForeignKeyConstraint baseColumnNames="HRPOSTID2" baseTableName="T_HRTRANSFERAPPLY" constraintName="DER1N_HRTRANSFERAPPLY_HRPOST_H" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRPOSTID" referencedTableName="T_HRPOST" validate="true"/>
</changeSet>
<!--输出实体[HRWORKRECORD]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrworkrecord-16-73">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrworkrecord-16-74">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRWORKRECORD" constraintName="DER1N_HRWORKRECORD_HREMPLOYEE_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.ibizlab.humanresource.core.humanresource.mapper.HRArchivesBorrowMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="HRArchivesBorrowResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESBORROWID`, t1.`HRARCHIVESBORROWNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESBORROW` t1 ) t1 where hrarchivesborrowid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="HRArchivesBorrowResultMap" type="cn.ibizlab.humanresource.core.humanresource.domain.HRArchivesBorrow" autoMapping="true">
<id property="hrarchivesborrowid" column="hrarchivesborrowid" /><!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select id="searchDefault" parameterType="cn.ibizlab.humanresource.core.humanresource.filter.HRArchivesBorrowSearchContext" resultMap="HRArchivesBorrowResultMap">
select t1.* from (
<include refid="Default" />
)t1
<where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESBORROWID`, t1.`HRARCHIVESBORROWNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESBORROW` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`HRARCHIVESBORROWID`, t1.`HRARCHIVESBORROWNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_HRARCHIVESBORROW` t1
]]>
</sql>
</mapper>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册