fix 测量阶段和设计阶段待办
This commit is contained in:
@@ -2,7 +2,9 @@ package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.DecorationDesignInfoDO;
|
||||
import com.cool.store.mapper.DecorationDesignInfoMapper;
|
||||
import com.cool.store.vo.desk.PreparationCommonPendingVO;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
@@ -51,6 +53,13 @@ public class DecorationDesignInfoDAO {
|
||||
return decorationDesignInfoMapper.selectByShopId(shopId);
|
||||
}
|
||||
|
||||
// 根据报价员人员id和店铺阶段 SHOP_SUB_STAGE_STATUS_901 查询店铺信息
|
||||
public List<PreparationCommonPendingVO> getByQuotationUserIdAndShopStage(String userId){
|
||||
if(userId == null){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return decorationDesignInfoMapper.getByQuotationUserIdAndShopStage(userId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.cool.store.dao;
|
||||
import com.cool.store.entity.DecorationDesignInfoDO;
|
||||
import com.cool.store.entity.DecorationMeasureDO;
|
||||
import com.cool.store.mapper.DecorationMeasureMapper;
|
||||
import com.cool.store.utils.StringUtil;
|
||||
import com.cool.store.vo.desk.PreparationCommonPendingVO;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
@@ -59,4 +61,17 @@ public class DecorationMeasureDAO {
|
||||
return decorationMeasureMapper.selectByShopId(shopId);
|
||||
}
|
||||
|
||||
public List<PreparationCommonPendingVO> getByMeasureUserIdAndShopStage(String measureUserId){
|
||||
if (StringUtil.isBlank(measureUserId)){
|
||||
return null;
|
||||
}
|
||||
return decorationMeasureMapper.selectByMeasureUserIdAndShopStage(measureUserId);
|
||||
}
|
||||
//根据设计师和阶段900 查询 店铺id
|
||||
public List<PreparationCommonPendingVO> getShopIdListByDesignUserIdAndShopStage(String userId) {
|
||||
if (StringUtil.isBlank(userId)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return decorationMeasureMapper.getShopIdListByDesignUserIdAndShopStage(userId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.DecorationDesignInfoDO;
|
||||
import com.cool.store.vo.desk.PreparationCommonPendingVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DecorationDesignInfoMapper extends Mapper<DecorationDesignInfoDO> {
|
||||
|
||||
|
||||
@@ -13,4 +17,6 @@ public interface DecorationDesignInfoMapper extends Mapper<DecorationDesignInfoD
|
||||
*/
|
||||
DecorationDesignInfoDO selectByShopId(Long shopId);
|
||||
|
||||
List<PreparationCommonPendingVO> getByQuotationUserIdAndShopStage(@Param("userId") String userId);
|
||||
|
||||
}
|
||||
@@ -1,8 +1,12 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.DecorationMeasureDO;
|
||||
import com.cool.store.vo.desk.PreparationCommonPendingVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DecorationMeasureMapper extends Mapper<DecorationMeasureDO> {
|
||||
|
||||
/**
|
||||
@@ -13,4 +17,7 @@ public interface DecorationMeasureMapper extends Mapper<DecorationMeasureDO> {
|
||||
*/
|
||||
DecorationMeasureDO selectByShopId(Long shopId);
|
||||
|
||||
List<PreparationCommonPendingVO> selectByMeasureUserIdAndShopStage(@Param("measureUserId") String measureUserId);
|
||||
|
||||
List<PreparationCommonPendingVO> getShopIdListByDesignUserIdAndShopStage(@Param("userId") String userId);
|
||||
}
|
||||
@@ -33,10 +33,29 @@
|
||||
*
|
||||
from xfsg_decoration_design_info where shop_id = #{shopId} and deleted = 0
|
||||
</select>
|
||||
<select id="getByQuotationUserIdAndShopStage" resultType="com.cool.store.vo.desk.PreparationCommonPendingVO">
|
||||
select
|
||||
c.shop_name as storeName,
|
||||
c.shop_code as ShopCode,
|
||||
c.shop_address as shopAddress,
|
||||
c.investment_manager as investmentManagerId,
|
||||
c.id as shopId,
|
||||
c.line_id as lineId,
|
||||
c.region_id as regionId,
|
||||
c.store_type as storeType,
|
||||
b.shop_stage as stage,
|
||||
b.shop_sub_stage as subStage,
|
||||
b.shop_sub_stage_status as subStageStatus,
|
||||
b.update_time as updateTime
|
||||
|
||||
|
||||
|
||||
|
||||
from xfsg_decoration_design_info a
|
||||
left join xfsg_shop_stage_info b on a.shop_id = b.shop_id
|
||||
left join xfsg_shop_info c on a.shop_id = c.id
|
||||
where a.quotation_user_id = #{userId}
|
||||
and b.shop_sub_stage_status = 901
|
||||
and c.deleted = 0
|
||||
order by b.update_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -1,32 +1,80 @@
|
||||
<?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.DecorationMeasureMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.DecorationMeasureDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="shop_id" jdbcType="BIGINT" property="shopId" />
|
||||
<result column="measure_user_id" jdbcType="VARCHAR" property="measureUserId" />
|
||||
<result column="design_user_id" jdbcType="VARCHAR" property="designUserId" />
|
||||
<result column="measure_date" jdbcType="TIMESTAMP" property="measureDate" />
|
||||
<result column="diagram_date" jdbcType="TIMESTAMP" property="diagramDate" />
|
||||
<result column="measure_url" jdbcType="VARCHAR" property="measureUrl" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="submit_time" jdbcType="TIMESTAMP" property="submitTime" />
|
||||
<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="create_user_id" jdbcType="VARCHAR" property="createUserId" />
|
||||
<result column="update_user_id" jdbcType="VARCHAR" property="updateUserId" />
|
||||
</resultMap>
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.DecorationMeasureDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id"/>
|
||||
<result column="shop_id" jdbcType="BIGINT" property="shopId"/>
|
||||
<result column="measure_user_id" jdbcType="VARCHAR" property="measureUserId"/>
|
||||
<result column="design_user_id" jdbcType="VARCHAR" property="designUserId"/>
|
||||
<result column="measure_date" jdbcType="TIMESTAMP" property="measureDate"/>
|
||||
<result column="diagram_date" jdbcType="TIMESTAMP" property="diagramDate"/>
|
||||
<result column="measure_url" jdbcType="VARCHAR" property="measureUrl"/>
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark"/>
|
||||
<result column="submit_time" jdbcType="TIMESTAMP" property="submitTime"/>
|
||||
<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="create_user_id" jdbcType="VARCHAR" property="createUserId"/>
|
||||
<result column="update_user_id" jdbcType="VARCHAR" property="updateUserId"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectByShopId" resultMap="BaseResultMap">
|
||||
select
|
||||
id,shop_id,measure_user_id,design_user_id,measure_date,diagram_date,measure_url,remark,
|
||||
submit_time,create_time,update_time,deleted,create_user_id,update_user_id
|
||||
from xfsg_decoration_measure where shop_id = #{shopId} and deleted = 0
|
||||
</select>
|
||||
<select id="selectByShopId" resultMap="BaseResultMap">
|
||||
select
|
||||
id,shop_id,measure_user_id,design_user_id,measure_date,diagram_date,measure_url,remark,
|
||||
submit_time,create_time,update_time,deleted,create_user_id,update_user_id
|
||||
from xfsg_decoration_measure where shop_id = #{shopId} and deleted = 0
|
||||
</select>
|
||||
<select id="selectByMeasureUserIdAndShopStage"
|
||||
resultType="com.cool.store.vo.desk.PreparationCommonPendingVO">
|
||||
|
||||
select
|
||||
c.shop_name as storeName,
|
||||
c.shop_code as ShopCode,
|
||||
c.shop_address as shopAddress,
|
||||
c.investment_manager as investmentManagerId,
|
||||
c.id as shopId,
|
||||
c.line_id as lineId,
|
||||
c.region_id as regionId,
|
||||
c.store_type as storeType,
|
||||
b.shop_stage as stage,
|
||||
b.shop_sub_stage as subStage,
|
||||
b.shop_sub_stage_status as subStageStatus,
|
||||
b.update_time as updateTime
|
||||
|
||||
from xfsg_decoration_measure a
|
||||
left join xfsg_shop_stage_info b on a.shop_id = b.shop_id
|
||||
left join xfsg_shop_info c on a.shop_id = c.id
|
||||
where a.measure_user_id = #{measureUserId}
|
||||
and b.shop_sub_stage_status = 892
|
||||
and c.deleted = 0
|
||||
order by b.update_time desc
|
||||
</select>
|
||||
<select id="getShopIdListByDesignUserIdAndShopStage" resultType="com.cool.store.vo.desk.PreparationCommonPendingVO">
|
||||
select
|
||||
c.shop_name as storeName,
|
||||
c.shop_code as ShopCode,
|
||||
c.shop_address as shopAddress,
|
||||
c.investment_manager as investmentManagerId,
|
||||
c.id as shopId,
|
||||
c.line_id as lineId,
|
||||
c.region_id as regionId,
|
||||
c.store_type as storeType,
|
||||
b.shop_stage as stage,
|
||||
b.shop_sub_stage as subStage,
|
||||
b.shop_sub_stage_status as subStageStatus,
|
||||
b.update_time as updateTime
|
||||
|
||||
from xfsg_decoration_measure a
|
||||
left join xfsg_shop_stage_info b on a.shop_id = b.shop_id
|
||||
left join xfsg_shop_info c on a.shop_id = c.id
|
||||
where a.design_user_id = #{userId}
|
||||
and b.shop_sub_stage_status = 900
|
||||
and c.deleted = 0
|
||||
order by b.update_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user