|
|
|
@ -18,6 +18,13 @@
|
|
|
|
|
order by c.orderid, c.id
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getQuickSearchConditionById"
|
|
|
|
|
resultType="com.engine.organization.entity.search.QuickSearchCondition">
|
|
|
|
|
select c.id, fieldid, c.customname, c.type, c.orderid, c.showmodel
|
|
|
|
|
from jcl_quicksearch_condition c
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getQuickSearchOptionList" resultType="com.engine.organization.entity.search.QuickSearchOption">
|
|
|
|
|
select b.fieldid, b.fieldlabel, b.fieldname, fieldhtmltype, b.type
|
|
|
|
|
from hrm_formfield b
|
|
|
|
@ -53,10 +60,19 @@
|
|
|
|
|
|
|
|
|
|
<select id="getQuickSearchFieldListByConditionId"
|
|
|
|
|
resultType="com.engine.organization.entity.search.QuickSearchField">
|
|
|
|
|
select b.fieldhtmltype, b.type, b.fielddbtype
|
|
|
|
|
from jcl_quicksearch_condition c
|
|
|
|
|
left join hrm_formfield b on b.fieldid = c.fieldid
|
|
|
|
|
where c.id = #{id}
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM (SELECT t2.fielddbtype, t2.fieldhtmltype, t2.type, t1.scopeid as scopeId, t2.fieldname
|
|
|
|
|
FROM cus_formfield t1,
|
|
|
|
|
cus_formdict t2
|
|
|
|
|
WHERE t1.fieldid = t2.id
|
|
|
|
|
AND t1.scope = 'HrmCustomFieldByInfoType'
|
|
|
|
|
UNION ALL
|
|
|
|
|
SELECT t3.fielddbtype, t3.fieldhtmltype, t3.TYPE, c.grouptype as scopeId, t3.fieldname
|
|
|
|
|
FROM hrm_formfield t3
|
|
|
|
|
inner join hrm_fieldgroup c on c.id = t3.groupid and c.grouptype in (-1, 1, 3)) hrmallfield
|
|
|
|
|
WHERE FIELDHTMLTYPE != '6'
|
|
|
|
|
and fieldname = #{fieldName}
|
|
|
|
|
and scopeId = #{scopeId}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getHrmFormFieldByFieldId"
|
|
|
|
|
resultType="com.engine.organization.entity.jclimport.po.HrmFormFieldPO">
|
|
|
|
@ -100,7 +116,7 @@
|
|
|
|
|
UNION ALL
|
|
|
|
|
SELECT t3.fieldid,
|
|
|
|
|
t3.fieldname,
|
|
|
|
|
t3.fieldlabel fieldLabel,
|
|
|
|
|
t3.fieldlabel fieldLabel,
|
|
|
|
|
t3.ismand,
|
|
|
|
|
t3.fielddbtype,
|
|
|
|
|
t3.fieldhtmltype,
|
|
|
|
|