实训时间
This commit is contained in:
@@ -7,6 +7,7 @@ import com.cool.store.enums.point.ShopStageEnum;
|
||||
import com.cool.store.enums.point.ShopSubStageEnum;
|
||||
import com.cool.store.enums.point.ShopSubStageStatusEnum;
|
||||
import com.cool.store.mapper.ShopStageInfoMapper;
|
||||
import com.cool.store.vo.Preparation.PreparationProcessVO;
|
||||
import com.cool.store.vo.shop.RentInfoToDoVO;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
@@ -88,6 +89,13 @@ public class ShopStageInfoDAO {
|
||||
return shopStageInfoMapper.getShopStageInfo(shopId, shopStage);
|
||||
}
|
||||
|
||||
public PreparationProcessVO getPreparationProcess(Long shopId) {
|
||||
if(Objects.isNull(shopId)){
|
||||
return null;
|
||||
}
|
||||
return shopStageInfoMapper.getPreparationProcess(shopId);
|
||||
}
|
||||
|
||||
public Integer getAllCompletionCount(Long shopId) {
|
||||
if(Objects.isNull(shopId)){
|
||||
return 0;
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.cool.store.dto.Preparation.ScheduleDTO;
|
||||
import com.cool.store.entity.ShopStageInfoDO;
|
||||
import com.cool.store.enums.point.ShopSubStageEnum;
|
||||
import com.cool.store.enums.point.ShopSubStageStatusEnum;
|
||||
import com.cool.store.vo.Preparation.PreparationProcessVO;
|
||||
import com.cool.store.vo.shop.RentInfoToDoVO;
|
||||
import com.github.pagehelper.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@@ -35,6 +36,8 @@ public interface ShopStageInfoMapper extends Mapper<ShopStageInfoDO> {
|
||||
*/
|
||||
List<ShopStageInfoDO> getShopStageInfo(@Param("shopId") Long shopId, @Param("shopStage") Integer shopStage);
|
||||
|
||||
PreparationProcessVO getPreparationProcess(@Param("shopId") Long shopId);
|
||||
|
||||
/**
|
||||
* 查询结束阶段的数量
|
||||
* @param shopId
|
||||
|
||||
@@ -58,6 +58,13 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<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
|
||||
from xfsg_shop_stage_info where shop_id = #{shopId}
|
||||
</select>
|
||||
|
||||
<select id="getAllCompletionCount" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
|
||||
Reference in New Issue
Block a user