|
@@ -3,7 +3,7 @@
|
|
|
<mapper namespace = "com.fuzamei.mapperInterface.PlannerMapper">
|
|
|
<!--查询计划员列表 带条件账号查询 -->
|
|
|
<select id="queryPlanner" resultType="com.fuzamei.entity.User">
|
|
|
- select user_id,username,person_name,create_time,update_time from users where role_id = 1 and state!=0
|
|
|
+ select user_id,username,person_name,create_time,update_time from users where role_id = 1 and state=1
|
|
|
<if test="username!=null and username!='' ">
|
|
|
and username=#{username}
|
|
|
</if>
|
|
@@ -16,7 +16,7 @@
|
|
|
|
|
|
<!--点击查看 根据计划员id查询没有得供应商 --><!--未添加的供应商 -->
|
|
|
<select id="queryAllNoSupplierByPlannerId" resultType="com.fuzamei.entity.User">
|
|
|
- select user_id,username,person_name from users where role_id=2 and user_id not in(select supplier_id from planner_supplier where planner_id=#{plannerId})
|
|
|
+ select user_id,username,person_name from users where role_id=2 and user_id not in(select supplier_id from planner_supplier where planner_id=#{plannerId}) and state=1
|
|
|
</select>
|
|
|
|
|
|
<!-- 根据计划员id 删除他原来有的,所对应得供应商。后面在得到前端传来所有得id再次做插入 -->
|