| 
															
																@ -183,23 +183,23 @@ public class MedicinedeviceService  extends BaseJpaService<Mediicinedevice, Medi 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "    t.ratio as ratio,\n" + 
															 | 
															
															 | 
															
																                "    t.ratio as ratio,\n" + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "    t.cargo_capacity as cargoCapacity\n" + 
															 | 
															
															 | 
															
																                "    t.cargo_capacity as cargoCapacity\n" + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "FROM\n" + 
															 | 
															
															 | 
															
																                "FROM\n" + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "    t_mediicine_device AS t where 1=1\n"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                "    t_mediicine_device AS t where 1=1 AND t.del = 1\n"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String conditionSql = ""; 
															 | 
															
															 | 
															
																        String conditionSql = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (!StringUtils.isEmpty(content)){ 
															 | 
															
															 | 
															
																        if (!StringUtils.isEmpty(content)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            conditionSql += " and CONCAT(t.equ_name, t.equ_num) like '%" + content + "%'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            conditionSql += " AND CONCAT(t.equ_name, t.equ_num) like '%" + content + "%'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (!StringUtils.isEmpty(equClass)){ 
															 | 
															
															 | 
															
																        if (!StringUtils.isEmpty(equClass)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            conditionSql += " and t.equ_class = '"+equClass + "'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            conditionSql += " AND t.equ_class = '"+equClass + "'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (!StringUtils.isEmpty(belongCommunity)){ 
															 | 
															
															 | 
															
																        if (!StringUtils.isEmpty(belongCommunity)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            conditionSql += " and t.belong_community = '" + belongCommunity+ "'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            conditionSql += " AND t.belong_community = '" + belongCommunity+ "'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (!StringUtils.isEmpty(networkStatus)){ 
															 | 
															
															 | 
															
																        if (!StringUtils.isEmpty(networkStatus)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            conditionSql += " and t.network_status = '" + networkStatus + "'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            conditionSql += " AND t.network_status = '" + networkStatus + "'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (!StringUtils.isEmpty(saleStatus)){ 
															 | 
															
															 | 
															
																        if (!StringUtils.isEmpty(saleStatus)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            conditionSql += " and t.sale_status = '" + saleStatus + "'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            conditionSql += " AND t.sale_status = '" + saleStatus + "'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        sql = sql + conditionSql; 
															 | 
															
															 | 
															
																        sql = sql + conditionSql; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -938,10 +938,11 @@ public class MedicinedeviceService  extends BaseJpaService<Mediicinedevice, Medi 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                stringObjectMap.put("totalQty", childList.stream().reduce(0, (sum,  p) -> sum += Integer.parseInt(p.get("qty").toString()), Integer::sum)); 
															 | 
															
															 | 
															
																                stringObjectMap.put("totalQty", childList.stream().reduce(0, (sum,  p) -> sum += Integer.parseInt(p.get("qty").toString()), Integer::sum)); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            //历史订单数 
															 | 
															
															 | 
															
																            //历史订单数 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            String secondSql = "SELECT COUNT(DISTINCT(t.id)) FROM t_mediicine_order t WHERE t.shipping_equ = '" + stringObjectMap.get("id").toString() + "'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            stringObjectMap.put("orderQty", jdbcTemplate.queryForObject(secondSql, Integer.class)); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            //总销售额 
															 | 
															
															 | 
															
																            //总销售额 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            secondSql = "SELECT SUM(t.amount) FROM t_mediicine_order t WHERE t.shipping_equ = '" + stringObjectMap.get("id").toString() + "'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            stringObjectMap.put("orderTotalAmount", jdbcTemplate.queryForObject(secondSql, Integer.class)); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 |