新增拉黑状态过滤

This commit is contained in:
yan.y 2024-09-20 11:36:39 +08:00
parent 4e7fceade8
commit 17184458bb
1 changed files with 1 additions and 2 deletions

View File

@ -67,8 +67,7 @@ public class FactoryServiceImpl implements FactoryService {
public int getDeviceCountByFactory(String factoryCode, String billMonth) { public int getDeviceCountByFactory(String factoryCode, String billMonth) {
String year = billMonth.split("-")[0]; String year = billMonth.split("-")[0];
String month = billMonth.split("-")[1]; String month = billMonth.split("-")[1];
int count = this.deviceDao.getNumber("SELECT count(1) from tbl_device td where td.is_charge = '0' and td.factory_code = '"+ factoryCode +"' and str_to_date(td.authorize_time,'%Y-%m')='" + year + "-" + month + "-00'"); return this.deviceDao.getNumber("SELECT count(1) from tbl_device td where td.is_charge = '0' and is_blacklist = 0 and td.factory_code = '"+ factoryCode +"' and str_to_date(td.authorize_time,'%Y-%m')='" + year + "-" + month + "-00'");
return count;
} }
@Override @Override