微信小程序打卡接口
This commit is contained in:
		| @@ -5,6 +5,7 @@ import java.util.List; | ||||
|  | ||||
| import com.stdiet.custom.domain.SysCommision; | ||||
| import com.stdiet.custom.domain.SysCommissionDayDetail; | ||||
| import com.stdiet.custom.domain.SysCustomer; | ||||
| import com.stdiet.custom.domain.SysOrder; | ||||
| import com.stdiet.custom.dto.request.SysOrderCommision; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
| @@ -77,4 +78,11 @@ public interface SysOrderMapper | ||||
|      * @return | ||||
|      */ | ||||
|     List<SysOrder> selectSimpleOrderMessage(SysCommision sysCommision); | ||||
|  | ||||
|     /** | ||||
|      * 查询客户订单数量 | ||||
|      * @param sysCustomer | ||||
|      * @return | ||||
|      */ | ||||
|     int getOrderCountByCustomer(SysCustomer sysCustomer); | ||||
| } | ||||
| @@ -3,6 +3,8 @@ package com.stdiet.custom.service; | ||||
| import java.math.BigDecimal; | ||||
| import java.util.Date; | ||||
| import java.util.List; | ||||
|  | ||||
| import com.stdiet.custom.domain.SysCustomer; | ||||
| import com.stdiet.custom.domain.SysOrder; | ||||
|  | ||||
| /** | ||||
| @@ -75,4 +77,11 @@ public interface ISysOrderService | ||||
|      * @return | ||||
|      */ | ||||
|     int updateOrderServerEndDate(Long orderId, boolean updatePlan); | ||||
|  | ||||
|     /** | ||||
|      * 查询客户订单数量 | ||||
|      * @param sysCustomer | ||||
|      * @return | ||||
|      */ | ||||
|     int getOrderCountByCustomer(SysCustomer sysCustomer); | ||||
| } | ||||
| @@ -4,6 +4,7 @@ import com.stdiet.common.annotation.Excel; | ||||
| import com.stdiet.common.utils.DateUtils; | ||||
| import com.stdiet.common.utils.SecurityUtils; | ||||
| import com.stdiet.common.utils.StringUtils; | ||||
| import com.stdiet.custom.domain.SysCustomer; | ||||
| import com.stdiet.custom.domain.SysOrder; | ||||
| import com.stdiet.custom.mapper.SysOrderMapper; | ||||
| import com.stdiet.custom.service.ISysCommissionDayService; | ||||
| @@ -326,4 +327,13 @@ public class SysOrderServiceImpl implements ISysOrderService { | ||||
|         //删除食谱计划 | ||||
|         sysRecipesPlanService.delRecipesPlanByOrderId(orderIds); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询客户订单数量 | ||||
|      * @param sysCustomer | ||||
|      * @return | ||||
|      */ | ||||
|     public int getOrderCountByCustomer(SysCustomer sysCustomer){ | ||||
|         return sysOrderMapper.getOrderCountByCustomer(sysCustomer); | ||||
|     } | ||||
| } | ||||
| @@ -408,4 +408,16 @@ | ||||
|       order by o.order_time desc | ||||
|     </select> | ||||
|  | ||||
|     <!-- 根据客户信息查询客户的订单列表数量 --> | ||||
|     <select id="getOrderCountByCustomer" parameterType="SysCustomer" resultType="int"> | ||||
|         SELECT count(so.order_id) FROM sys_order so LEFT JOIN sys_customer sc ON sc.id = so.cus_id AND sc.del_flag = 0 | ||||
|         WHERE so.del_flag = 0 | ||||
|         <if test="phone != null and phone != ''"> | ||||
|             and sc.phone = #{phone} | ||||
|         </if> | ||||
|         <if test="id != null"> | ||||
|             and sc.id = #{id} | ||||
|         </if> | ||||
|     </select> | ||||
|  | ||||
| </mapper> | ||||
| @@ -78,7 +78,7 @@ | ||||
|                 </otherwise> | ||||
|             </choose> | ||||
|         </where> | ||||
|         order by log_time asc | ||||
|         order by log_time desc | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectSysWxUserLogById" parameterType="String" resultMap="SysWxUserLogResult"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user