Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d5e1754285
@ -327,7 +327,7 @@
|
||||
厂商名称
|
||||
</div>
|
||||
<div class="rw">
|
||||
二维码SN号
|
||||
二维码ID
|
||||
</div>
|
||||
<div class="rw">
|
||||
码牌SN号
|
||||
|
@ -223,6 +223,8 @@
|
||||
FROM
|
||||
oil_order
|
||||
WHERE
|
||||
order_status = 'paid'
|
||||
and
|
||||
store_id = #{storeId}
|
||||
) oil_order ON date_range.date = oil_order.order_date
|
||||
WHERE
|
||||
|
@ -1743,8 +1743,8 @@ return stringDoubleMap;
|
||||
|
||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||
Integer storeId = nowAccountInfo.getStoreId();
|
||||
|
||||
return oilOrderMapper.oilSales(storeId);
|
||||
List<Map<String, String>> maps = oilOrderMapper.oilSales(storeId);
|
||||
return maps;
|
||||
}
|
||||
|
||||
@Resource
|
||||
|
@ -25,6 +25,8 @@ import com.fuint.framework.web.ResponseObject;
|
||||
import com.fuint.module.backendApi.response.LoginResponse;
|
||||
import com.fuint.repository.model.TAccount;
|
||||
import com.fuint.repository.model.TDutySource;
|
||||
import com.fuint.system.dept.entity.SysDept;
|
||||
import com.fuint.system.dept.service.ISysDeptService;
|
||||
import com.fuint.system.role.entity.TDuty;
|
||||
import com.fuint.repository.model.TSource;
|
||||
import com.fuint.system.role.service.DutyService;
|
||||
@ -91,6 +93,9 @@ public class BackendLoginController extends BaseController {
|
||||
@Resource
|
||||
private LJDutyMapper ljDutyMapper;
|
||||
|
||||
@Resource
|
||||
private ISysDeptService iSysDeptService;
|
||||
|
||||
|
||||
/**
|
||||
* 后台登录
|
||||
@ -165,6 +170,18 @@ public class BackendLoginController extends BaseController {
|
||||
return getFailureResult(201,"请登录油站端!");
|
||||
}
|
||||
|
||||
LambdaQueryWrapper<SysDept> queryWrapper1 = new LambdaQueryWrapper<>();
|
||||
queryWrapper1.eq(SysDept::getDeptId,one.getDeptId());
|
||||
SysDept one1 = iSysDeptService.getOne(queryWrapper1);
|
||||
if (ObjectUtils.isNotEmpty(one1) && ObjectUtils.isNotEmpty(one1.getTurnoverType()) && one1.getTurnoverType().equals("2")){
|
||||
if (ObjectUtils.isNotEmpty(one1.getTurnoverEndTime())){
|
||||
Date date = new Date();
|
||||
Date turnoverEndTime = one1.getTurnoverEndTime();
|
||||
if (date.compareTo(turnoverEndTime)<0){
|
||||
return getFailureResult(201,"请付费后再登录!");
|
||||
}
|
||||
}
|
||||
}
|
||||
//不知道是哪个平台过来的请求
|
||||
/*LambdaQueryWrapper<TAccount> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(TAccount::getAccountName, accountName);
|
||||
|
Loading…
Reference in New Issue
Block a user