Merge remote-tracking branch 'origin/group1-dict'

pull/3/head
fengshuonan 2021-01-13 20:04:19 +08:00
commit c1bc47168d
2 changed files with 39 additions and 33 deletions

View File

@ -6,6 +6,7 @@
SELECT dict.dict_id AS dictId,
dict.dict_code AS dictCode,
dict.dict_name as dictName,
dict.dict_name_pinyin as dictNamePinyin,
dict.dict_encode as dictEncode,
dict.dict_sort as dictSort,
dict.dict_type_code AS dictTypeCode,
@ -28,6 +29,7 @@
dict.dict_encode as dictEncode,
dict.dict_sort as dictSort,
dict.dict_name as dictName,
dict.dict_name_pinyin as dictNamePinyin,
dict.dict_type_code AS dictTypeCode,
dict.dict_short_name AS dictShortName,
dict.dict_short_code AS dictShortCode,
@ -78,7 +80,7 @@
sys_dict
SET dict_pids = replace(dict_pids, #{paramCondition.oldParentIds}, #{paramCondition.newParentIds}),
update_time = #{paramCondition.updateTime},
update_account_id = #{paramCondition.updateUser}
update_user = #{paramCondition.updateUser}
WHERE dict_pids LIKE CONCAT('%', #{paramCondition.oldParentIds}, '%')
</update>

View File

@ -22,6 +22,7 @@
SELECT dict_type_id AS dictTypeId,
dict_type_class AS dictTypeClass,
dict_type_bus_code AS dictTypeBusCode,
dict_type_name_pinyin AS dictTypeNamePinyin,
dict_type_code AS dictTypeCode,
dict_type_name AS dictTypeName,
dict_type_desc AS dictTypeDesc,
@ -37,6 +38,9 @@
dict_type_name_pinyin like concat('%', #{dictTypeRequest.dictTypeName}, '%')
)
</if>
<if test="dictTypeRequest.dictTypeClass != null and dictTypeRequest.dictTypeClass !=''">
AND dict_type_class = #{dictTypeRequest.dictTypeClass}
</if>
<if test="dictTypeRequest.dictTypeDesc != null and dictTypeRequest.dictTypeDesc !=''">
AND dict_type_desc like CONCAT('%', #{dictTypeRequest.dictTypeDesc}, '%')
</if>