开业筹备阶段3.0
This commit is contained in:
@@ -28,6 +28,11 @@
|
||||
shop_id,plan_source,submitted_user_id,submission_time,survey_result,survey_result_url,activity_theme,activity_theme_url,preparation_user_ids,
|
||||
route_completed,deleted,audit_id,result_type
|
||||
</sql>
|
||||
<update id="updateByShopId">
|
||||
update xfsg_opening_operation_plan
|
||||
set audit_id = #{auditId},result_type = #{resultType}
|
||||
where shop_id = #{shopId}
|
||||
</update>
|
||||
|
||||
<select id="selectByShopId" resultType="com.cool.store.entity.OpeningOperationPlanDO">
|
||||
select
|
||||
@@ -38,19 +43,19 @@
|
||||
and
|
||||
deleted = 0
|
||||
</select>
|
||||
<select id="selectPlanListByShopId" resultType="com.cool.store.dto.openPreparation.OpeningOperationPlanDTO">
|
||||
SELECT op.shop_id AS shopId, op.update_time AS updateTime, op.result_type AS resultType
|
||||
<select id="selectPlanList" resultType="com.cool.store.dto.openPreparation.OpeningOperationPlanDTO">
|
||||
SELECT op.shop_id AS shopId, op.submission_time AS submissionTime, op.result_type AS resultType
|
||||
op.audit_id as auditId
|
||||
FROM xfsg_opening_operation_plan op
|
||||
JOIN xfsg_shop_info si ON op.shop_id = si.id
|
||||
where
|
||||
<if test="openingOperationPlanDTO.planStartDate != null">
|
||||
op.create_time >= #{openingOperationPlanDTO.planStartDate}
|
||||
op.create_time >= #{startDate}
|
||||
</if>
|
||||
<if test="openingOperationPlanDTO.planEndDate != null">
|
||||
<![CDATA[AND op.create_time <= #{openingOperationPlanDTO.planEndDate}]]>
|
||||
<![CDATA[AND op.create_time <= #{endDate}]]>
|
||||
</if>
|
||||
<if test="openingOperationPlanDTO.resultType != null">
|
||||
and op.result_type = #{openingOperationPlanDTO.resultType}
|
||||
and op.result_type = #{resultType}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user