查询实训体验
This commit is contained in:
@@ -20,9 +20,9 @@ public class LeaseBaseInfoDO {
|
|||||||
private Date experienceStartTime;
|
private Date experienceStartTime;
|
||||||
|
|
||||||
private Date experienceEndTime;
|
private Date experienceEndTime;
|
||||||
@ApiModelProperty("体验状态 0完成 1放弃")
|
@ApiModelProperty("体验状态 0完成 1放弃")
|
||||||
private Integer experienceStatus;
|
private Integer experienceStatus;
|
||||||
@ApiModelProperty("放弃原因")
|
@ApiModelProperty("放弃原因")
|
||||||
private String abandonCause;
|
private String abandonCause;
|
||||||
|
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|||||||
@@ -20,4 +20,6 @@ public interface TrainingExperienceService {
|
|||||||
void experienceStatusChange(Long lineId, Integer status, String abandonCause);
|
void experienceStatusChange(Long lineId, Integer status, String abandonCause);
|
||||||
|
|
||||||
LeaseBaseInfoDO getTrainingExperience(Long lineId);
|
LeaseBaseInfoDO getTrainingExperience(Long lineId);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,4 +98,5 @@ public class TrainingExperienceServiceImpl extends LineFlowService implements Tr
|
|||||||
protected Boolean auditClose(Long auditId, LineInfoDO lineInfo) {
|
protected Boolean auditClose(Long auditId, LineInfoDO lineInfo) {
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
package com.cool.store.controller.webc;
|
package com.cool.store.controller.webc;
|
||||||
|
|
||||||
|
import com.cool.store.entity.LeaseBaseInfoDO;
|
||||||
import com.cool.store.request.TrainingExperienceChangeRequest;
|
import com.cool.store.request.TrainingExperienceChangeRequest;
|
||||||
import com.cool.store.response.ResponseResult;
|
import com.cool.store.response.ResponseResult;
|
||||||
import com.cool.store.service.TrainingExperienceService;
|
import com.cool.store.service.TrainingExperienceService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
@@ -29,4 +27,12 @@ public class MiniTrainingExperienceController {
|
|||||||
return ResponseResult.success();
|
return ResponseResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("查询实训体验")
|
||||||
|
@GetMapping("/getStore")
|
||||||
|
public ResponseResult<LeaseBaseInfoDO> getStore(@RequestParam("lineId") Long lineId) {
|
||||||
|
return ResponseResult.success(trainingExperienceService.getTrainingExperience(lineId));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user