glj-代码提交

This commit is contained in:
glj 2023-05-05 09:25:06 +08:00
parent 46143be9f7
commit f75f6404b8
2 changed files with 4 additions and 7 deletions

View File

@ -39,10 +39,7 @@ public class ToolController{
queryWrapper.like("tool_name", tool.getToolName()); queryWrapper.like("tool_name", tool.getToolName());
} }
if(!StringUtils.isEmpty(tool.getLabel())){ if(!StringUtils.isEmpty(tool.getLabel())){
queryWrapper.like("Introduction", tool.getLabel()); queryWrapper.like("Introduction", tool.getLabel()).or().like("label", tool.getLabel());
}
if(!StringUtils.isEmpty(tool.getLabel())){
queryWrapper.like("label", tool.getLabel());
} }
String checkd = tool.getChecked(); String checkd = tool.getChecked();
if(checkd != null && checkd.equals("1")){ if(checkd != null && checkd.equals("1")){

View File

@ -28,9 +28,9 @@
</update> </update>
<update id="updateAccount"> <update id="updateAccount">
update blade_user t set t.name = #{name}, t.real_name = #{realName}, t.organization = #{organization}, update blade_user t set t.name = #{userVo.name}, t.real_name = #{userVo.realName}, t.organization = #{userVo.organization},
t.research_field = #{researchField}, t.occupation = #{occupation}, t.code = #{country} t.research_field = #{userVo.researchField}, t.occupation = #{userVo.occupation}, t.code = #{userVo.country}
where t.id = #{id} where t.id = #{userVo.id}
</update> </update>
<select id="getBladeUserByEmail" resultType="com.kening.vordm.vo.UserVo"> <select id="getBladeUserByEmail" resultType="com.kening.vordm.vo.UserVo">