Commit 7d20bb9f by 刘宇峰

特约店、围栏同步

1 parent 208800f5
...@@ -51,13 +51,13 @@ ...@@ -51,13 +51,13 @@
) )
</if> </if>
<if test="area != null and area !=''"> <if test="area != null and area !=''">
and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{area}); and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{area})
</if> </if>
<if test="province != null and province !=''"> <if test="province != null and province !=''">
and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{province}); and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{province})
</if> </if>
<if test="city != null and city !=''"> <if test="city != null and city !=''">
and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{city}); and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{city})
</if> </if>
order by ttds.id desc order by ttds.id desc
</select> </select>
...@@ -87,13 +87,13 @@ ...@@ -87,13 +87,13 @@
) )
</if> </if>
<if test="area != null and area !=''"> <if test="area != null and area !=''">
and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{area}); and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{area})
</if> </if>
<if test="province != null and province !=''"> <if test="province != null and province !=''">
and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{province}); and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{province})
</if> </if>
<if test="city != null and city !=''"> <if test="city != null and city !=''">
and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{city}); and ttds.created_by in (select tu.id from t_user tu where tu.department_id = #{city})
</if> </if>
order by ttds.id desc order by ttds.id desc
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!