实训时间

This commit is contained in:
苏竹红
2024-05-25 18:09:29 +08:00
parent 0ea385ed33
commit 95d3c2230d
7 changed files with 59 additions and 0 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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)