Browse Source

门店人员返回状态

eganwu 1 year ago
parent
commit
a9f2d67bd5

+ 2 - 0
src/custom/restcontroller/webmanage/saletool/store/StoreAgent.java

@@ -373,6 +373,8 @@ public class StoreAgent extends Controller {
                 , "sa_store_hrid");
         querySQL.addJoinTable(JOINTYPE.left, "sys_users", "t3", "t3.userid=t1.userid "
                 , "accountno");
+        querySQL.addJoinTable(JOINTYPE.left,"sys_usersite","t4","t4.userid=t1.userid and t4.siteid=t1.siteid");
+        querySQL.addQueryFields("status","case when t4.userid >0 then '启用' else '停用' end");
         querySQL.setSiteid(siteid);
         querySQL.setWhere("t2.sa_storeid", sa_storeid);
         querySQL.setPage(pageSize, pageNumber).setOrderBy(pageSorting);