fix 测量阶段和设计阶段待办
This commit is contained in:
@@ -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