1
This commit is contained in:
@@ -31,7 +31,7 @@ public interface OrderRowRepository extends JpaRepository<OrderRow, String> {
|
||||
|
||||
// 查找 validCode != 15 或者 !=-1 的订单行 ,并且按orderTime 降序
|
||||
@Query("select o from OrderRow o where o.validCode not in ?1 order by o.orderTime DESC")
|
||||
List<OrderRow> findByValidCodeNotInOrderByOrderTimeDesc(int[] validCodes);
|
||||
List<OrderRow> findByValidCodeNotInOrderByOrderTimeDescAndUnionId(int[] validCodes,Long unionId);
|
||||
|
||||
@Query("select o from OrderRow o where o.validCode not in ?1 and o.orderTime >= ?2 order by o.orderTime DESC")
|
||||
List<OrderRow> findByValidCodeNotInAndOrderTimeGreaterThanOrderByOrderTimeDesc(
|
||||
|
||||
@@ -33,6 +33,8 @@ import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import static cn.van.business.util.WXUtil.super_admins;
|
||||
|
||||
/**
|
||||
* @author Leo
|
||||
* @version 1.0
|
||||
@@ -494,7 +496,9 @@ public class JDUtils {
|
||||
*/
|
||||
public void sendOrderToWxByOrderJD(String order,String fromWxid) {
|
||||
int[] param = {-1};
|
||||
List<OrderRow> orderRows = orderRowRepository.findByValidCodeNotInOrderByOrderTimeDesc(param);
|
||||
WXUtil.SuperAdmin superAdmin = super_admins.get(fromWxid);
|
||||
String unionId = superAdmin.getUnionId();
|
||||
List<OrderRow> orderRows = orderRowRepository.findByValidCodeNotInOrderByOrderTimeDescAndUnionId(param, Long.valueOf(unionId));
|
||||
/**
|
||||
* 菜单:
|
||||
* 今日统计
|
||||
@@ -794,8 +798,11 @@ public class JDUtils {
|
||||
* 高级菜单
|
||||
*/
|
||||
public void sendOrderToWxByOrderJDAdvanced(String order,String fromWxid) {
|
||||
int[] parm = {-1};
|
||||
List<OrderRow> orderRows = orderRowRepository.findByValidCodeNotInOrderByOrderTimeDesc(parm);
|
||||
int[] param = {-1};
|
||||
WXUtil.SuperAdmin superAdmin = super_admins.get(fromWxid);
|
||||
String unionId = superAdmin.getUnionId();
|
||||
List<OrderRow> orderRows = orderRowRepository.findByValidCodeNotInOrderByOrderTimeDescAndUnionId(param, Long.valueOf(unionId));
|
||||
|
||||
|
||||
StringBuilder content = new StringBuilder();
|
||||
if (order.startsWith("高级")) {
|
||||
|
||||
Reference in New Issue
Block a user