diff --git a/postdischarge-manage/src/main/resources/mapper/manage/info/InfoMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/info/InfoMapper.xml index 02a0a808..b6d414ca 100644 --- a/postdischarge-manage/src/main/resources/mapper/manage/info/InfoMapper.xml +++ b/postdischarge-manage/src/main/resources/mapper/manage/info/InfoMapper.xml @@ -50,10 +50,10 @@ and info_category_name = #{infoCategoryName} - and info_title = #{infoTitle} + and info_title like concat('%', #{infoTitle}, '%') - and info_code = #{infoCode} + and info_code like concat('%', #{infoCode}, '%') and info_content = #{infoContent} diff --git a/postdischarge-manage/src/main/resources/mapper/manage/infocategory/InfoCategoryMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/infocategory/InfoCategoryMapper.xml index 47380baf..3b43533c 100644 --- a/postdischarge-manage/src/main/resources/mapper/manage/infocategory/InfoCategoryMapper.xml +++ b/postdischarge-manage/src/main/resources/mapper/manage/infocategory/InfoCategoryMapper.xml @@ -5,114 +5,123 @@ - - - - - - - + + + + + + + - select id, info_category_code, info_category_name, info_category_type, info_category_sort, info_category_creator, info_category_create_time from info_category + select id, + info_category_code, + info_category_name, + info_category_type, + info_category_sort, + info_category_creator, + info_category_create_time + from info_category - where info_category_name = #{info_category_name} insert into info_category - info_category_code, - - info_category_name, - - info_category_type, - - info_category_sort, - - info_category_creator, - - info_category_create_time, - + info_category_code, + + info_category_name, + + info_category_type, + + info_category_sort, + + info_category_creator, + + info_category_create_time, + - #{infoCategoryCode}, - - #{infoCategoryName}, - - #{infoCategoryType}, - - #{infoCategorySort}, - - #{infoCategoryCreator}, - - #{infoCategoryCreateTime}, - + #{infoCategoryCode}, + + #{infoCategoryName}, + + #{infoCategoryType}, + + #{infoCategorySort}, + + #{infoCategoryCreator}, + + #{infoCategoryCreateTime}, + update info_category - info_category_code = - #{infoCategoryCode}, - - info_category_name = - #{infoCategoryName}, - - info_category_type = - #{infoCategoryType}, - - info_category_sort = - #{infoCategorySort}, - - info_category_creator = - #{infoCategoryCreator}, - - info_category_create_time = - #{infoCategoryCreateTime}, - + info_category_code = + #{infoCategoryCode}, + + info_category_name = + #{infoCategoryName}, + + info_category_type = + #{infoCategoryType}, + + info_category_sort = + #{infoCategorySort}, + + info_category_creator = + #{infoCategoryCreator}, + + info_category_create_time = + #{infoCategoryCreateTime}, + where id = #{id} - delete from info_category where id = #{id} + delete + from info_category + where id = #{id} @@ -130,7 +139,6 @@ - insert into info_category( info_category_code, diff --git a/postdischarge-manage/src/main/resources/mapper/manage/labelfieldcontent/LabelFieldContentMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/labelfieldcontent/LabelFieldContentMapper.xml index d70a18b7..3409eadb 100644 --- a/postdischarge-manage/src/main/resources/mapper/manage/labelfieldcontent/LabelFieldContentMapper.xml +++ b/postdischarge-manage/src/main/resources/mapper/manage/labelfieldcontent/LabelFieldContentMapper.xml @@ -77,7 +77,7 @@ #{fieldMark} - order by create_time DESC + order by content_sort, create_time DESC