新增拉黑状态过滤
This commit is contained in:
parent
4e7fceade8
commit
17184458bb
|
|
@ -67,8 +67,7 @@ public class FactoryServiceImpl implements FactoryService {
|
|||
public int getDeviceCountByFactory(String factoryCode, String billMonth) {
|
||||
String year = billMonth.split("-")[0];
|
||||
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 count;
|
||||
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'");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue