设计阶段bug
This commit is contained in:
@@ -28,8 +28,8 @@ public class DecorationDesignInfoDAO {
|
||||
return decorationDesignInfoMapper.insertSelective(decorationDesignInfoDO);
|
||||
}
|
||||
|
||||
public Integer updateByPrimaryKey(DecorationDesignInfoDO decorationDesignInfoDO){
|
||||
return decorationDesignInfoMapper.updateByPrimaryKey(decorationDesignInfoDO);
|
||||
public Integer updateByPrimaryKeySelective(DecorationDesignInfoDO decorationDesignInfoDO){
|
||||
return decorationDesignInfoMapper.updateByPrimaryKeySelective(decorationDesignInfoDO);
|
||||
}
|
||||
|
||||
public DecorationDesignInfoDO getByShopId(Long shopId){
|
||||
|
||||
@@ -540,7 +540,7 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
DecorationDesignInfoDO decoration = decorationDesignInfoDAO.getByShopId(request.getShopId());
|
||||
if (Objects.nonNull(decoration)){
|
||||
decorationDesignInfoDO.setId(decoration.getId());
|
||||
decorationDesignInfoDAO.updateByPrimaryKey(decorationDesignInfoDO);
|
||||
decorationDesignInfoDAO.updateByPrimaryKeySelective(decorationDesignInfoDO);
|
||||
}else {
|
||||
decorationDesignInfoDAO.insertSelective(decorationDesignInfoDO);
|
||||
}
|
||||
@@ -580,7 +580,7 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
DecorationDesignInfoDO decoration = decorationDesignInfoDAO.getByShopId(request.getShopId());
|
||||
if (Objects.nonNull(decoration)){
|
||||
decorationDesignInfoDO.setId(decoration.getId());
|
||||
decorationDesignInfoDAO.updateByPrimaryKey(decorationDesignInfoDO);
|
||||
decorationDesignInfoDAO.updateByPrimaryKeySelective(decorationDesignInfoDO);
|
||||
}
|
||||
//更新装修设计状态
|
||||
shopStageInfoDAO.batchUpdateShopStageStatus(request.getShopId(), Arrays.asList(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_91, ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_111));
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.cool.store.response.ThreeSignResponse;
|
||||
import com.cool.store.service.DecorationService;
|
||||
import com.cool.store.service.PreparationService;
|
||||
import com.cool.store.service.SeeAcceptanceService;
|
||||
import com.cool.store.vo.DecorationDesignVO;
|
||||
import com.cool.store.vo.Fitment.DesignInfoVo;
|
||||
import com.cool.store.vo.LinePayVO;
|
||||
|
||||
@@ -130,6 +131,12 @@ public class PCDecorationController {
|
||||
return ResponseResult.success(decorationService.submitDecorationDesign(request,CurrentUserHolder.getUser()));
|
||||
}
|
||||
|
||||
@ApiOperation("查询设计方案")
|
||||
@GetMapping("/getDecorationDesign")
|
||||
public ResponseResult<DecorationDesignVO> getDecorationDesign(@RequestParam Long shopId){
|
||||
return ResponseResult.success(decorationService.getDecorationDesign(shopId));
|
||||
}
|
||||
|
||||
@ApiOperation("装修阶段完成")
|
||||
@PostMapping("/confirmComplete")
|
||||
public ResponseResult<Boolean> confirmComplete(@RequestParam Long shopId){
|
||||
|
||||
@@ -124,8 +124,8 @@ public class MiniDecorationController {
|
||||
|
||||
@ApiOperation("加盟商确定设计方案")
|
||||
@PostMapping("/confirmDesign")
|
||||
public ResponseResult<Boolean> confirmDesign(@RequestParam DecorationDesignRequest shopId){
|
||||
return ResponseResult.success(decorationService.confirmDesign(shopId,CurrentUserHolder.getUser()));
|
||||
public ResponseResult<Boolean> confirmDesign(@RequestBody DecorationDesignRequest request){
|
||||
return ResponseResult.success(decorationService.confirmDesign(request,CurrentUserHolder.getUser()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user