统计报表接口,数据梳理接口
This commit is contained in:
@@ -11,6 +11,7 @@ import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @Auther: WangShuo
|
||||
@@ -57,4 +58,14 @@ public class AcceptanceInfoDAO {
|
||||
public List<AcceptanceInfoDO> selectByEntryTimeNull(){
|
||||
return acceptanceInfoMapper.selectByEntryTimeNull();
|
||||
}
|
||||
|
||||
public List<Long> getAllShopIds(){
|
||||
List<AcceptanceInfoDO> acceptanceInfoDOList = acceptanceInfoMapper.selectAll();
|
||||
|
||||
return acceptanceInfoDOList.stream().map(AcceptanceInfoDO::getShopId).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public Integer initAcceptanceInfo(List<Long> shopIds){
|
||||
return acceptanceInfoMapper.initAcceptanceInfo(shopIds);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,4 +36,7 @@ public interface AcceptanceInfoMapper extends Mapper<AcceptanceInfoDO> {
|
||||
* @description:查询进场时间为空的数据
|
||||
*/
|
||||
List<AcceptanceInfoDO> selectByEntryTimeNull();
|
||||
|
||||
|
||||
Integer initAcceptanceInfo(@Param("list") List<Long> shopIds);
|
||||
}
|
||||
@@ -98,6 +98,9 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
|
||||
*/
|
||||
List<ShopInfoDO> selectShopListByRegionId(@Param("regionIds") List<Long> regionIds,@Param("shopSubStage") Integer shopSubStage,@Param("subStageStatus")List<Integer> subStageStatus,@Param("keyWord")String keyWord);
|
||||
|
||||
List<ShopInfoDO> selectShopListByUser(@Param("userId") String userId,@Param("shopSubStage") Integer shopSubStage,@Param("subStageStatus")List<Integer> subStageStatus,@Param("keyWord")String keyWord);
|
||||
|
||||
|
||||
|
||||
List<ShopInfoDO> selectByIdOrSelectAll(@Param("shopId") Long shopId);
|
||||
|
||||
|
||||
@@ -36,6 +36,12 @@
|
||||
create_time,update_time,deleted,plan_acceptance_time,actual_acceptance_time,booking_user,plan_exit_time,
|
||||
ks_account,verification_mobile,shop_location_screenshots,shop_doorway_photo,shop_interior_photo
|
||||
</sql>
|
||||
<insert id="initAcceptanceInfo">
|
||||
<foreach collection="list" index="index" item="item" separator=";">
|
||||
insert into xfsg_acceptance_info (shop_id,create_time,update_time,deleted)
|
||||
values (#{item},now(),now(),0)
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="updateByShopIDSelective">
|
||||
update xfsg_acceptance_info
|
||||
<set>
|
||||
|
||||
@@ -506,6 +506,30 @@
|
||||
</if>
|
||||
and b.actual_complete_time >= #{request.buildStartTime} and b.actual_complete_time <= #{request.buildEndTime}
|
||||
</select>
|
||||
<select id="selectShopListByUser" resultType="com.cool.store.entity.ShopInfoDO">
|
||||
select
|
||||
xsi.id,xsi.line_id as lineId,xsi.region_id as regionId,xsi.shop_name as shopName,xsi.store_num as
|
||||
storeNum,xsi.shop_code as shopCode
|
||||
from xfsg_shop_info xsi
|
||||
left join xfsg_shop_stage_info xssi on xssi.shop_id = xsi.id
|
||||
where
|
||||
xsi.deleted = 0
|
||||
AND xssi.shop_sub_stage_status != -100
|
||||
and xssi.shop_sub_stage = #{shopSubStage}
|
||||
<if test="userId!=null and userId!= ''">
|
||||
and xsi.investment_manager = #{userId}
|
||||
</if>
|
||||
|
||||
<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>
|
||||
<if test="keyWord != null and keyWord != '' ">
|
||||
and xsi.shop_name Like concat("%",#{keyWord},"%") or xsi.store_num Like concat("%",#{keyWord},"%")
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<update id="batchUpdate" parameterType="list">
|
||||
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
||||
|
||||
Reference in New Issue
Block a user