客户健康信息修改
This commit is contained in:
@ -153,7 +153,7 @@
|
||||
from sys_customer_healthy as sch
|
||||
left join sys_customer sc on sc.id = sch.customer_id
|
||||
LEFT JOIN (SELECT dict_label, dict_value FROM sys_dict_data WHERE dict_type = 'conditioning_project') AS cp ON cp.dict_value = sch.conditioning_project_id
|
||||
where sch.del_flag = 0 and sc.del_flag = 0 and sch.customer_id = #{customerId}
|
||||
where sch.del_flag = 0 and sc.del_flag = 0 and sch.customer_id = #{customerId} order by sch.id desc limit 1
|
||||
</select>
|
||||
|
||||
<insert id="insertSysCustomerHealthy" parameterType="SysCustomerHealthy">
|
||||
|
@ -69,7 +69,9 @@
|
||||
|
||||
<!-- 根据客户ID查询用户体征 -->
|
||||
<select id="selectSysCustomerPhysicalSignsByCusId" parameterType="Long" resultMap="SysCustomerSignResult">
|
||||
<include refid="selectSysCustomerPhysicalSigns"/> where scps.del_flag = 0 and sc.del_flag = 0 and scps.customer_id = #{id}
|
||||
<include refid="selectSysCustomerPhysicalSigns"/>
|
||||
where scps.del_flag = 0 and sc.del_flag = 0 and scps.customer_id = #{id}
|
||||
order by scps.id desc limit 1
|
||||
</select>
|
||||
|
||||
<insert id="insertSysCustomerPhysicalSigns" parameterType="SysCustomerPhysicalSigns" useGeneratedKeys="true" keyProperty="id">
|
||||
|
@ -327,9 +327,9 @@
|
||||
<if test="userId != null">
|
||||
and (su_sale.user_id = #{userId} or su_nutritionist.user_id = #{userId})
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime != ''">
|
||||
<!--<if test="beginTime != null and beginTime != ''">
|
||||
AND o.order_time >= #{beginTime}
|
||||
</if>
|
||||
</if>-->
|
||||
<if test="endTime != null and endTime != ''">
|
||||
AND DATE_FORMAT(o.order_time,'%Y-%m-%d') <= #{endTime}
|
||||
</if>
|
||||
|
Reference in New Issue
Block a user