This commit is contained in:
cun-nan 2024-02-19 18:06:02 +08:00
parent a0629a80fa
commit 87b4f3595b
6 changed files with 60 additions and 19 deletions

View File

@ -65,6 +65,16 @@ public class LJStaffController extends BaseController {
return getSuccessResult(list); return getSuccessResult(list);
} }
/**
* 查询当前店铺所有加油员信息
* @return
*/
@GetMapping("/queryList1/{storeId}")
public ResponseObject queryStaffs1(@PathVariable Integer storeId){
List<LJStaff> list = mtStaffService.queryStaffLists1(storeId);
return getSuccessResult(list);
}
/** /**
* 根据id查询员工信息 * 根据id查询员工信息
* @param id * @param id

View File

@ -36,6 +36,12 @@ public interface ILJStaffService extends IService<LJStaff> {
*/ */
public List<LJStaff> queryStaffLists(Integer storeId); public List<LJStaff> queryStaffLists(Integer storeId);
/**
* 查询当前店铺所有加油员信息
* @return
*/
public List<LJStaff> queryStaffLists1(Integer storeId);
/** /**
* 根据id查询员工信息 * 根据id查询员工信息
* @param id * @param id

View File

@ -93,6 +93,17 @@ public class LJStaffServiceImpl extends ServiceImpl<LJStaffMapper, LJStaff> impl
return list; return list;
} }
@Override
public List<LJStaff> queryStaffLists1(Integer storeId) {
QueryWrapper queryWrapper = new QueryWrapper<>();
queryWrapper.eq("store_id",storeId);
queryWrapper.eq("status","qy");
queryWrapper.eq("role_id","15");
queryWrapper.eq("if_delete","0");
List list = baseMapper.selectList(queryWrapper);
return list;
}
/** /**
* 根据id查询员工信息 * 根据id查询员工信息
* @param id * @param id

View File

@ -67,6 +67,16 @@ public class ShiroConfig {
filterMap.put("/business/petrolStationManagement/oilGun/queryGunList/**","anon"); // 获取油枪列表信息 filterMap.put("/business/petrolStationManagement/oilGun/queryGunList/**","anon"); // 获取油枪列表信息
filterMap.put("/business/petrolStationManagement/oilTank/**","anon"); // 获取油罐信息 filterMap.put("/business/petrolStationManagement/oilTank/**","anon"); // 获取油罐信息
filterMap.put("/business/oilOrder/addOilOrder","anon"); // 添加油品订单信息 filterMap.put("/business/oilOrder/addOilOrder","anon"); // 添加油品订单信息
filterMap.put("/business/member/staff/queryList1/**","anon"); // 获取店铺员工信息列表
filterMap.put("/clientApi/sign/mpWxLogin2","anon"); // 获取微信openid
//加油页面免登录配置
filterMap.put("/business/oilOrder/appletPay","anon"); // 调起支付接口
filterMap.put("/business/allOrderInfo/orderStatus","anon"); // 修改订单状态信息
filterMap.put("/business/userManager/userGrade/isUse","anon"); // 查看是否有可使用的会员等级优惠
filterMap.put("/business/userManager/user/storeUser","anon"); // 根据店铺id查询用户信息
filterMap.put("/business/marketingActivity/activeExchange/getPaymentActive","anon"); // 查询用户油品订单的优惠信息
filterMap.put("/business/oilOrder/oilOrderNo","anon"); // 获取油品订单
filterMap.put("/business/petrolStationManagement/oilNumber/getOilNumberName/**","anon"); // 获取店铺油号信息

View File

@ -192,9 +192,9 @@ public class ClientSignController extends BaseController {
return getSuccessResult(true); return getSuccessResult(true);
} }
// if ((Boolean) param.get("isRefuel") == true){ if ((Boolean) param.get("isRefuel") == true){
// return getSuccessResult(true); return getSuccessResult(true);
// } }
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
if (ObjectUtil.isEmpty(nowAccountInfo)) return getSuccessResult(true); if (ObjectUtil.isEmpty(nowAccountInfo)) return getSuccessResult(true);

View File

@ -248,10 +248,12 @@
this.storeId = uni.getStorageSync("storeId") this.storeId = uni.getStorageSync("storeId")
this.staffId = uni.getStorageSync("inviteStaffId") this.staffId = uni.getStorageSync("inviteStaffId")
this.getStore(uni.getStorageSync("storeId")); this.getStore(uni.getStorageSync("storeId"));
this.getStaffList(uni.getStorageSync("storeId"));
} }
} else { } else {
if (uni.getStorageSync("storeId")) { if (uni.getStorageSync("storeId")) {
this.getStore(uni.getStorageSync("storeId")); this.getStore(uni.getStorageSync("storeId"));
this.getStaffList(uni.getStorageSync("storeId"));
} }
} }
@ -261,6 +263,7 @@
onShow() { onShow() {
// this.isExistStoreId(); // this.isExistStoreId();
this.getStore(uni.getStorageSync("storeId")); this.getStore(uni.getStorageSync("storeId"));
this.getStaffList(uni.getStorageSync("storeId"));
// this.getStore(0); // this.getStore(0);
this.getTheJudgmentIsTheSame() this.getTheJudgmentIsTheSame()
@ -274,6 +277,7 @@
isExistStoreId() { isExistStoreId() {
if (uni.getStorageSync("storeId") != "") { if (uni.getStorageSync("storeId") != "") {
this.getStore(uni.getStorageSync("storeId")); this.getStore(uni.getStorageSync("storeId"));
this.getStaffList(uni.getStorageSync("storeId"));
} else { } else {
this.getAddress(); this.getAddress();
} }
@ -292,7 +296,7 @@
}, },
}).then((res) => { }).then((res) => {
_this.getOilNumber(id); _this.getOilNumber(id);
_this.getStaffList(id) // _this.getStaffList(id)
_this.store = res.data _this.store = res.data
_this.storeId = res.data.id; _this.storeId = res.data.id;
uni.setStorageSync("storeId", _this.store.id) uni.setStorageSync("storeId", _this.store.id)
@ -332,7 +336,7 @@
_this.store = response.data.store; _this.store = response.data.store;
_this.storeId = response.data.store.id; _this.storeId = response.data.store.id;
_this.getOilNumber(_this.storeId); _this.getOilNumber(_this.storeId);
_this.getStaffList(_this.storeId) // _this.getStaffList(_this.storeId)
let welfare = response.data.store.welfare; let welfare = response.data.store.welfare;
if (welfare != undefined && welfare != null && welfare != "") { if (welfare != undefined && welfare != null && welfare != "") {
if (welfare.includes(",")) { if (welfare.includes(",")) {
@ -385,9 +389,8 @@
getStaffList(storeId) { getStaffList(storeId) {
let _this = this; let _this = this;
request({ request({
url: "business/member/staff/queryList", url: "business/member/staff/queryList1/"+storeId,
method: 'post', method: 'get',
data:{storeId:storeId}
}).then((res) => { }).then((res) => {
_this.staffList = res.data _this.staffList = res.data
}) })
@ -545,22 +548,23 @@
// if (!this.AppToken) { // if (!this.AppToken) {
// return; // return;
// } // }
await request({ // await request({
url: 'chainStoreInfo/theJudgmentIsTheSame', // url: 'chainStoreInfo/theJudgmentIsTheSame',
method: 'get', // method: 'get',
data: { // data: {
"chainStoreId": uni.getStorageSync("chainStoreId") // "chainStoreId": uni.getStorageSync("chainStoreId")
} // }
}).then(res => { // }).then(res => {
if (!res.data) { // if (!res.data) {
uni.removeStorageSync("App-Token"); // uni.removeStorageSync("App-Token");
} // }
}) // })
if (uni.getStorageSync("appltType")== "WECHAT") { if (uni.getStorageSync("appltType")== "WECHAT") {
// code // code
wx.login({ wx.login({
success(res) { success(res) {
console.log(res);
if (res.code) { if (res.code) {
// //
request({ request({