diff --git a/jshERP-boot/src/main/resources/mapper_xml/UserMapperEx.xml b/jshERP-boot/src/main/resources/mapper_xml/UserMapperEx.xml index 964b72d9..5fb9f9cb 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/UserMapperEx.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/UserMapperEx.xml @@ -153,8 +153,7 @@ - update jsh_user u set u.weixin_open_id = #{weixinOpenId} - where u.login_name = #{loginName} and u.password = #{password} - and ifnull(u.status,'0') not in('1','2') + update jsh_user u set u.weixin_open_id = null where u.weixin_open_id = #{weixinOpenId}; + update jsh_user u set u.weixin_open_id = #{weixinOpenId} where u.login_name = #{loginName} and u.password = #{password} and ifnull(u.status,'0') not in('1','2'); \ No newline at end of file