开业筹备阶段4.0

This commit is contained in:
shuo.wang
2024-04-26 19:08:34 +08:00
parent a5ca7a3a63
commit 9e4de953c4
13 changed files with 48 additions and 49 deletions

View File

@@ -25,8 +25,9 @@
<result column="result_type" jdbcType="TINYINT" property="resultType"/>
</resultMap>
<sql id="Base_Column_List">
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
id,shop_id,plan_source,survey_result,survey_result_url,activity_theme,activity_theme_url,
submission_time,submitted_user_id,preparation_user_ids,route_completed,create_time,
update_time,create_user_id,update_user_id,deleted,audit_id,result_type
</sql>
<update id="updateByShopId">
update xfsg_opening_operation_plan
@@ -44,17 +45,17 @@
deleted = 0
</select>
<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
where
<if test="openingOperationPlanDTO.planStartDate != null">
op.create_time >= #{startDate}
SELECT shop_id AS shopId, submission_time AS submissionTime, result_type AS resultType,
audit_id as auditId
FROM xfsg_opening_operation_plan
where 1=1
<if test="startDate != null">
and op.create_time >= #{startDate}
</if>
<if test="openingOperationPlanDTO.planEndDate != null">
<![CDATA[AND op.create_time <= #{endDate}]]>
<if test="endDate != null">
AND op.create_time &lt;= #{endDate}
</if>
<if test="openingOperationPlanDTO.resultType != null">
<if test="resultType != null">
and op.result_type = #{resultType}
</if>