Merge remote-tracking branch 'xfsg/cc_partner_init' into cc_partner_init
This commit is contained in:
@@ -65,6 +65,7 @@ public class ShopStageInfoDAO {
|
||||
addShopStageList.add(shopStageInfo);
|
||||
}
|
||||
}
|
||||
//发送短信
|
||||
return shopStageInfoMapper.batchInsert(addShopStageList);
|
||||
}
|
||||
|
||||
@@ -229,5 +230,16 @@ public class ShopStageInfoDAO {
|
||||
List<Integer> shopSubStageStatusList,String investmentUserId,Integer queryUserType){
|
||||
return shopStageInfoMapper.getSpecialShopStageInfo( shopIds, shopSubStage, shopSubStageStatusList,investmentUserId,queryUserType);
|
||||
}
|
||||
/**
|
||||
* @Auther: wangshuo
|
||||
* @Date: 2024/5/9
|
||||
* @description:获取处于XXXX阶段的列表
|
||||
*/
|
||||
public List<ShopStageInfoDO> getSubStageList(List<Long> shopIds, Integer shopSubStage){
|
||||
if(CollectionUtils.isEmpty(shopIds) || shopSubStage == null){
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return shopStageInfoMapper.getSubStageList(shopIds,shopSubStage);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ public interface AssessmentDataMapper extends Mapper<AssessmentDataDO> {
|
||||
* @Date: 2024/5/8
|
||||
* @description:三方验收
|
||||
*/
|
||||
Integer batchUpdate(List<AssessmentDataDO> AssessmentDataDOS);
|
||||
Integer batchUpdate(@Param("AssessmentDataDOS") List<AssessmentDataDO> AssessmentDataDOS);
|
||||
/**
|
||||
* @Auther: wangshuo
|
||||
* @Date: 2024/5/8
|
||||
|
||||
@@ -84,7 +84,7 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
|
||||
/**
|
||||
* @Auther: wangshuo
|
||||
* @Date: 2024/5/3
|
||||
* @description:根据区域id查询所有处于的店铺
|
||||
* @description:根据区域id查询所有处于XXX的店铺
|
||||
*/
|
||||
List<ShopInfoDO> selectShopListByRegionId(@Param("regionIds") List<Long> regionIds,@Param("status")Integer status);
|
||||
List<ShopInfoDO> selectShopListByRegionId(@Param("regionIds") List<Long> regionIds,@Param("subStageStatus")List<Integer> subStageStatus);
|
||||
}
|
||||
|
||||
@@ -130,5 +130,5 @@ public interface ShopStageInfoMapper extends Mapper<ShopStageInfoDO> {
|
||||
@Param("shopSubStageStatusList") List<Integer> shopSubStageStatusList,
|
||||
@Param("investmentUserId") String investmentUserId,
|
||||
@Param("queryUserType") Integer queryUserType);
|
||||
|
||||
List<ShopStageInfoDO> getSubStageList(@Param("shopIds") List<Long> shopIds,@Param("shopSubStage") Integer shopSubStage);
|
||||
}
|
||||
|
||||
@@ -1,76 +1,92 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cool.store.mapper.AcceptanceInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.AcceptanceInfoDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="shop_id" jdbcType="BIGINT" property="shopId" />
|
||||
<result column="actual_entry_time" jdbcType="TIMESTAMP" property="actualEntryTime" />
|
||||
<result column="planned_completion_time" jdbcType="TIMESTAMP" property="plannedCompletionTime" />
|
||||
<result column="planned_start_time" jdbcType="TIMESTAMP" property="plannedStartTime" />
|
||||
<result column="decoration_planned_completion_time" jdbcType="TIMESTAMP" property="decorationPlannedCompletionTime" />
|
||||
<result column="decoration_planned_start_time" jdbcType="TIMESTAMP" property="decorationPlannedStartTime" />
|
||||
<result column="construction_completion_time" jdbcType="TIMESTAMP" property="constructionCompletionTime" />
|
||||
<result column="engineering_acceptance_signatures" jdbcType="VARCHAR" property="engineeringAcceptanceSignatures" />
|
||||
<result column="operations_acceptance_signatures" jdbcType="VARCHAR" property="operationsAcceptanceSignatures" />
|
||||
<result column="partner_acceptance_signatures" jdbcType="VARCHAR" property="partnerAcceptanceSignatures" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
</resultMap>
|
||||
<sql id="baseColumn">
|
||||
id,shop_id,actual_entry_time,planned_completion_time,planned_start_time,decoration_planned_completion_time,
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.AcceptanceInfoDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="shop_id" jdbcType="BIGINT" property="shopId"/>
|
||||
<result column="actual_entry_time" jdbcType="TIMESTAMP" property="actualEntryTime"/>
|
||||
<result column="planned_completion_time" jdbcType="TIMESTAMP" property="plannedCompletionTime"/>
|
||||
<result column="planned_start_time" jdbcType="TIMESTAMP" property="plannedStartTime"/>
|
||||
<result column="decoration_planned_completion_time" jdbcType="TIMESTAMP"
|
||||
property="decorationPlannedCompletionTime"/>
|
||||
<result column="decoration_planned_start_time" jdbcType="TIMESTAMP" property="decorationPlannedStartTime"/>
|
||||
<result column="construction_completion_time" jdbcType="TIMESTAMP" property="constructionCompletionTime"/>
|
||||
<result column="engineering_acceptance_signatures" jdbcType="VARCHAR"
|
||||
property="engineeringAcceptanceSignatures"/>
|
||||
<result column="operations_acceptance_signatures" jdbcType="VARCHAR" property="operationsAcceptanceSignatures"/>
|
||||
<result column="partner_acceptance_signatures" jdbcType="VARCHAR" property="partnerAcceptanceSignatures"/>
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
||||
<result column="deleted" jdbcType="BIT" property="deleted"/>
|
||||
<result column="plan_acceptance_time" jdbcType="TIMESTAMP" property="planAcceptanceTime"/>
|
||||
<result column="actual_acceptance_time" jdbcType="TIMESTAMP" property="actualAcceptanceTime"/>
|
||||
<result column="booking_user" jdbcType="VARCHAR" property="bookingUser"/>
|
||||
</resultMap>
|
||||
<sql id="baseColumn">
|
||||
id
|
||||
,shop_id,actual_entry_time,planned_completion_time,planned_start_time,decoration_planned_completion_time,
|
||||
decoration_planned_start_time,construction_completion_time,engineering_acceptance_signatures,
|
||||
operations_acceptance_signatures,partner_acceptance_signatures,
|
||||
create_time,update_time,deleted
|
||||
</sql>
|
||||
<update id="updateByShopIDSelective">
|
||||
update xfsg_acceptance_info
|
||||
<set>
|
||||
<if test="actualEntryTime != null">
|
||||
actual_entry_time = #{actualEntryTime} ,
|
||||
</if>
|
||||
<if test="plannedCompletionTime != null">
|
||||
planned_completion_time = #{plannedCompletionTime} ,
|
||||
</if>
|
||||
<if test="plannedStartTime != null">
|
||||
planned_start_time = #{plannedStartTime} ,
|
||||
</if>
|
||||
<if test="decorationPlannedCompletionTime != null">
|
||||
decoration_planned_completion_time = #{decorationPlannedCompletionTime} ,
|
||||
</if>
|
||||
<if test="decorationPlannedStartTime != null">
|
||||
decoration_planned_start_time = #{decorationPlannedStartTime} ,
|
||||
</if>
|
||||
<if test="constructionCompletionTime != null">
|
||||
construction_completion_time = #{constructionCompletionTime} ,
|
||||
</if>
|
||||
<if test="engineeringAcceptanceSignatures != null">
|
||||
engineering_acceptance_signatures = #{engineeringAcceptanceSignatures} ,
|
||||
</if>
|
||||
<if test="operationsAcceptanceSignatures != null">
|
||||
operations_acceptance_signatures = #{operationsAcceptanceSignatures} ,
|
||||
</if>
|
||||
<if test="partnerAcceptanceSignatures != null">
|
||||
partner_acceptance_signatures = #{partnerAcceptanceSignatures} ,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime} ,
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
deleted = #{deleted} ,
|
||||
</if>
|
||||
</set>
|
||||
where shop_id = #{shopId}
|
||||
</update>
|
||||
<select id="selectShopIdListBySignatures" resultType="com.cool.store.entity.AcceptanceInfoDO">
|
||||
select <include refid="baseColumn"/>
|
||||
from xfsg_acceptance_info a
|
||||
left join join xfsg_shop_stage_info b on a.shop_id = b.shop_id
|
||||
where b.shop_sub_stage_status = #{status} and a.deleted = 0
|
||||
</select>
|
||||
create_time,update_time,deleted,plan_acceptance_time,actual_acceptance_time,booking_user
|
||||
</sql>
|
||||
<update id="updateByShopIDSelective">
|
||||
update xfsg_acceptance_info
|
||||
<set>
|
||||
<if test="actualEntryTime != null">
|
||||
actual_entry_time = #{actualEntryTime} ,
|
||||
</if>
|
||||
<if test="plannedCompletionTime != null">
|
||||
planned_completion_time = #{plannedCompletionTime} ,
|
||||
</if>
|
||||
<if test="plannedStartTime != null">
|
||||
planned_start_time = #{plannedStartTime} ,
|
||||
</if>
|
||||
<if test="decorationPlannedCompletionTime != null">
|
||||
decoration_planned_completion_time = #{decorationPlannedCompletionTime} ,
|
||||
</if>
|
||||
<if test="decorationPlannedStartTime != null">
|
||||
decoration_planned_start_time = #{decorationPlannedStartTime} ,
|
||||
</if>
|
||||
<if test="constructionCompletionTime != null">
|
||||
construction_completion_time = #{constructionCompletionTime} ,
|
||||
</if>
|
||||
<if test="engineeringAcceptanceSignatures != null">
|
||||
engineering_acceptance_signatures = #{engineeringAcceptanceSignatures} ,
|
||||
</if>
|
||||
<if test="operationsAcceptanceSignatures != null">
|
||||
operations_acceptance_signatures = #{operationsAcceptanceSignatures} ,
|
||||
</if>
|
||||
<if test="partnerAcceptanceSignatures != null">
|
||||
partner_acceptance_signatures = #{partnerAcceptanceSignatures} ,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime} ,
|
||||
</if>
|
||||
<if test="deleted != null">
|
||||
deleted = #{deleted} ,
|
||||
</if>
|
||||
<if test="planAcceptanceTime !=null ">
|
||||
plan_acceptance_time =#{planAcceptanceTime},
|
||||
</if>
|
||||
<if test="actualAcceptanceTime !=null ">
|
||||
actual_acceptance_time =#{actualAcceptanceTime},
|
||||
</if>
|
||||
<if test="bookingUser !=null ">
|
||||
booking_user =#{bookingUser},
|
||||
</if>
|
||||
</set>
|
||||
where shop_id = #{shopId}
|
||||
</update>
|
||||
<select id="selectShopIdListBySignatures" resultType="com.cool.store.entity.AcceptanceInfoDO">
|
||||
select
|
||||
<include refid="baseColumn"/>
|
||||
from xfsg_acceptance_info a
|
||||
left join join xfsg_shop_stage_info b on a.shop_id = b.shop_id
|
||||
where b.shop_sub_stage_status = #{status} and a.deleted = 0
|
||||
</select>
|
||||
<select id="selectByShopId" resultType="com.cool.store.entity.AcceptanceInfoDO">
|
||||
select
|
||||
<include refid="baseColumn"/>
|
||||
@@ -90,9 +106,9 @@
|
||||
where deleted = 0
|
||||
<if test="shopIds != null and shopIds.size()>0">
|
||||
and shop_id in
|
||||
<foreach collection="shopIds" item="shopId" open="(" separator="," close=")">
|
||||
#{shopId}
|
||||
</foreach>
|
||||
<foreach collection="shopIds" item="shopId" open="(" separator="," close=")">
|
||||
#{shopId}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -52,27 +52,29 @@
|
||||
, comments=values(comments), picture=values(picture), video=values(video)
|
||||
</insert>
|
||||
<update id="batchUpdate">
|
||||
update xfsg_assessment_data
|
||||
<set>
|
||||
qualified = CASE id
|
||||
<foreach collection="AssessmentDataDOS" separator=" " item="item">
|
||||
WHEN #{item.id} THEN #{item.qualified}
|
||||
</foreach>,
|
||||
reason = CASE id
|
||||
<foreach collection="AssessmentDataDOS" separator=" " item="item">
|
||||
WHEN #{item.id} THEN #{item.reason}
|
||||
</foreach>,
|
||||
comments = CASE id
|
||||
<foreach collection="AssessmentDataDOS" separator=" " item="item">
|
||||
WHEN #{item.id} THEN #{item.comments}
|
||||
update xfsg_assessment_data
|
||||
<set>
|
||||
qualified = CASE id
|
||||
<foreach collection="AssessmentDataDOS" separator=" " item="item">
|
||||
WHEN #{item.id} THEN #{item.qualified}
|
||||
</foreach>
|
||||
END,
|
||||
reason = CASE id
|
||||
<foreach collection="AssessmentDataDOS" separator=" " item="item">
|
||||
WHEN #{item.id} THEN #{item.reason}
|
||||
</foreach>
|
||||
END,
|
||||
comments = CASE id
|
||||
<foreach collection="AssessmentDataDOS" separator=" " item="item">
|
||||
WHEN #{item.id} THEN #{item.comments}
|
||||
</foreach>
|
||||
END
|
||||
</set>
|
||||
where id in (
|
||||
<foreach collection="AssessmentDataDOS" item="item" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
END
|
||||
</set>
|
||||
where id in (
|
||||
<foreach collection="addShopStageList" item="item" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
)
|
||||
)
|
||||
</update>
|
||||
|
||||
<select id="selectListByShopId" resultType="com.cool.store.entity.AssessmentDataDO">
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
e.training_store_id as trainingStoreId,
|
||||
e.estimated_assessment_time as estimatedAssessmentTime,
|
||||
e.actual_assessment_time as actualAssessmentTime,
|
||||
e.assign_flag as assignFlag
|
||||
ifnull(e.assign_flag,0) as assignFlag
|
||||
from xfsg_temp_user_detail u
|
||||
left join xfsg_employee_training e on e.xfsg_user_detail_id = u.id
|
||||
left join xfsg_shop_info s on s.id = u.shop_id
|
||||
@@ -74,9 +74,12 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="assignFlag != null">
|
||||
<if test="assignFlag != null and assignFlag == 1">
|
||||
and e.assign_flag = #{assignFlag}
|
||||
</if>
|
||||
<if test="assignFlag != null and assignFlag == 0">
|
||||
and e.assign_flag is null
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime != ''">
|
||||
and u.register_time >= #{beginTime}
|
||||
</if>
|
||||
@@ -101,8 +104,11 @@
|
||||
<if test="assessmentStatus != null and assessmentStatus == 1">
|
||||
and e.assessment_total_num = e.assessment_num
|
||||
</if>
|
||||
<if test="assignStoreFlag != null">
|
||||
and s.store_num not null
|
||||
<if test="assignStoreFlag != null and assignStoreFlag == 1">
|
||||
and s.store_num is not null
|
||||
</if>
|
||||
<if test="assignStoreFlag != null and assignStoreFlag == 0">
|
||||
and s.store_num is null
|
||||
</if>
|
||||
</select>
|
||||
<select id="trainingListByShopId" resultType="com.cool.store.vo.EmployeeTrainingVO">
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<select id="selectByShopId" resultType="com.cool.store.dto.openPreparation.FirstOrderDTO">
|
||||
select id, total_order_deposit as totalOrderDeposit, latest_payment_date as latestPaymentDate ,
|
||||
estimated_cost as estimatedCost ,fruits_cost as fruitsCost
|
||||
select *
|
||||
from xfsg_first_order
|
||||
where shop_id = #{shopId}
|
||||
</select>
|
||||
|
||||
@@ -162,8 +162,11 @@
|
||||
</if>
|
||||
AND xssi.shop_sub_stage_status != -100
|
||||
and xssi.shop_sub_stage = 120
|
||||
<if test="status != null">
|
||||
and xssi.shop_sub_stage_status = #{status}
|
||||
<if test="subStageStatus != null and subStageStatus.size()>0">
|
||||
and xssi.shop_sub_stage_status in
|
||||
<foreach collection="subStageStatus" item="item" index="index" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -252,4 +252,18 @@
|
||||
</where>
|
||||
|
||||
</select>
|
||||
<select id="getSubStageList" resultType="com.cool.store.entity.ShopStageInfoDO">
|
||||
select *
|
||||
from xfsg_shop_stage_info
|
||||
where 1=1
|
||||
<if test="shopIds !=null and shopIds.size()>0">
|
||||
and shop_id in
|
||||
<foreach collection="shopIds" item="shopId" index="index" open="(" separator="," close=")">
|
||||
#{shopId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="shopSubStage !=null">
|
||||
and shop_sub_stage =#{shopSubStage}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user