diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/android/FaceMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/android/FaceMapper.xml index a04cf40..4c4c042 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/android/FaceMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/android/FaceMapper.xml @@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" face_state from user_face + and face_state = '1' and user_id = #{userId} diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/android/UserMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/android/UserMapper.xml index 5ad449c..c53a42b 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/android/UserMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/android/UserMapper.xml @@ -16,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from sys_user su left join account_card ac on ac.user_id = su.user_id left join account_info ai on ai.user_id = su.user_id - where ai.del_flag = '0' + where ai.del_flag = '0' and su.status = '0' AND su.user_id = #{userId}