Merge #133 into master from cc_20260512_merge_fix
feat:上传租赁合同审批 * cc_20260512_merge_fix: (1 commits squashed) - feat:上传租赁合同审批 Signed-off-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com> CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/133
This commit is contained in:
@@ -63,31 +63,31 @@
|
||||
|
||||
<select id="getPreparationProcess" resultType="com.cool.store.vo.Preparation.PreparationProcessVO">
|
||||
select
|
||||
max(plan_complete_time) as planStartTime,
|
||||
sum(if(is_terminated = 1, 1, 0)) as finishCount
|
||||
max(plan_complete_time) as planStartTime,
|
||||
sum(if(is_terminated = 1, 1, 0)) as finishCount
|
||||
from xfsg_shop_stage_info where shop_id = #{shopId}
|
||||
</select>
|
||||
|
||||
<select id="getAllCompletionCount" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
count(1)
|
||||
from
|
||||
xfsg_shop_stage_info
|
||||
xfsg_shop_stage_info
|
||||
where
|
||||
shop_id = #{shopId} and deleted = 0 and is_terminated = 1
|
||||
and shop_sub_stage in (60,40,120,140,150)
|
||||
shop_id = #{shopId} and deleted = 0 and is_terminated = 1
|
||||
and shop_sub_stage in (60,40,120,140,150)
|
||||
</select>
|
||||
|
||||
<update id="updateShopStageInfo">
|
||||
update
|
||||
xfsg_shop_stage_info
|
||||
xfsg_shop_stage_info
|
||||
set
|
||||
shop_sub_stage_status = #{shopSubStageStatus},
|
||||
is_terminated = #{isTerminated},
|
||||
remark = #{remark},
|
||||
actual_complete_time = if(is_terminated, now(), null)
|
||||
shop_sub_stage_status = #{shopSubStageStatus},
|
||||
is_terminated = #{isTerminated},
|
||||
remark = #{remark},
|
||||
actual_complete_time = if(is_terminated, now(), null)
|
||||
where
|
||||
shop_id = #{shopId} and shop_sub_stage = #{shopSubStage}
|
||||
shop_id = #{shopId} and shop_sub_stage = #{shopSubStage}
|
||||
</update>
|
||||
|
||||
|
||||
@@ -116,28 +116,28 @@
|
||||
|
||||
<update id="updateShopStageAndAuditInfo">
|
||||
update
|
||||
xfsg_shop_stage_info
|
||||
xfsg_shop_stage_info
|
||||
set
|
||||
shop_sub_stage_status = #{shopSubStageStatus},
|
||||
is_terminated = #{isTerminated},
|
||||
remark = #{remark},
|
||||
actual_complete_time = if(is_terminated, now(), null),
|
||||
audit_id = #{auditId}
|
||||
shop_sub_stage_status = #{shopSubStageStatus},
|
||||
is_terminated = #{isTerminated},
|
||||
remark = #{remark},
|
||||
actual_complete_time = if(is_terminated, now(), null),
|
||||
audit_id = #{auditId}
|
||||
where
|
||||
shop_id = #{shopId} and shop_sub_stage = #{shopSubStage}
|
||||
shop_id = #{shopId} and shop_sub_stage = #{shopSubStage}
|
||||
</update>
|
||||
|
||||
<update id="updateShopStageToNotStarted">
|
||||
update
|
||||
xfsg_shop_stage_info
|
||||
xfsg_shop_stage_info
|
||||
set
|
||||
shop_sub_stage_status = -100,
|
||||
is_terminated = 0,
|
||||
remark = '未开始',
|
||||
actual_complete_time = null,
|
||||
audit_id = null
|
||||
shop_sub_stage_status = -100,
|
||||
is_terminated = 0,
|
||||
remark = '未开始',
|
||||
actual_complete_time = null,
|
||||
audit_id = null
|
||||
where
|
||||
shop_id = #{shopId} and shop_sub_stage = #{shopSubStage}
|
||||
shop_id = #{shopId} and shop_sub_stage = #{shopSubStage}
|
||||
</update>
|
||||
<update id="updateByShopId">
|
||||
update xfsg_shop_stage_info
|
||||
@@ -244,9 +244,9 @@
|
||||
inner join xfsg_line_info b on a.line_id = b.id
|
||||
left join xfsg_shop_info c on a.shop_id = c.id
|
||||
where c.deleted=0
|
||||
and a.shop_sub_stage = #{shopSubStage}
|
||||
and a.deleted = 0
|
||||
and b.deleted = 0
|
||||
and a.shop_sub_stage = #{shopSubStage}
|
||||
and a.deleted = 0
|
||||
and b.deleted = 0
|
||||
<if test="shopSubStageStatusList != null and shopSubStageStatusList.size() > 0">
|
||||
and a.shop_sub_stage_status in
|
||||
<foreach collection="shopSubStageStatusList" item="shopSubStageStatus" index="index" open="(" separator="," close=")">
|
||||
@@ -307,12 +307,12 @@
|
||||
</select>
|
||||
<select id="getShopContractIncompletion" resultType="java.lang.Long">
|
||||
SELECT
|
||||
shop_id
|
||||
shop_id
|
||||
FROM
|
||||
xfsg_shop_stage_info
|
||||
xfsg_shop_stage_info
|
||||
WHERE
|
||||
shop_sub_stage = 110
|
||||
AND (shop_sub_stage_status = 1100 OR shop_sub_stage_status = 1110)
|
||||
shop_sub_stage = 110
|
||||
AND (shop_sub_stage_status = 1100 OR shop_sub_stage_status = 1110)
|
||||
</select>
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@
|
||||
select
|
||||
*
|
||||
from xfsg_shop_stage_info a
|
||||
left join xfsg_shop_info si on a.shop_id = si.id
|
||||
left join xfsg_shop_info si on a.shop_id = si.id
|
||||
<if test="request.signTypes != null and request.signTypes.size() >0">
|
||||
left join xfsg_sign_franchise sign on a.shop_id = sign.shop_id
|
||||
</if>
|
||||
@@ -334,9 +334,9 @@
|
||||
</if>
|
||||
<if test="shopSubStage!=null">
|
||||
and a.shop_sub_stage = #{shopSubStage}
|
||||
<if test = "shopSubStage == 86 or shopSubStage == 90 or shopSubStage == 110 or shopSubStage == 120">
|
||||
and (si.hqt_shop_id is null or si.hqt_shop_id = '')
|
||||
</if>
|
||||
<if test = "shopSubStage == 86 or shopSubStage == 90 or shopSubStage == 110 or shopSubStage == 120">
|
||||
and (si.hqt_shop_id is null or si.hqt_shop_id = '')
|
||||
</if>
|
||||
</if>
|
||||
<if test="shopSubStageStatusList != null and shopSubStageStatusList.size() > 0">
|
||||
and a.shop_sub_stage_status in
|
||||
@@ -510,7 +510,7 @@
|
||||
|
||||
<select id="getShopCountByLineIdAndStageStatus" resultType="integer">
|
||||
select count(1) from xfsg_shop_stage_info where shop_stage = #{shopStage} and shop_sub_stage = #{shopSubStage}
|
||||
and shop_sub_stage_status = #{shopSubStageStatus} and line_id = #{lineId}
|
||||
and shop_sub_stage_status = #{shopSubStageStatus} and line_id = #{lineId}
|
||||
</select>
|
||||
<select id="getSubStageListBySubStageStatus" resultType="com.cool.store.entity.ShopStageInfoDO">
|
||||
select *
|
||||
@@ -600,22 +600,22 @@
|
||||
</select>
|
||||
<select id="getScheduleAll" resultType="com.cool.store.dto.Preparation.ScheduleDTO">
|
||||
select
|
||||
shop_id as shopId,
|
||||
max(plan_complete_time) as planCompleteTime,
|
||||
count(1)-1 as totalColumn,
|
||||
sum(if(is_terminated = 1 and shop_sub_stage!=85, 1, 0)) as completionColumn
|
||||
shop_id as shopId,
|
||||
max(plan_complete_time) as planCompleteTime,
|
||||
count(1)-1 as totalColumn,
|
||||
sum(if(is_terminated = 1 and shop_sub_stage!=85, 1, 0)) as completionColumn
|
||||
from xfsg_shop_stage_info where shop_stage = 2 and
|
||||
shop_id = #{shopId}
|
||||
shop_id = #{shopId}
|
||||
|
||||
|
||||
</select>
|
||||
<select id="getCompletionCount" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
count(1)
|
||||
from
|
||||
xfsg_shop_stage_info
|
||||
xfsg_shop_stage_info
|
||||
where
|
||||
shop_id = #{shopId} and deleted = 0 and is_terminated = 1 and shop_stage in (1,2)
|
||||
shop_id = #{shopId} and deleted = 0 and is_terminated = 1 and shop_stage in (1,2)
|
||||
</select>
|
||||
<select id="getShopSubStages" resultType="com.cool.store.entity.ShopStageInfoDO">
|
||||
select shop_id as shopId,
|
||||
|
||||
Reference in New Issue
Block a user