|
@@ -123,7 +123,7 @@ public class ApiAppDeviceController {
|
|
|
//@ToDo: 添加各种状态
|
|
|
StringBuffer sql = new StringBuffer();
|
|
|
sql.append("select t1.batch_num,t1.sn,t1.deliver_time,count(0) as total,count(if(status = 1,true,null)) as in_storage,count(if(status = 2,true,null)) as transfer,");
|
|
|
- sql.append("count(if(status = 3,true,null)) as out_storage,count(if(status = 3,true,null)) as handle,");
|
|
|
+ sql.append("count(if(status = 3,true,null)) as out_storage,count(if(status = 4,true,null)) as handle,");
|
|
|
sql.append("t1.add_time,t1.received_place from app_device t1");
|
|
|
|
|
|
if (!StringUtils.isEmpty(param.getBatchNum())) {
|