|
@ -1485,12 +1485,11 @@ public class MedicineOrderService extends BaseJpaService<Mediicineorder, Mediici
|
|
public MixEnvelop getSumAmount(String belongCommunity, String equNum, String startTime, String endTime) {
|
|
public MixEnvelop getSumAmount(String belongCommunity, String equNum, String startTime, String endTime) {
|
|
List<Map<String,Object>> arrayList=new ArrayList<>();
|
|
List<Map<String,Object>> arrayList=new ArrayList<>();
|
|
List<Map<String,Object>> mapList=new ArrayList<>();
|
|
List<Map<String,Object>> mapList=new ArrayList<>();
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
Iterable <Mediicinedevice> mediicinedevices = deviceDao.findAll();
|
|
Iterable <Mediicinedevice> mediicinedevices = deviceDao.findAll();
|
|
List<Mediicinedevice> mediicinedeviceList= IterableUtils.toList(mediicinedevices);
|
|
List<Mediicinedevice> mediicinedeviceList= IterableUtils.toList(mediicinedevices);
|
|
for (Mediicinedevice mediicinedevice:mediicinedeviceList){
|
|
for (Mediicinedevice mediicinedevice:mediicinedeviceList){
|
|
String sql = "SELECT SUM(t.amount) AS sumAmount,\n" +
|
|
String sql = "SELECT SUM(t.amount) AS sumAmount,\n" +
|
|
"a.community AS community,\n" +
|
|
|
|
"a.equ_name AS equName,\n" +
|
|
|
|
"COUNT(*) AS count,\n" +
|
|
"COUNT(*) AS count,\n" +
|
|
"t.shipping_equ AS equNum \n" +
|
|
"t.shipping_equ AS equNum \n" +
|
|
"FROM t_mediicine_order AS t,\n" +
|
|
"FROM t_mediicine_order AS t,\n" +
|