|
@@ -31,12 +31,19 @@ import java.util.Map;
|
|
|
**/
|
|
|
public interface DmDayPcRepository extends JpaRepository<DmDayPc, Long>, JpaSpecificationExecutor<DmDayPc> {
|
|
|
|
|
|
- @Query(value = "SELECT DISTINCT a.`pcid`, `pid`, a.`id`, a.`name`, a.`price`, `times`, `cate`, `cate_name`, a.`state`, " +
|
|
|
- " `window`, `window_name`, a.`pstate`, a.`barcode`, a.`no`, a.`goods`, a.`pinyin`, a.`qty_book`, `seq`, `date`, `shopname`,0 as `food.id`,null as `food.code`," +
|
|
|
- "null as `food.name`,null as `food.type`,null as `food.price`,null as `food.picture`,null as `food.remark`," +
|
|
|
- "null as `food.create_by`,null as `food.update_by`,null as `food.create_time`,null as `food.update_time`," +
|
|
|
- "0 as `food.num` FROM dm_day_pc a LEFT JOIN dm_food b ON a.pid=b.id " +
|
|
|
- "WHERE date_format(date,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d') ",nativeQuery = true)
|
|
|
+// @Query(value = "SELECT DISTINCT a.`pcid`, `pid`, a.`id`, a.`name`, a.`price`, `times`, `cate`, `cate_name`, a.`state`, " +
|
|
|
+// " `window`, `window_name`, a.`pstate`, a.`barcode`, a.`no`, a.`goods`, a.`pinyin`, a.`qty_book`, `seq`, `date`, `shopname`,0 as `food.id`,null as `food.code`," +
|
|
|
+// "null as `food.name`,null as `food.type`,null as `food.price`,null as `food.picture`,null as `food.remark`," +
|
|
|
+// "null as `food.create_by`,null as `food.update_by`,null as `food.create_time`,null as `food.update_time`," +
|
|
|
+// "0 as `food.num` FROM dm_day_pc a LEFT JOIN dm_food b ON a.pid=b.id " +
|
|
|
+// "WHERE date_format(date,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d') ",nativeQuery = true)
|
|
|
+// List<DmDayPc> foodRepository();
|
|
|
+
|
|
|
+ @Query(value = "SELECT DISTINCT a.`pcid`, a.`pid`, a.`id`, a.`name`, a.`price`, `times`,a.`cate`, a.`cate_name`, a.`state`, " +
|
|
|
+ "`window`,`window_name`, a.`pstate`, a.`barcode`, a.`no`, a.`goods`, a.`pinyin`, a.`qty_book`, `seq`, `date`, " +
|
|
|
+ "`shopname`,0 as cate_id,0 as pid,NULL as cate_name,null as picture,null as create_by,null as update_by," +
|
|
|
+ "null as create_time,null as update_time FROM dm_day_pc a LEFT JOIN dm_food_cate c ON a.cate = c.cate_id " +
|
|
|
+ "WHERE date_format(date,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')",nativeQuery = true)
|
|
|
List<DmDayPc> foodRepository();
|
|
|
|
|
|
/**
|