diff --git a/src/main/java/com/sztzjy/linkCommerce/controller/stu/CptfController.java b/src/main/java/com/sztzjy/linkCommerce/controller/stu/CptfController.java new file mode 100644 index 0000000..1bc24b1 --- /dev/null +++ b/src/main/java/com/sztzjy/linkCommerce/controller/stu/CptfController.java @@ -0,0 +1,213 @@ +package com.sztzjy.linkCommerce.controller.stu; + +import cn.hutool.core.util.IdUtil; +import com.sztzjy.linkCommerce.annotation.AnonymousAccess; +import com.sztzjy.linkCommerce.config.Constant; +import com.sztzjy.linkCommerce.entity.*; +import com.sztzjy.linkCommerce.mapper.*; +import com.sztzjy.linkCommerce.service.ScoreService; +import com.sztzjy.linkCommerce.util.CompareListsUtil; +import com.sztzjy.linkCommerce.util.ResultEntity; +import com.sztzjy.linkCommerce.util.file.IFileUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.http.HttpStatus; +import org.springframework.util.CollectionUtils; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.annotation.Resource; +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; +import java.util.UUID; + +/** + * @author 17803 + * @date 2025-04-28 14:14 + */ +@Api(tags = "产品投放") +@RequestMapping("api/cptf") +@RestController +public class CptfController { + + + @Autowired + private FbqdAnswerMapper fbqdAnswerMapper; + + @Autowired + private FbqdStuAnswerMapper fbqdStuAnswerMapper; + + + + @Autowired + StuGradeMapper stuGradeMapper; + @Autowired + CompareListsUtil compareListsUtil; + @Autowired + ScoreService scoreService; + + @Value("${file.url}") + public String url; + + + @PostMapping("/commitCpdjAnswer") + @ApiOperation("发布渠道-提交") + @AnonymousAccess + public ResultEntity commitFbqdAnswer(@RequestBody FbqdStuAnswer stuAnswer) { + //先查询是否提交过 + StuGradeExample stuGradeExample = new StuGradeExample(); + stuGradeExample.createCriteria().andUserIdEqualTo(stuAnswer.getUserId()).andProjectEqualTo(Constant.PRO_CPGH).andModuleEqualTo(Constant.MODULE_CPDJ); + List stuGradeList = stuGradeMapper.selectByExampleWithBLOBs(stuGradeExample); + if(CollectionUtils.isEmpty(stuGradeList)){ + FbqdAnswer answer = fbqdAnswerMapper.selectByExampleWithBLOBs(new FbqdAnswerExample()).get(0); + int count = 0; + + //1.数据标准化结果 + String stuExposureData = stuAnswer.getExposureData(); + + String exposureData = answer.getExposureData(); + //数据标准化结果 校验 + + //错误次数 + int monthlyDataErrorCount =compareListsUtil.compareErrorCount(stuExposureData, exposureData).getErrorCount(); + count = count + monthlyDataErrorCount; + + + //2.渠道中的比重 + String stuAnswerClickData = stuAnswer.getClickData(); + + String clickData = answer.getClickData(); + //错误次数 + int cheapSumCount =compareListsUtil.compareErrorCount(stuAnswerClickData, clickData).getErrorCount(); + count = count + cheapSumCount; + + + + //3.信息滴 + String stuAnswerAdCost = stuAnswer.getAdCost(); + + String adCost = answer.getAdCost(); + //错误次数 + int cheapPercentageCount =compareListsUtil.compareErrorCount(stuAnswerAdCost, adCost).getErrorCount(); + count = count + cheapPercentageCount; + + + //每个指标的权重 + String stuAnswerOrderAmount = stuAnswer.getOrderAmount(); + + String orderAmount = answer.getOrderAmount(); + //错误次数 + int costEffectiveSumCount =compareListsUtil.compareErrorCount(stuAnswerOrderAmount, orderAmount).getErrorCount(); + count = count + costEffectiveSumCount; + + + + //综合评分 + String stuAnswerKeywords = stuAnswer.getKeywords(); + + String keywords = answer.getKeywords(); + //错误次数 + int costEffectivePercentageCount =compareListsUtil.compareErrorCount(stuAnswerKeywords, keywords).getErrorCount(); + count = count + costEffectivePercentageCount; + + + + //主观题 + int i = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getScenePromotion()); + count = count + i; + stuAnswer.setId(IdUtil.simpleUUID()); + + fbqdStuAnswerMapper.insertSelective(stuAnswer); + + Boolean aBoolean = scoreService.insertScore(stuAnswer.getUserId(), Constant.PRO_CPTFCS, Constant.MODULE_FBQDPG, BigDecimal.valueOf(100 - count), stuAnswer.getScenePromotion()); + if(aBoolean){ + return new ResultEntity<>(HttpStatus.OK, "提交成功"); + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "提交失败"); + } + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "已提交过"); + } + } + + + + @ApiOperation("发布渠道-回显接口") + @GetMapping("/selectByCpdjUserId") + @AnonymousAccess + public ResultEntity selectByCpdjUserId(@ApiParam("用户ID") String userId) { + + FbqdStuAnswerExample cpdjStuAnswerExample = new FbqdStuAnswerExample(); + cpdjStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + + List stuAnswerList = fbqdStuAnswerMapper.selectByExampleWithBLOBs(cpdjStuAnswerExample); + + if (CollectionUtils.isEmpty(stuAnswerList)) { + return new ResultEntity<>(HttpStatus.OK); + } else { + return new ResultEntity<>(HttpStatus.OK, stuAnswerList.get(0)); + } + + } + + + + + @GetMapping("/restartTraining") + @ApiOperation("产品投放-重新实训") + @AnonymousAccess + public ResultEntity restartTraining(@RequestParam String userId,@ApiParam("重新实训的模块名") String module) { + + if (Constant.MODULE_FBQDPG.equals(module)) { + Boolean b=scoreService.deleteScore(userId,Constant.PRO_CPTFCS,module); + if(b){ + FbqdStuAnswerExample cpdjStuAnswerExample = new FbqdStuAnswerExample(); + cpdjStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + fbqdStuAnswerMapper.deleteByExample(cpdjStuAnswerExample); + return new ResultEntity<>(HttpStatus.OK, "重新实训成功"); + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); + } + } + +// if (Constant.MODULE_CPCYHDW.equals(module)) { +// Boolean b=scoreService.deleteScore(userId,Constant.PRO_CPGH,module); +// if(b){ +// CpcyhdwStuAnswerExample cpcyhdwStuAnswerExample = new CpcyhdwStuAnswerExample(); +// cpcyhdwStuAnswerExample.createCriteria().andUserIdEqualTo(userId); +// cpcyhdwStuAnswerMapper.deleteByExample(cpcyhdwStuAnswerExample); +// return new ResultEntity<>(HttpStatus.OK, "重新实训成功"); +// }else { +// return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); +// } +// } +// +// if (Constant.MODULE_CPJGGH.equals(module)) { +// Boolean b=scoreService.deleteScore(userId,Constant.PRO_CPGH,module); +// if(b){ +// CpjgghStuAnswerExample cpjgghStuAnswerExample = new CpjgghStuAnswerExample(); +// cpjgghStuAnswerExample.createCriteria().andUserIdEqualTo(userId); +// cpjgghStuAnswerMapper.deleteByExample(cpjgghStuAnswerExample); +// return new ResultEntity<>(HttpStatus.OK, "重新实训成功"); +// }else { +// return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); +// } +// } + + + + + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); + + } + + + + + + +} diff --git a/src/main/java/com/sztzjy/linkCommerce/controller/stu/ProductPlanningController.java b/src/main/java/com/sztzjy/linkCommerce/controller/stu/ProductPlanningController.java index d74cc6e..dc5c649 100644 --- a/src/main/java/com/sztzjy/linkCommerce/controller/stu/ProductPlanningController.java +++ b/src/main/java/com/sztzjy/linkCommerce/controller/stu/ProductPlanningController.java @@ -1,26 +1,32 @@ package com.sztzjy.linkCommerce.controller.stu; +import cn.hutool.core.util.IdUtil; import com.alibaba.fastjson.JSONObject; import com.sztzjy.linkCommerce.annotation.AnonymousAccess; import com.sztzjy.linkCommerce.config.Constant; import com.sztzjy.linkCommerce.entity.*; -import com.sztzjy.linkCommerce.mapper.CpdjAnswerMapper; -import com.sztzjy.linkCommerce.mapper.CpdjStuAnswerMapper; -import com.sztzjy.linkCommerce.mapper.StuGradeMapper; +import com.sztzjy.linkCommerce.mapper.*; import com.sztzjy.linkCommerce.service.ScoreService; import com.sztzjy.linkCommerce.util.CompareListsUtil; +import com.sztzjy.linkCommerce.util.FileHashUtil; import com.sztzjy.linkCommerce.util.ResultEntity; +import com.sztzjy.linkCommerce.util.file.IFileUtil; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import org.checkerframework.checker.units.qual.A; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.springframework.util.CollectionUtils; import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import javax.annotation.Resource; import java.math.BigDecimal; +import java.util.Date; import java.util.List; +import java.util.UUID; /** * @author 17803 @@ -38,6 +44,8 @@ public class ProductPlanningController { @Autowired private CpdjStuAnswerMapper cpdjStuAnswerMapper; + + @Autowired StuGradeMapper stuGradeMapper; @Autowired @@ -45,6 +53,13 @@ public class ProductPlanningController { @Autowired ScoreService scoreService; + @Value("${file.url}") + public String url; + @Autowired + private CpdjStuAnswerMapper stuAnswerMapper; + @Autowired + private CpcyhdwStuAnswerMapper cpcyhdwStuAnswerMapper; + @PostMapping("/commitCpdjAnswer") @ApiOperation("产品定价-提交") @AnonymousAccess @@ -52,9 +67,9 @@ public class ProductPlanningController { //先查询是否提交过 StuGradeExample stuGradeExample = new StuGradeExample(); stuGradeExample.createCriteria().andUserIdEqualTo(userId).andProjectEqualTo(Constant.PRO_CPGH).andModuleEqualTo(Constant.MODULE_CPDJ); - List stuGradeList = stuGradeMapper.selectByExample(stuGradeExample); + List stuGradeList = stuGradeMapper.selectByExampleWithBLOBs(stuGradeExample); if(CollectionUtils.isEmpty(stuGradeList)){ - CpdjAnswer answer = cpdjAnswerMapper.selectByExample(new CpdjAnswerExample()).get(0); + CpdjAnswer answer = cpdjAnswerMapper.selectByExampleWithBLOBs(new CpdjAnswerExample()).get(0); int count = 0; //学生最优价格点 @@ -156,7 +171,9 @@ public class ProductPlanningController { //主观题 int i = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getContext()); count = count + i; - + stuAnswer.setId(IdUtil.simpleUUID()); + stuAnswer.setUserId(userId); + stuAnswerMapper.insertSelective(stuAnswer); Boolean aBoolean = scoreService.insertScore(userId, Constant.PRO_CPGH, Constant.MODULE_CPDJ, BigDecimal.valueOf(100 - count), stuAnswer.getContext()); if(aBoolean){ @@ -169,6 +186,8 @@ public class ProductPlanningController { } } + + @ApiOperation("产品定价-回显接口") @GetMapping("/selectByCpdjUserId") @AnonymousAccess @@ -177,7 +196,7 @@ public class ProductPlanningController { CpdjStuAnswerExample cpdjStuAnswerExample = new CpdjStuAnswerExample(); cpdjStuAnswerExample.createCriteria().andUserIdEqualTo(userId); - List stuAnswerList = cpdjStuAnswerMapper.selectByExample(cpdjStuAnswerExample); + List stuAnswerList = cpdjStuAnswerMapper.selectByExampleWithBLOBs(cpdjStuAnswerExample); if (CollectionUtils.isEmpty(stuAnswerList)) { return new ResultEntity<>(HttpStatus.OK); @@ -186,23 +205,219 @@ public class ProductPlanningController { } } - @PostMapping("/restartTraining") + + + + + @GetMapping("/restartTraining") @ApiOperation("产品定价-重新实训") @AnonymousAccess public ResultEntity restartTraining(@RequestParam String userId,@ApiParam("重新实训的模块名") String module) { - Boolean b=scoreService.deleteScore(userId,Constant.PRO_CPGH,module); - if(b){ - CpdjStuAnswerExample cpdjStuAnswerExample = new CpdjStuAnswerExample(); - cpdjStuAnswerExample.createCriteria().andUserIdEqualTo(userId); - cpdjStuAnswerMapper.deleteByExample(cpdjStuAnswerExample); - return new ResultEntity<>(HttpStatus.OK, "重新实训成功"); + + if (Constant.MODULE_CPDJ.equals(module)) { + Boolean b=scoreService.deleteScore(userId,Constant.PRO_CPGH,module); + if(b){ + CpdjStuAnswerExample cpdjStuAnswerExample = new CpdjStuAnswerExample(); + cpdjStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + cpdjStuAnswerMapper.deleteByExample(cpdjStuAnswerExample); + return new ResultEntity<>(HttpStatus.OK, "重新实训成功"); + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); + } + } + + if (Constant.MODULE_CPCYHDW.equals(module)) { + Boolean b=scoreService.deleteScore(userId,Constant.PRO_CPGH,module); + if(b){ + CpcyhdwStuAnswerExample cpcyhdwStuAnswerExample = new CpcyhdwStuAnswerExample(); + cpcyhdwStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + cpcyhdwStuAnswerMapper.deleteByExample(cpcyhdwStuAnswerExample); + return new ResultEntity<>(HttpStatus.OK, "重新实训成功"); + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); + } + } + + if (Constant.MODULE_CPJGGH.equals(module)) { + Boolean b=scoreService.deleteScore(userId,Constant.PRO_CPGH,module); + if(b){ + CpjgghStuAnswerExample cpjgghStuAnswerExample = new CpjgghStuAnswerExample(); + cpjgghStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + cpjgghStuAnswerMapper.deleteByExample(cpjgghStuAnswerExample); + return new ResultEntity<>(HttpStatus.OK, "重新实训成功"); + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); + } + } + + + + + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); + + } + + + @PostMapping("/commitCpcyhdwAnswer") + @ApiOperation("产品差异化定位-提交") + @AnonymousAccess + public ResultEntity commitCpcyhdwAnswer(@RequestBody CpcyhdwStuAnswer stuAnswer, @RequestParam String userId) { + //先查询是否提交过 + StuGradeExample stuGradeExample = new StuGradeExample(); + stuGradeExample.createCriteria().andUserIdEqualTo(userId).andProjectEqualTo(Constant.PRO_CPGH).andModuleEqualTo(Constant.MODULE_CPCYHDW); + List stuGradeList = stuGradeMapper.selectByExampleWithBLOBs(stuGradeExample); + if(CollectionUtils.isEmpty(stuGradeList)){ + + //主观题 扣分 + int count = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getContext()); + + //插入数据 + stuAnswer.setId(IdUtil.randomUUID()); + stuAnswer.setUserId(userId); + + cpcyhdwStuAnswerMapper.insertSelective(stuAnswer); + + Boolean aBoolean = scoreService.insertScore(userId, Constant.PRO_CPGH, Constant.MODULE_CPCYHDW, BigDecimal.valueOf(100 - count), stuAnswer.getContext()); + if(aBoolean){ + return new ResultEntity<>(HttpStatus.OK, "提交成功"); + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "提交失败"); + } + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "已提交过"); + } + } + + + + @ApiOperation("产品差异化定位-回显接口") + @GetMapping("/selectByCpcyhdwUserId") + @AnonymousAccess + public ResultEntity selectByCpcyhdwUserId(@ApiParam("用户ID") String userId) { + + CpcyhdwStuAnswerExample cpcyhdwStuAnswerExample = new CpcyhdwStuAnswerExample(); + cpcyhdwStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + + List stuAnswerList = cpcyhdwStuAnswerMapper.selectByExampleWithBLOBs(cpcyhdwStuAnswerExample); + + if (CollectionUtils.isEmpty(stuAnswerList)) { + return new ResultEntity<>(HttpStatus.OK); + } else { + return new ResultEntity<>(HttpStatus.OK, stuAnswerList.get(0)); + } + } + + + @Autowired + private CpjgghStuAnswerMapper cpjgghStuAnswerMapper; + + + @PostMapping("/commitCpjgghAnswer") + @ApiOperation("产品结构规划-提交") + @AnonymousAccess + public ResultEntity commitCpjgghAnswer(@RequestBody CpjgghStuAnswer stuAnswer, @RequestParam String userId) { + //先查询是否提交过 + StuGradeExample stuGradeExample = new StuGradeExample(); + stuGradeExample.createCriteria().andUserIdEqualTo(userId).andProjectEqualTo(Constant.PRO_CPGH).andModuleEqualTo(Constant.MODULE_CPJGGH); + List stuGradeList = stuGradeMapper.selectByExampleWithBLOBs(stuGradeExample); + if(CollectionUtils.isEmpty(stuGradeList)){ + + //主观题 扣分 + int count1 = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getRationality()); + + //主观题 扣分 + int count2 = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getOptimizationSuggestions()); + + //主观题 扣分 + int count3 = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getContext()); + + //插入数据 + stuAnswer.setId(IdUtil.randomUUID()); + stuAnswer.setUserId(userId); + + cpjgghStuAnswerMapper.insertSelective(stuAnswer); + + Boolean aBoolean = scoreService.insertScore(userId, Constant.PRO_CPGH, Constant.MODULE_CPJGGH, BigDecimal.valueOf(100 - ( count1 + count2 + count3)), stuAnswer.getContext()); + if(aBoolean){ + return new ResultEntity<>(HttpStatus.OK, "提交成功"); + }else { + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "提交失败"); + } }else { - return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); + return new ResultEntity<>(HttpStatus.BAD_REQUEST, "已提交过"); } + } + + + + @ApiOperation("产品结构规划-回显接口") + @GetMapping("/selectByCpjgghUserId") + @AnonymousAccess + public ResultEntity selectByCpjgghUserId(@ApiParam("用户ID") String userId) { + CpjgghStuAnswerExample cpjgghStuAnswerExample = new CpjgghStuAnswerExample(); + cpjgghStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + List stuAnswerList = cpjgghStuAnswerMapper.selectByExampleWithBLOBs(cpjgghStuAnswerExample); + + if (CollectionUtils.isEmpty(stuAnswerList)) { + return new ResultEntity<>(HttpStatus.OK); + } else { + return new ResultEntity<>(HttpStatus.OK, stuAnswerList.get(0)); + } } + @Resource + IFileUtil iFileUtil; + + @Resource + private StuUploadExpermentMapper stuUploadExpermentMapper; + + + @ApiOperation("实训文件上传接口") + @PostMapping("/upload") + @AnonymousAccess + public ResultEntity upload(@RequestPart MultipartFile file, @ApiParam("实训名称")String module, String userId, @ApiParam("例如:身份证明文件/其他主要证明文件") String name) { + + + if (file.isEmpty()) + { + return new ResultEntity<>(HttpStatus.BAD_REQUEST,"文件不能为空"); + } + + //保存文件路径 + String filePath = iFileUtil.upload(file); + + name = file.getOriginalFilename(); + + StuUploadExpermentExample uploadExpermentExample = new StuUploadExpermentExample(); + uploadExpermentExample.createCriteria() + .andUserIdEqualTo(userId) + .andModuleEqualTo(module) + .andFileNameEqualTo(name); + List stuUploadExpermentList = stuUploadExpermentMapper.selectByExample(uploadExpermentExample); + if (stuUploadExpermentList.isEmpty()) { + StuUploadExperment uploadExperment = new StuUploadExperment(); + int id = UUID.randomUUID().hashCode() > 0 ? UUID.randomUUID().hashCode() : -UUID.randomUUID().hashCode(); + uploadExperment.setId(id); + uploadExperment.setFileName(name); + uploadExperment.setFilePath(filePath); + uploadExperment.setCreateTime(new Date()); + uploadExperment.setModule(module); + uploadExperment.setUserId(userId); + stuUploadExpermentMapper.insertSelective(uploadExperment); + return new ResultEntity<>(HttpStatus.OK, "上传成功!", url + filePath); + } else { + + StuUploadExperment uploadExperment = stuUploadExpermentList.get(0); + uploadExperment.setUpdateTime(new Date()); + uploadExperment.setFilePath(filePath); + stuUploadExpermentMapper.updateByPrimaryKeySelective(uploadExperment); + return new ResultEntity<>(HttpStatus.OK, "上传成功!", url + filePath); + + } + + } } diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwAnswer.java index 8b3b0f3..33dbcc7 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwAnswer.java @@ -1,27 +1,39 @@ package com.sztzjy.linkCommerce.entity; -import java.math.BigDecimal; +import java.util.Date; import io.swagger.annotations.ApiModelProperty; /** - * 产品差异化定位评分结果表(双维度评估体系) + * 产品差异化定位答案表 * * @author whb * cpcyhdw_answer */ public class CpcyhdwAnswer { - @ApiModelProperty(notes = "主键(格式:CPCYHDWA_时间戳_哈希值,例:CPCYHDWA_2023110614_9d7b6c5e)") + @ApiModelProperty(notes = "主键") private String id; - @ApiModelProperty(notes = "竞争地位评分(范围0.00-100.00)") - private BigDecimal competitivePositionScore; + @ApiModelProperty(notes = "竞争地位评分") + private Double competitivePositionScore; - @ApiModelProperty(notes = "市场吸引力评分(范围0.00-100.00)") - private BigDecimal marketAttractivenessScore; + @ApiModelProperty(notes = "市场吸引力评分") + private Double marketAttractivenessScore; @ApiModelProperty(notes = "用户ID") private String userId; + @ApiModelProperty(notes = "创建时间") + private Date createTime; + + @ApiModelProperty(notes = "竞争地位") + private String competitivePosition; + + @ApiModelProperty(notes = "市场吸引力") + private String marketAttractive; + + @ApiModelProperty(notes = "主观题") + private String context; + public String getId() { return id; } @@ -30,19 +42,19 @@ public class CpcyhdwAnswer { this.id = id == null ? null : id.trim(); } - public BigDecimal getCompetitivePositionScore() { + public Double getCompetitivePositionScore() { return competitivePositionScore; } - public void setCompetitivePositionScore(BigDecimal competitivePositionScore) { + public void setCompetitivePositionScore(Double competitivePositionScore) { this.competitivePositionScore = competitivePositionScore; } - public BigDecimal getMarketAttractivenessScore() { + public Double getMarketAttractivenessScore() { return marketAttractivenessScore; } - public void setMarketAttractivenessScore(BigDecimal marketAttractivenessScore) { + public void setMarketAttractivenessScore(Double marketAttractivenessScore) { this.marketAttractivenessScore = marketAttractivenessScore; } @@ -53,4 +65,36 @@ public class CpcyhdwAnswer { public void setUserId(String userId) { this.userId = userId == null ? null : userId.trim(); } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getCompetitivePosition() { + return competitivePosition; + } + + public void setCompetitivePosition(String competitivePosition) { + this.competitivePosition = competitivePosition == null ? null : competitivePosition.trim(); + } + + public String getMarketAttractive() { + return marketAttractive; + } + + public void setMarketAttractive(String marketAttractive) { + this.marketAttractive = marketAttractive == null ? null : marketAttractive.trim(); + } + + public String getContext() { + return context; + } + + public void setContext(String context) { + this.context = context == null ? null : context.trim(); + } } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwAnswerExample.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwAnswerExample.java index eb7c58c..c8b3825 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwAnswerExample.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwAnswerExample.java @@ -1,7 +1,7 @@ package com.sztzjy.linkCommerce.entity; -import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Date; import java.util.List; public class CpcyhdwAnswerExample { @@ -185,52 +185,52 @@ public class CpcyhdwAnswerExample { return (Criteria) this; } - public Criteria andCompetitivePositionScoreEqualTo(BigDecimal value) { + public Criteria andCompetitivePositionScoreEqualTo(Double value) { addCriterion("competitive_position_score =", value, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreNotEqualTo(BigDecimal value) { + public Criteria andCompetitivePositionScoreNotEqualTo(Double value) { addCriterion("competitive_position_score <>", value, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreGreaterThan(BigDecimal value) { + public Criteria andCompetitivePositionScoreGreaterThan(Double value) { addCriterion("competitive_position_score >", value, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreGreaterThanOrEqualTo(BigDecimal value) { + public Criteria andCompetitivePositionScoreGreaterThanOrEqualTo(Double value) { addCriterion("competitive_position_score >=", value, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreLessThan(BigDecimal value) { + public Criteria andCompetitivePositionScoreLessThan(Double value) { addCriterion("competitive_position_score <", value, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreLessThanOrEqualTo(BigDecimal value) { + public Criteria andCompetitivePositionScoreLessThanOrEqualTo(Double value) { addCriterion("competitive_position_score <=", value, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreIn(List values) { + public Criteria andCompetitivePositionScoreIn(List values) { addCriterion("competitive_position_score in", values, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreNotIn(List values) { + public Criteria andCompetitivePositionScoreNotIn(List values) { addCriterion("competitive_position_score not in", values, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreBetween(BigDecimal value1, BigDecimal value2) { + public Criteria andCompetitivePositionScoreBetween(Double value1, Double value2) { addCriterion("competitive_position_score between", value1, value2, "competitivePositionScore"); return (Criteria) this; } - public Criteria andCompetitivePositionScoreNotBetween(BigDecimal value1, BigDecimal value2) { + public Criteria andCompetitivePositionScoreNotBetween(Double value1, Double value2) { addCriterion("competitive_position_score not between", value1, value2, "competitivePositionScore"); return (Criteria) this; } @@ -245,52 +245,52 @@ public class CpcyhdwAnswerExample { return (Criteria) this; } - public Criteria andMarketAttractivenessScoreEqualTo(BigDecimal value) { + public Criteria andMarketAttractivenessScoreEqualTo(Double value) { addCriterion("market_attractiveness_score =", value, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreNotEqualTo(BigDecimal value) { + public Criteria andMarketAttractivenessScoreNotEqualTo(Double value) { addCriterion("market_attractiveness_score <>", value, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreGreaterThan(BigDecimal value) { + public Criteria andMarketAttractivenessScoreGreaterThan(Double value) { addCriterion("market_attractiveness_score >", value, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreGreaterThanOrEqualTo(BigDecimal value) { + public Criteria andMarketAttractivenessScoreGreaterThanOrEqualTo(Double value) { addCriterion("market_attractiveness_score >=", value, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreLessThan(BigDecimal value) { + public Criteria andMarketAttractivenessScoreLessThan(Double value) { addCriterion("market_attractiveness_score <", value, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreLessThanOrEqualTo(BigDecimal value) { + public Criteria andMarketAttractivenessScoreLessThanOrEqualTo(Double value) { addCriterion("market_attractiveness_score <=", value, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreIn(List values) { + public Criteria andMarketAttractivenessScoreIn(List values) { addCriterion("market_attractiveness_score in", values, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreNotIn(List values) { + public Criteria andMarketAttractivenessScoreNotIn(List values) { addCriterion("market_attractiveness_score not in", values, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreBetween(BigDecimal value1, BigDecimal value2) { + public Criteria andMarketAttractivenessScoreBetween(Double value1, Double value2) { addCriterion("market_attractiveness_score between", value1, value2, "marketAttractivenessScore"); return (Criteria) this; } - public Criteria andMarketAttractivenessScoreNotBetween(BigDecimal value1, BigDecimal value2) { + public Criteria andMarketAttractivenessScoreNotBetween(Double value1, Double value2) { addCriterion("market_attractiveness_score not between", value1, value2, "marketAttractivenessScore"); return (Criteria) this; } @@ -364,6 +364,66 @@ public class CpcyhdwAnswerExample { addCriterion("user_id not between", value1, value2, "userId"); return (Criteria) this; } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwStuAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwStuAnswer.java index a0a1f7d..7162332 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwStuAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwStuAnswer.java @@ -1,6 +1,7 @@ package com.sztzjy.linkCommerce.entity; import java.math.BigDecimal; +import java.util.Date; import io.swagger.annotations.ApiModelProperty; /** @@ -22,6 +23,18 @@ public class CpcyhdwStuAnswer { @ApiModelProperty(notes = "用户ID(关联userinfo表)") private String userId; + @ApiModelProperty(notes = "创建时间") + private Date createTime; + + @ApiModelProperty(notes = "竞争地位") + private String competitivePosition; + + @ApiModelProperty(notes = "市场吸引力") + private String marketAttractive; + + @ApiModelProperty(notes = "主观题") + private String context; + public String getId() { return id; } @@ -53,4 +66,36 @@ public class CpcyhdwStuAnswer { public void setUserId(String userId) { this.userId = userId == null ? null : userId.trim(); } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getCompetitivePosition() { + return competitivePosition; + } + + public void setCompetitivePosition(String competitivePosition) { + this.competitivePosition = competitivePosition == null ? null : competitivePosition.trim(); + } + + public String getMarketAttractive() { + return marketAttractive; + } + + public void setMarketAttractive(String marketAttractive) { + this.marketAttractive = marketAttractive == null ? null : marketAttractive.trim(); + } + + public String getContext() { + return context; + } + + public void setContext(String context) { + this.context = context == null ? null : context.trim(); + } } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwStuAnswerExample.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwStuAnswerExample.java index f26b6b6..9f941a9 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwStuAnswerExample.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpcyhdwStuAnswerExample.java @@ -2,6 +2,7 @@ package com.sztzjy.linkCommerce.entity; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Date; import java.util.List; public class CpcyhdwStuAnswerExample { @@ -364,6 +365,66 @@ public class CpcyhdwStuAnswerExample { addCriterion("user_id not between", value1, value2, "userId"); return (Criteria) this; } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpdjStuAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpdjStuAnswer.java index 6d0706e..4e58fc2 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpdjStuAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpdjStuAnswer.java @@ -28,6 +28,9 @@ public class CpdjStuAnswer { @ApiModelProperty(notes = "创建时间") private Date createTime; + @ApiModelProperty(notes = "0隐藏 : 1 展示") + private Integer displayStatus; + @ApiModelProperty(notes = "便宜-累计总和(答案通过逗号隔开,没写就给空)") private String cheapSum; @@ -103,6 +106,14 @@ public class CpdjStuAnswer { this.createTime = createTime; } + public Integer getDisplayStatus() { + return displayStatus; + } + + public void setDisplayStatus(Integer displayStatus) { + this.displayStatus = displayStatus; + } + public String getCheapSum() { return cheapSum; } diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpdjStuAnswerExample.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpdjStuAnswerExample.java index 18704d1..8c93951 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpdjStuAnswerExample.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpdjStuAnswerExample.java @@ -514,6 +514,66 @@ public class CpdjStuAnswerExample { addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } + + public Criteria andDisplayStatusIsNull() { + addCriterion("display_status is null"); + return (Criteria) this; + } + + public Criteria andDisplayStatusIsNotNull() { + addCriterion("display_status is not null"); + return (Criteria) this; + } + + public Criteria andDisplayStatusEqualTo(Integer value) { + addCriterion("display_status =", value, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusNotEqualTo(Integer value) { + addCriterion("display_status <>", value, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusGreaterThan(Integer value) { + addCriterion("display_status >", value, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("display_status >=", value, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusLessThan(Integer value) { + addCriterion("display_status <", value, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusLessThanOrEqualTo(Integer value) { + addCriterion("display_status <=", value, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusIn(List values) { + addCriterion("display_status in", values, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusNotIn(List values) { + addCriterion("display_status not in", values, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusBetween(Integer value1, Integer value2) { + addCriterion("display_status between", value1, value2, "displayStatus"); + return (Criteria) this; + } + + public Criteria andDisplayStatusNotBetween(Integer value1, Integer value2) { + addCriterion("display_status not between", value1, value2, "displayStatus"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswer.java index 8df4ad0..c16bae5 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswer.java @@ -47,15 +47,48 @@ public class CpjgghStuAnswer { @ApiModelProperty(notes = "用户ID(关联userinfo表)") private String userId; - @ApiModelProperty(notes = "产品分类列表(JSON数组格式,如") + @ApiModelProperty(notes = "图片1") + private String imgOne; + + @ApiModelProperty(notes = "图片2") + private String imgTwo; + + @ApiModelProperty(notes = "图片3") + private String imgThree; + + @ApiModelProperty(notes = "图片4") + private String imgFour; + + @ApiModelProperty(notes = "图片5") + private String imgFive; + + @ApiModelProperty(notes = "图片6") + private String imgSix; + + @ApiModelProperty(notes = "图片7") + private String imgSeven; + + @ApiModelProperty(notes = "图片8") + private String imgEight; + + @ApiModelProperty(notes = "图片9") + private String imgNine; + + @ApiModelProperty(notes = "图片10") + private String imgTen; + + @ApiModelProperty(notes = "产品分类列表(JSON数组格式)") private String productCategories; - @ApiModelProperty(notes = "结构合理性分析(500字以内文字说明)") + @ApiModelProperty(notes = "结构合理性分析(500字以内文字说明)主观题") private String rationality; - @ApiModelProperty(notes = "优化建议(500字以内文字说明)") + @ApiModelProperty(notes = "组合优化建议(500字以内文字说明)主观题") private String optimizationSuggestions; + @ApiModelProperty(notes = "优化建议(最后 )主观题") + private String context; + public String getId() { return id; } @@ -160,6 +193,86 @@ public class CpjgghStuAnswer { this.userId = userId == null ? null : userId.trim(); } + public String getImgOne() { + return imgOne; + } + + public void setImgOne(String imgOne) { + this.imgOne = imgOne == null ? null : imgOne.trim(); + } + + public String getImgTwo() { + return imgTwo; + } + + public void setImgTwo(String imgTwo) { + this.imgTwo = imgTwo == null ? null : imgTwo.trim(); + } + + public String getImgThree() { + return imgThree; + } + + public void setImgThree(String imgThree) { + this.imgThree = imgThree == null ? null : imgThree.trim(); + } + + public String getImgFour() { + return imgFour; + } + + public void setImgFour(String imgFour) { + this.imgFour = imgFour == null ? null : imgFour.trim(); + } + + public String getImgFive() { + return imgFive; + } + + public void setImgFive(String imgFive) { + this.imgFive = imgFive == null ? null : imgFive.trim(); + } + + public String getImgSix() { + return imgSix; + } + + public void setImgSix(String imgSix) { + this.imgSix = imgSix == null ? null : imgSix.trim(); + } + + public String getImgSeven() { + return imgSeven; + } + + public void setImgSeven(String imgSeven) { + this.imgSeven = imgSeven == null ? null : imgSeven.trim(); + } + + public String getImgEight() { + return imgEight; + } + + public void setImgEight(String imgEight) { + this.imgEight = imgEight == null ? null : imgEight.trim(); + } + + public String getImgNine() { + return imgNine; + } + + public void setImgNine(String imgNine) { + this.imgNine = imgNine == null ? null : imgNine.trim(); + } + + public String getImgTen() { + return imgTen; + } + + public void setImgTen(String imgTen) { + this.imgTen = imgTen == null ? null : imgTen.trim(); + } + public String getProductCategories() { return productCategories; } @@ -183,4 +296,12 @@ public class CpjgghStuAnswer { public void setOptimizationSuggestions(String optimizationSuggestions) { this.optimizationSuggestions = optimizationSuggestions == null ? null : optimizationSuggestions.trim(); } + + public String getContext() { + return context; + } + + public void setContext(String context) { + this.context = context == null ? null : context.trim(); + } } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswerExample.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswerExample.java index 2a0aef9..cb0ee48 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswerExample.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswerExample.java @@ -1013,6 +1013,706 @@ public class CpjgghStuAnswerExample { addCriterion("user_id not between", value1, value2, "userId"); return (Criteria) this; } + + public Criteria andImgOneIsNull() { + addCriterion("img_one is null"); + return (Criteria) this; + } + + public Criteria andImgOneIsNotNull() { + addCriterion("img_one is not null"); + return (Criteria) this; + } + + public Criteria andImgOneEqualTo(String value) { + addCriterion("img_one =", value, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneNotEqualTo(String value) { + addCriterion("img_one <>", value, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneGreaterThan(String value) { + addCriterion("img_one >", value, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneGreaterThanOrEqualTo(String value) { + addCriterion("img_one >=", value, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneLessThan(String value) { + addCriterion("img_one <", value, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneLessThanOrEqualTo(String value) { + addCriterion("img_one <=", value, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneLike(String value) { + addCriterion("img_one like", value, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneNotLike(String value) { + addCriterion("img_one not like", value, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneIn(List values) { + addCriterion("img_one in", values, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneNotIn(List values) { + addCriterion("img_one not in", values, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneBetween(String value1, String value2) { + addCriterion("img_one between", value1, value2, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgOneNotBetween(String value1, String value2) { + addCriterion("img_one not between", value1, value2, "imgOne"); + return (Criteria) this; + } + + public Criteria andImgTwoIsNull() { + addCriterion("img_two is null"); + return (Criteria) this; + } + + public Criteria andImgTwoIsNotNull() { + addCriterion("img_two is not null"); + return (Criteria) this; + } + + public Criteria andImgTwoEqualTo(String value) { + addCriterion("img_two =", value, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoNotEqualTo(String value) { + addCriterion("img_two <>", value, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoGreaterThan(String value) { + addCriterion("img_two >", value, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoGreaterThanOrEqualTo(String value) { + addCriterion("img_two >=", value, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoLessThan(String value) { + addCriterion("img_two <", value, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoLessThanOrEqualTo(String value) { + addCriterion("img_two <=", value, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoLike(String value) { + addCriterion("img_two like", value, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoNotLike(String value) { + addCriterion("img_two not like", value, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoIn(List values) { + addCriterion("img_two in", values, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoNotIn(List values) { + addCriterion("img_two not in", values, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoBetween(String value1, String value2) { + addCriterion("img_two between", value1, value2, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgTwoNotBetween(String value1, String value2) { + addCriterion("img_two not between", value1, value2, "imgTwo"); + return (Criteria) this; + } + + public Criteria andImgThreeIsNull() { + addCriterion("img_three is null"); + return (Criteria) this; + } + + public Criteria andImgThreeIsNotNull() { + addCriterion("img_three is not null"); + return (Criteria) this; + } + + public Criteria andImgThreeEqualTo(String value) { + addCriterion("img_three =", value, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeNotEqualTo(String value) { + addCriterion("img_three <>", value, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeGreaterThan(String value) { + addCriterion("img_three >", value, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeGreaterThanOrEqualTo(String value) { + addCriterion("img_three >=", value, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeLessThan(String value) { + addCriterion("img_three <", value, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeLessThanOrEqualTo(String value) { + addCriterion("img_three <=", value, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeLike(String value) { + addCriterion("img_three like", value, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeNotLike(String value) { + addCriterion("img_three not like", value, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeIn(List values) { + addCriterion("img_three in", values, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeNotIn(List values) { + addCriterion("img_three not in", values, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeBetween(String value1, String value2) { + addCriterion("img_three between", value1, value2, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgThreeNotBetween(String value1, String value2) { + addCriterion("img_three not between", value1, value2, "imgThree"); + return (Criteria) this; + } + + public Criteria andImgFourIsNull() { + addCriterion("img_four is null"); + return (Criteria) this; + } + + public Criteria andImgFourIsNotNull() { + addCriterion("img_four is not null"); + return (Criteria) this; + } + + public Criteria andImgFourEqualTo(String value) { + addCriterion("img_four =", value, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourNotEqualTo(String value) { + addCriterion("img_four <>", value, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourGreaterThan(String value) { + addCriterion("img_four >", value, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourGreaterThanOrEqualTo(String value) { + addCriterion("img_four >=", value, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourLessThan(String value) { + addCriterion("img_four <", value, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourLessThanOrEqualTo(String value) { + addCriterion("img_four <=", value, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourLike(String value) { + addCriterion("img_four like", value, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourNotLike(String value) { + addCriterion("img_four not like", value, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourIn(List values) { + addCriterion("img_four in", values, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourNotIn(List values) { + addCriterion("img_four not in", values, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourBetween(String value1, String value2) { + addCriterion("img_four between", value1, value2, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFourNotBetween(String value1, String value2) { + addCriterion("img_four not between", value1, value2, "imgFour"); + return (Criteria) this; + } + + public Criteria andImgFiveIsNull() { + addCriterion("img_five is null"); + return (Criteria) this; + } + + public Criteria andImgFiveIsNotNull() { + addCriterion("img_five is not null"); + return (Criteria) this; + } + + public Criteria andImgFiveEqualTo(String value) { + addCriterion("img_five =", value, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveNotEqualTo(String value) { + addCriterion("img_five <>", value, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveGreaterThan(String value) { + addCriterion("img_five >", value, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveGreaterThanOrEqualTo(String value) { + addCriterion("img_five >=", value, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveLessThan(String value) { + addCriterion("img_five <", value, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveLessThanOrEqualTo(String value) { + addCriterion("img_five <=", value, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveLike(String value) { + addCriterion("img_five like", value, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveNotLike(String value) { + addCriterion("img_five not like", value, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveIn(List values) { + addCriterion("img_five in", values, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveNotIn(List values) { + addCriterion("img_five not in", values, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveBetween(String value1, String value2) { + addCriterion("img_five between", value1, value2, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgFiveNotBetween(String value1, String value2) { + addCriterion("img_five not between", value1, value2, "imgFive"); + return (Criteria) this; + } + + public Criteria andImgSixIsNull() { + addCriterion("img_six is null"); + return (Criteria) this; + } + + public Criteria andImgSixIsNotNull() { + addCriterion("img_six is not null"); + return (Criteria) this; + } + + public Criteria andImgSixEqualTo(String value) { + addCriterion("img_six =", value, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixNotEqualTo(String value) { + addCriterion("img_six <>", value, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixGreaterThan(String value) { + addCriterion("img_six >", value, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixGreaterThanOrEqualTo(String value) { + addCriterion("img_six >=", value, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixLessThan(String value) { + addCriterion("img_six <", value, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixLessThanOrEqualTo(String value) { + addCriterion("img_six <=", value, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixLike(String value) { + addCriterion("img_six like", value, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixNotLike(String value) { + addCriterion("img_six not like", value, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixIn(List values) { + addCriterion("img_six in", values, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixNotIn(List values) { + addCriterion("img_six not in", values, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixBetween(String value1, String value2) { + addCriterion("img_six between", value1, value2, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSixNotBetween(String value1, String value2) { + addCriterion("img_six not between", value1, value2, "imgSix"); + return (Criteria) this; + } + + public Criteria andImgSevenIsNull() { + addCriterion("img_seven is null"); + return (Criteria) this; + } + + public Criteria andImgSevenIsNotNull() { + addCriterion("img_seven is not null"); + return (Criteria) this; + } + + public Criteria andImgSevenEqualTo(String value) { + addCriterion("img_seven =", value, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenNotEqualTo(String value) { + addCriterion("img_seven <>", value, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenGreaterThan(String value) { + addCriterion("img_seven >", value, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenGreaterThanOrEqualTo(String value) { + addCriterion("img_seven >=", value, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenLessThan(String value) { + addCriterion("img_seven <", value, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenLessThanOrEqualTo(String value) { + addCriterion("img_seven <=", value, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenLike(String value) { + addCriterion("img_seven like", value, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenNotLike(String value) { + addCriterion("img_seven not like", value, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenIn(List values) { + addCriterion("img_seven in", values, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenNotIn(List values) { + addCriterion("img_seven not in", values, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenBetween(String value1, String value2) { + addCriterion("img_seven between", value1, value2, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgSevenNotBetween(String value1, String value2) { + addCriterion("img_seven not between", value1, value2, "imgSeven"); + return (Criteria) this; + } + + public Criteria andImgEightIsNull() { + addCriterion("img_eight is null"); + return (Criteria) this; + } + + public Criteria andImgEightIsNotNull() { + addCriterion("img_eight is not null"); + return (Criteria) this; + } + + public Criteria andImgEightEqualTo(String value) { + addCriterion("img_eight =", value, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightNotEqualTo(String value) { + addCriterion("img_eight <>", value, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightGreaterThan(String value) { + addCriterion("img_eight >", value, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightGreaterThanOrEqualTo(String value) { + addCriterion("img_eight >=", value, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightLessThan(String value) { + addCriterion("img_eight <", value, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightLessThanOrEqualTo(String value) { + addCriterion("img_eight <=", value, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightLike(String value) { + addCriterion("img_eight like", value, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightNotLike(String value) { + addCriterion("img_eight not like", value, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightIn(List values) { + addCriterion("img_eight in", values, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightNotIn(List values) { + addCriterion("img_eight not in", values, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightBetween(String value1, String value2) { + addCriterion("img_eight between", value1, value2, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgEightNotBetween(String value1, String value2) { + addCriterion("img_eight not between", value1, value2, "imgEight"); + return (Criteria) this; + } + + public Criteria andImgNineIsNull() { + addCriterion("img_nine is null"); + return (Criteria) this; + } + + public Criteria andImgNineIsNotNull() { + addCriterion("img_nine is not null"); + return (Criteria) this; + } + + public Criteria andImgNineEqualTo(String value) { + addCriterion("img_nine =", value, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineNotEqualTo(String value) { + addCriterion("img_nine <>", value, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineGreaterThan(String value) { + addCriterion("img_nine >", value, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineGreaterThanOrEqualTo(String value) { + addCriterion("img_nine >=", value, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineLessThan(String value) { + addCriterion("img_nine <", value, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineLessThanOrEqualTo(String value) { + addCriterion("img_nine <=", value, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineLike(String value) { + addCriterion("img_nine like", value, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineNotLike(String value) { + addCriterion("img_nine not like", value, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineIn(List values) { + addCriterion("img_nine in", values, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineNotIn(List values) { + addCriterion("img_nine not in", values, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineBetween(String value1, String value2) { + addCriterion("img_nine between", value1, value2, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgNineNotBetween(String value1, String value2) { + addCriterion("img_nine not between", value1, value2, "imgNine"); + return (Criteria) this; + } + + public Criteria andImgTenIsNull() { + addCriterion("img_ten is null"); + return (Criteria) this; + } + + public Criteria andImgTenIsNotNull() { + addCriterion("img_ten is not null"); + return (Criteria) this; + } + + public Criteria andImgTenEqualTo(String value) { + addCriterion("img_ten =", value, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenNotEqualTo(String value) { + addCriterion("img_ten <>", value, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenGreaterThan(String value) { + addCriterion("img_ten >", value, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenGreaterThanOrEqualTo(String value) { + addCriterion("img_ten >=", value, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenLessThan(String value) { + addCriterion("img_ten <", value, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenLessThanOrEqualTo(String value) { + addCriterion("img_ten <=", value, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenLike(String value) { + addCriterion("img_ten like", value, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenNotLike(String value) { + addCriterion("img_ten not like", value, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenIn(List values) { + addCriterion("img_ten in", values, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenNotIn(List values) { + addCriterion("img_ten not in", values, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenBetween(String value1, String value2) { + addCriterion("img_ten between", value1, value2, "imgTen"); + return (Criteria) this; + } + + public Criteria andImgTenNotBetween(String value1, String value2) { + addCriterion("img_ten not between", value1, value2, "imgTen"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/FbqdAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/FbqdAnswer.java index 0e97fd5..c96a9eb 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/FbqdAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/FbqdAnswer.java @@ -11,28 +11,28 @@ public class FbqdAnswer { @ApiModelProperty(notes = "主键(格式:FBQDA_时间戳_哈希值,例:FBQDA_2023110614_9d7b6c5e)") private String id; - @ApiModelProperty(notes = "分析模块(数据标准化结果/渠道中的比重/信息熵/指标的权重/综合评分)") + @ApiModelProperty(notes = "分析模块") private String module; @ApiModelProperty(notes = "用户ID(关联userinfo表)") private String userId; - @ApiModelProperty(notes = "曝光量数据(JSON数组格式,如[1200,1500,1800])") + @ApiModelProperty(notes = "1.数据标准化结果(以逗号隔开,没做就为空)") private String exposureData; - @ApiModelProperty(notes = "点击量数据(JSON数组格式,如[300,350,400])") + @ApiModelProperty(notes = "2.每个渠道中的比重(以逗号隔开,没做就为空)") private String clickData; - @ApiModelProperty(notes = "广告费用数据(JSON数组格式,单位:元)") + @ApiModelProperty(notes = "3.每个指标的信息熵(以逗号隔开,没做就为空)") private String adCost; - @ApiModelProperty(notes = "订单金额数据(JSON数组格式,单位:元)") + @ApiModelProperty(notes = "4.计算每个指标的权重(以逗号隔开,没做就为空)") private String orderAmount; - @ApiModelProperty(notes = "核心关键词(多个关键词用逗号分隔)") + @ApiModelProperty(notes = "5.综合评分(以逗号隔开,没做就为空)") private String keywords; - @ApiModelProperty(notes = "场景推广方案(500字以内)") + @ApiModelProperty(notes = "主观题") private String scenePromotion; @ApiModelProperty(notes = "人群推广方案(500字以内)") diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/FbqdStuAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/FbqdStuAnswer.java index 3ec0206..60741ca 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/FbqdStuAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/FbqdStuAnswer.java @@ -1,49 +1,41 @@ package com.sztzjy.linkCommerce.entity; -import java.util.Date; - import io.swagger.annotations.ApiModelProperty; /** - * 学生发布渠道分析答案表(含投放效果数据) + * 发布渠道分析结果表(含多维度投放数据) * * @author whb * fbqd_stu_answer */ public class FbqdStuAnswer { - @ApiModelProperty(notes = "主键(格式:FBQDSA_时间戳_哈希值,例:FBQDSA_2023110614_9d7b6c5e)") + @ApiModelProperty(notes = "主键(格式:FBQDA_时间戳_哈希值,例:FBQDA_2023110614_9d7b6c5e)") private String id; - @ApiModelProperty(notes = "分析模块(数据标准化结果/渠道中的比重/信息熵/指标的权重/综合评分)") + @ApiModelProperty(notes = "分析模块") private String module; @ApiModelProperty(notes = "用户ID(关联userinfo表)") private String userId; - @ApiModelProperty(notes = "提交时间") - private Date submitTime; - - @ApiModelProperty(notes = "状态(0-未提交,1-已提交,2-已批改)") - private Byte status; - - @ApiModelProperty(notes = "曝光量数据(JSON数组格式,如[1200,1500,1800],单位:次)") + @ApiModelProperty(notes = "1.数据标准化结果(以逗号隔开,没做就为空)") private String exposureData; - @ApiModelProperty(notes = "点击量数据(JSON数组格式,如[300,350,400],单位:次)") + @ApiModelProperty(notes = "2.每个渠道中的比重(以逗号隔开,没做就为空)") private String clickData; - @ApiModelProperty(notes = "广告费用数据(JSON数组格式,如[5000,6000,7000],单位:元)") + @ApiModelProperty(notes = "3.每个指标的信息熵(以逗号隔开,没做就为空)") private String adCost; - @ApiModelProperty(notes = "订单金额数据(JSON数组格式,如[12000,15000,18000],单位:元)") + @ApiModelProperty(notes = "4.计算每个指标的权重(以逗号隔开,没做就为空)") private String orderAmount; - @ApiModelProperty(notes = "核心关键词(多个用逗号分隔,") + @ApiModelProperty(notes = "5.综合评分(以逗号隔开,没做就为空)") private String keywords; - @ApiModelProperty(notes = "场景推广方案(500字以内描述)") + @ApiModelProperty(notes = "主观题") private String scenePromotion; - @ApiModelProperty(notes = "人群推广方案(500字以内描述)") + @ApiModelProperty(notes = "人群推广方案(500字以内)") private String crowdPromotion; public String getId() { @@ -70,22 +62,6 @@ public class FbqdStuAnswer { this.userId = userId == null ? null : userId.trim(); } - public Date getSubmitTime() { - return submitTime; - } - - public void setSubmitTime(Date submitTime) { - this.submitTime = submitTime; - } - - public Byte getStatus() { - return status; - } - - public void setStatus(Byte status) { - this.status = status; - } - public String getExposureData() { return exposureData; } diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/FbqdStuAnswerExample.java b/src/main/java/com/sztzjy/linkCommerce/entity/FbqdStuAnswerExample.java index 694ba9b..1e25a54 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/FbqdStuAnswerExample.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/FbqdStuAnswerExample.java @@ -1,7 +1,6 @@ package com.sztzjy.linkCommerce.entity; import java.util.ArrayList; -import java.util.Date; import java.util.List; public class FbqdStuAnswerExample { @@ -314,126 +313,6 @@ public class FbqdStuAnswerExample { addCriterion("user_id not between", value1, value2, "userId"); return (Criteria) this; } - - public Criteria andSubmitTimeIsNull() { - addCriterion("submit_time is null"); - return (Criteria) this; - } - - public Criteria andSubmitTimeIsNotNull() { - addCriterion("submit_time is not null"); - return (Criteria) this; - } - - public Criteria andSubmitTimeEqualTo(Date value) { - addCriterion("submit_time =", value, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeNotEqualTo(Date value) { - addCriterion("submit_time <>", value, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeGreaterThan(Date value) { - addCriterion("submit_time >", value, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeGreaterThanOrEqualTo(Date value) { - addCriterion("submit_time >=", value, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeLessThan(Date value) { - addCriterion("submit_time <", value, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeLessThanOrEqualTo(Date value) { - addCriterion("submit_time <=", value, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeIn(List values) { - addCriterion("submit_time in", values, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeNotIn(List values) { - addCriterion("submit_time not in", values, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeBetween(Date value1, Date value2) { - addCriterion("submit_time between", value1, value2, "submitTime"); - return (Criteria) this; - } - - public Criteria andSubmitTimeNotBetween(Date value1, Date value2) { - addCriterion("submit_time not between", value1, value2, "submitTime"); - return (Criteria) this; - } - - public Criteria andStatusIsNull() { - addCriterion("status is null"); - return (Criteria) this; - } - - public Criteria andStatusIsNotNull() { - addCriterion("status is not null"); - return (Criteria) this; - } - - public Criteria andStatusEqualTo(Byte value) { - addCriterion("status =", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotEqualTo(Byte value) { - addCriterion("status <>", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThan(Byte value) { - addCriterion("status >", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThanOrEqualTo(Byte value) { - addCriterion("status >=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThan(Byte value) { - addCriterion("status <", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThanOrEqualTo(Byte value) { - addCriterion("status <=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusIn(List values) { - addCriterion("status in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotIn(List values) { - addCriterion("status not in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusBetween(Byte value1, Byte value2) { - addCriterion("status between", value1, value2, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotBetween(Byte value1, Byte value2) { - addCriterion("status not between", value1, value2, "status"); - return (Criteria) this; - } } public static class Criteria extends GeneratedCriteria { diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/StuUploadExperment.java b/src/main/java/com/sztzjy/linkCommerce/entity/StuUploadExperment.java new file mode 100644 index 0000000..ad1f218 --- /dev/null +++ b/src/main/java/com/sztzjy/linkCommerce/entity/StuUploadExperment.java @@ -0,0 +1,110 @@ +package com.sztzjy.linkCommerce.entity; + +import io.swagger.annotations.ApiModelProperty; + +import java.util.Date; +/** + * 学生端AI文件上传记录 + * + * @author whb + * stu_upload_experment + */ +public class StuUploadExperment { + private Integer id; + + @ApiModelProperty(notes = "用户id") + private String userId; + + @ApiModelProperty(notes = "图片路径") + private String filePath; + + @ApiModelProperty(notes = "创建时间") + private Date createTime; + + @ApiModelProperty(notes = "文件大小") + private Double fileSize; + + @ApiModelProperty(notes = "文件名") + private String fileName; + + @ApiModelProperty(notes = "模块名") + private String module; + + @ApiModelProperty(notes = "更新时间") + private Date updateTime; + + @ApiModelProperty(notes = "文件后缀") + private String sufxx; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId == null ? null : userId.trim(); + } + + public String getFilePath() { + return filePath; + } + + public void setFilePath(String filePath) { + this.filePath = filePath == null ? null : filePath.trim(); + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Double getFileSize() { + return fileSize; + } + + public void setFileSize(Double fileSize) { + this.fileSize = fileSize; + } + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName == null ? null : fileName.trim(); + } + + public String getModule() { + return module; + } + + public void setModule(String module) { + this.module = module == null ? null : module.trim(); + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public String getSufxx() { + return sufxx; + } + + public void setSufxx(String sufxx) { + this.sufxx = sufxx == null ? null : sufxx.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/StuUploadExpermentExample.java b/src/main/java/com/sztzjy/linkCommerce/entity/StuUploadExpermentExample.java new file mode 100644 index 0000000..f685d39 --- /dev/null +++ b/src/main/java/com/sztzjy/linkCommerce/entity/StuUploadExpermentExample.java @@ -0,0 +1,790 @@ +package com.sztzjy.linkCommerce.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class StuUploadExpermentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public StuUploadExpermentExample() { + oredCriteria = new ArrayList<>(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(String value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(String value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(String value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(String value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(String value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(String value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLike(String value) { + addCriterion("user_id like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotLike(String value) { + addCriterion("user_id not like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(String value1, String value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(String value1, String value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andFilePathIsNull() { + addCriterion("file_path is null"); + return (Criteria) this; + } + + public Criteria andFilePathIsNotNull() { + addCriterion("file_path is not null"); + return (Criteria) this; + } + + public Criteria andFilePathEqualTo(String value) { + addCriterion("file_path =", value, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathNotEqualTo(String value) { + addCriterion("file_path <>", value, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathGreaterThan(String value) { + addCriterion("file_path >", value, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathGreaterThanOrEqualTo(String value) { + addCriterion("file_path >=", value, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathLessThan(String value) { + addCriterion("file_path <", value, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathLessThanOrEqualTo(String value) { + addCriterion("file_path <=", value, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathLike(String value) { + addCriterion("file_path like", value, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathNotLike(String value) { + addCriterion("file_path not like", value, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathIn(List values) { + addCriterion("file_path in", values, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathNotIn(List values) { + addCriterion("file_path not in", values, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathBetween(String value1, String value2) { + addCriterion("file_path between", value1, value2, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathNotBetween(String value1, String value2) { + addCriterion("file_path not between", value1, value2, "filePath"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andFileSizeIsNull() { + addCriterion("file_size is null"); + return (Criteria) this; + } + + public Criteria andFileSizeIsNotNull() { + addCriterion("file_size is not null"); + return (Criteria) this; + } + + public Criteria andFileSizeEqualTo(Double value) { + addCriterion("file_size =", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeNotEqualTo(Double value) { + addCriterion("file_size <>", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeGreaterThan(Double value) { + addCriterion("file_size >", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeGreaterThanOrEqualTo(Double value) { + addCriterion("file_size >=", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeLessThan(Double value) { + addCriterion("file_size <", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeLessThanOrEqualTo(Double value) { + addCriterion("file_size <=", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeIn(List values) { + addCriterion("file_size in", values, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeNotIn(List values) { + addCriterion("file_size not in", values, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeBetween(Double value1, Double value2) { + addCriterion("file_size between", value1, value2, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeNotBetween(Double value1, Double value2) { + addCriterion("file_size not between", value1, value2, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileNameIsNull() { + addCriterion("file_name is null"); + return (Criteria) this; + } + + public Criteria andFileNameIsNotNull() { + addCriterion("file_name is not null"); + return (Criteria) this; + } + + public Criteria andFileNameEqualTo(String value) { + addCriterion("file_name =", value, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameNotEqualTo(String value) { + addCriterion("file_name <>", value, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameGreaterThan(String value) { + addCriterion("file_name >", value, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameGreaterThanOrEqualTo(String value) { + addCriterion("file_name >=", value, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameLessThan(String value) { + addCriterion("file_name <", value, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameLessThanOrEqualTo(String value) { + addCriterion("file_name <=", value, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameLike(String value) { + addCriterion("file_name like", value, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameNotLike(String value) { + addCriterion("file_name not like", value, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameIn(List values) { + addCriterion("file_name in", values, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameNotIn(List values) { + addCriterion("file_name not in", values, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameBetween(String value1, String value2) { + addCriterion("file_name between", value1, value2, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameNotBetween(String value1, String value2) { + addCriterion("file_name not between", value1, value2, "fileName"); + return (Criteria) this; + } + + public Criteria andModuleIsNull() { + addCriterion("module is null"); + return (Criteria) this; + } + + public Criteria andModuleIsNotNull() { + addCriterion("module is not null"); + return (Criteria) this; + } + + public Criteria andModuleEqualTo(String value) { + addCriterion("module =", value, "module"); + return (Criteria) this; + } + + public Criteria andModuleNotEqualTo(String value) { + addCriterion("module <>", value, "module"); + return (Criteria) this; + } + + public Criteria andModuleGreaterThan(String value) { + addCriterion("module >", value, "module"); + return (Criteria) this; + } + + public Criteria andModuleGreaterThanOrEqualTo(String value) { + addCriterion("module >=", value, "module"); + return (Criteria) this; + } + + public Criteria andModuleLessThan(String value) { + addCriterion("module <", value, "module"); + return (Criteria) this; + } + + public Criteria andModuleLessThanOrEqualTo(String value) { + addCriterion("module <=", value, "module"); + return (Criteria) this; + } + + public Criteria andModuleLike(String value) { + addCriterion("module like", value, "module"); + return (Criteria) this; + } + + public Criteria andModuleNotLike(String value) { + addCriterion("module not like", value, "module"); + return (Criteria) this; + } + + public Criteria andModuleIn(List values) { + addCriterion("module in", values, "module"); + return (Criteria) this; + } + + public Criteria andModuleNotIn(List values) { + addCriterion("module not in", values, "module"); + return (Criteria) this; + } + + public Criteria andModuleBetween(String value1, String value2) { + addCriterion("module between", value1, value2, "module"); + return (Criteria) this; + } + + public Criteria andModuleNotBetween(String value1, String value2) { + addCriterion("module not between", value1, value2, "module"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andSufxxIsNull() { + addCriterion("sufxx is null"); + return (Criteria) this; + } + + public Criteria andSufxxIsNotNull() { + addCriterion("sufxx is not null"); + return (Criteria) this; + } + + public Criteria andSufxxEqualTo(String value) { + addCriterion("sufxx =", value, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxNotEqualTo(String value) { + addCriterion("sufxx <>", value, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxGreaterThan(String value) { + addCriterion("sufxx >", value, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxGreaterThanOrEqualTo(String value) { + addCriterion("sufxx >=", value, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxLessThan(String value) { + addCriterion("sufxx <", value, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxLessThanOrEqualTo(String value) { + addCriterion("sufxx <=", value, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxLike(String value) { + addCriterion("sufxx like", value, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxNotLike(String value) { + addCriterion("sufxx not like", value, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxIn(List values) { + addCriterion("sufxx in", values, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxNotIn(List values) { + addCriterion("sufxx not in", values, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxBetween(String value1, String value2) { + addCriterion("sufxx between", value1, value2, "sufxx"); + return (Criteria) this; + } + + public Criteria andSufxxNotBetween(String value1, String value2) { + addCriterion("sufxx not between", value1, value2, "sufxx"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/mapper/CpcyhdwAnswerMapper.java b/src/main/java/com/sztzjy/linkCommerce/mapper/CpcyhdwAnswerMapper.java index 4178836..eb65543 100644 --- a/src/main/java/com/sztzjy/linkCommerce/mapper/CpcyhdwAnswerMapper.java +++ b/src/main/java/com/sztzjy/linkCommerce/mapper/CpcyhdwAnswerMapper.java @@ -16,15 +16,21 @@ public interface CpcyhdwAnswerMapper { int insertSelective(CpcyhdwAnswer record); + List selectByExampleWithBLOBs(CpcyhdwAnswerExample example); + List selectByExample(CpcyhdwAnswerExample example); CpcyhdwAnswer selectByPrimaryKey(String id); int updateByExampleSelective(@Param("record") CpcyhdwAnswer record, @Param("example") CpcyhdwAnswerExample example); + int updateByExampleWithBLOBs(@Param("record") CpcyhdwAnswer record, @Param("example") CpcyhdwAnswerExample example); + int updateByExample(@Param("record") CpcyhdwAnswer record, @Param("example") CpcyhdwAnswerExample example); int updateByPrimaryKeySelective(CpcyhdwAnswer record); + int updateByPrimaryKeyWithBLOBs(CpcyhdwAnswer record); + int updateByPrimaryKey(CpcyhdwAnswer record); } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/mapper/CpcyhdwStuAnswerMapper.java b/src/main/java/com/sztzjy/linkCommerce/mapper/CpcyhdwStuAnswerMapper.java index 05f991d..f9fbe26 100644 --- a/src/main/java/com/sztzjy/linkCommerce/mapper/CpcyhdwStuAnswerMapper.java +++ b/src/main/java/com/sztzjy/linkCommerce/mapper/CpcyhdwStuAnswerMapper.java @@ -16,15 +16,21 @@ public interface CpcyhdwStuAnswerMapper { int insertSelective(CpcyhdwStuAnswer record); + List selectByExampleWithBLOBs(CpcyhdwStuAnswerExample example); + List selectByExample(CpcyhdwStuAnswerExample example); CpcyhdwStuAnswer selectByPrimaryKey(String id); int updateByExampleSelective(@Param("record") CpcyhdwStuAnswer record, @Param("example") CpcyhdwStuAnswerExample example); + int updateByExampleWithBLOBs(@Param("record") CpcyhdwStuAnswer record, @Param("example") CpcyhdwStuAnswerExample example); + int updateByExample(@Param("record") CpcyhdwStuAnswer record, @Param("example") CpcyhdwStuAnswerExample example); int updateByPrimaryKeySelective(CpcyhdwStuAnswer record); + int updateByPrimaryKeyWithBLOBs(CpcyhdwStuAnswer record); + int updateByPrimaryKey(CpcyhdwStuAnswer record); } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/mapper/StuUploadExpermentMapper.java b/src/main/java/com/sztzjy/linkCommerce/mapper/StuUploadExpermentMapper.java new file mode 100644 index 0000000..c0fd07c --- /dev/null +++ b/src/main/java/com/sztzjy/linkCommerce/mapper/StuUploadExpermentMapper.java @@ -0,0 +1,35 @@ +package com.sztzjy.linkCommerce.mapper; + +import com.sztzjy.linkCommerce.entity.StuUploadExperment; +import com.sztzjy.linkCommerce.entity.StuUploadExpermentExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface StuUploadExpermentMapper { + long countByExample(StuUploadExpermentExample example); + + int deleteByExample(StuUploadExpermentExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(StuUploadExperment record); + + int insertSelective(StuUploadExperment record); + + List selectByExample(StuUploadExpermentExample example); + + StuUploadExperment selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") StuUploadExperment record, @Param("example") StuUploadExpermentExample example); + + int updateByExample(@Param("record") StuUploadExperment record, @Param("example") StuUploadExpermentExample example); + + int updateByPrimaryKeySelective(StuUploadExperment record); + + int updateByPrimaryKey(StuUploadExperment record); + + //批量删除学生上传的附件作业 + void deleteList(@Param("ids") List ids); + +} \ No newline at end of file diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 1467da8..42ebea7 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -11,14 +11,14 @@ spring: # 文件存储 file: type: local - path: /usr/local/tianzeProject/link_commerce/uploadFile -# path: D:/tianzeProject/digitalTrade/ -# url: "https://szmy.sztzjy.com:218/file" + #path: /usr/local/tianzeProject/link_commerce/uploadFile + path: D:/tianzeProject/linkCommerce/ + url: "http://192.168.2.8:330/file" item: - name: trade + name: linkCommerce diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml index f77e8ee..cd66c73 100644 --- a/src/main/resources/generatorConfig.xml +++ b/src/main/resources/generatorConfig.xml @@ -50,42 +50,43 @@ - -
-
-
-
-
-
-
-
+ + + + + + + + +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/mappers/CpcyhdwAnswerMapper.xml b/src/main/resources/mappers/CpcyhdwAnswerMapper.xml index 5d7b9d6..6d5bf7b 100644 --- a/src/main/resources/mappers/CpcyhdwAnswerMapper.xml +++ b/src/main/resources/mappers/CpcyhdwAnswerMapper.xml @@ -3,9 +3,15 @@ - - + + + + + + + + @@ -66,8 +72,27 @@ - id, competitive_position_score, market_attractiveness_score, user_id + id, competitive_position_score, market_attractiveness_score, user_id, create_time + + + competitive_position, market_attractive, context + - select + , + from cpcyhdw_answer where id = #{id,jdbcType=VARCHAR} @@ -100,9 +127,11 @@ insert into cpcyhdw_answer (id, competitive_position_score, market_attractiveness_score, - user_id) - values (#{id,jdbcType=VARCHAR}, #{competitivePositionScore,jdbcType=DECIMAL}, #{marketAttractivenessScore,jdbcType=DECIMAL}, - #{userId,jdbcType=VARCHAR}) + user_id, create_time, competitive_position, + market_attractive, context) + values (#{id,jdbcType=VARCHAR}, #{competitivePositionScore,jdbcType=DOUBLE}, #{marketAttractivenessScore,jdbcType=DOUBLE}, + #{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{competitivePosition,jdbcType=LONGVARCHAR}, + #{marketAttractive,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR}) insert into cpcyhdw_answer @@ -119,20 +148,44 @@ user_id, + + create_time, + + + competitive_position, + + + market_attractive, + + + context, + #{id,jdbcType=VARCHAR}, - #{competitivePositionScore,jdbcType=DECIMAL}, + #{competitivePositionScore,jdbcType=DOUBLE}, - #{marketAttractivenessScore,jdbcType=DECIMAL}, + #{marketAttractivenessScore,jdbcType=DOUBLE}, #{userId,jdbcType=VARCHAR}, + + #{createTime,jdbcType=TIMESTAMP}, + + + #{competitivePosition,jdbcType=LONGVARCHAR}, + + + #{marketAttractive,jdbcType=LONGVARCHAR}, + + + #{context,jdbcType=LONGVARCHAR}, + + select + + distinct + + + , + + from cpcyhdw_stu_answer + + + + + order by ${orderByClause} + + - select + , + from cpcyhdw_stu_answer where id = #{id,jdbcType=VARCHAR} @@ -100,9 +127,11 @@ insert into cpcyhdw_stu_answer (id, competitive_position_score, market_attractiveness_score, - user_id) + user_id, create_time, competitive_position, + market_attractive, context) values (#{id,jdbcType=VARCHAR}, #{competitivePositionScore,jdbcType=DECIMAL}, #{marketAttractivenessScore,jdbcType=DECIMAL}, - #{userId,jdbcType=VARCHAR}) + #{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{competitivePosition,jdbcType=LONGVARCHAR}, + #{marketAttractive,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR}) insert into cpcyhdw_stu_answer @@ -119,6 +148,18 @@ user_id, + + create_time, + + + competitive_position, + + + market_attractive, + + + context, + @@ -133,6 +174,18 @@ #{userId,jdbcType=VARCHAR}, + + #{createTime,jdbcType=TIMESTAMP}, + + + #{competitivePosition,jdbcType=LONGVARCHAR}, + + + #{marketAttractive,jdbcType=LONGVARCHAR}, + + + #{context,jdbcType=LONGVARCHAR}, + select @@ -140,14 +152,22 @@ popular_product1, popular_product2, popular_product3, main_product, traffic_product, daily_product, event_product, profit_product, flagship_product, - user_id, product_categories, rationality, - optimization_suggestions) + user_id, img_one, img_two, + img_three, img_four, img_five, + img_six, img_seven, img_eight, + img_nine, img_ten, product_categories, + rationality, optimization_suggestions, + context) values (#{id,jdbcType=VARCHAR}, #{taobaoUrl,jdbcType=VARCHAR}, #{imageProduct,jdbcType=VARCHAR}, #{popularProduct1,jdbcType=VARCHAR}, #{popularProduct2,jdbcType=VARCHAR}, #{popularProduct3,jdbcType=VARCHAR}, #{mainProduct,jdbcType=VARCHAR}, #{trafficProduct,jdbcType=VARCHAR}, #{dailyProduct,jdbcType=VARCHAR}, #{eventProduct,jdbcType=VARCHAR}, #{profitProduct,jdbcType=VARCHAR}, #{flagshipProduct,jdbcType=VARCHAR}, - #{userId,jdbcType=VARCHAR}, #{productCategories,jdbcType=LONGVARCHAR}, #{rationality,jdbcType=LONGVARCHAR}, - #{optimizationSuggestions,jdbcType=LONGVARCHAR}) + #{userId,jdbcType=VARCHAR}, #{imgOne,jdbcType=VARCHAR}, #{imgTwo,jdbcType=VARCHAR}, + #{imgThree,jdbcType=VARCHAR}, #{imgFour,jdbcType=VARCHAR}, #{imgFive,jdbcType=VARCHAR}, + #{imgSix,jdbcType=VARCHAR}, #{imgSeven,jdbcType=VARCHAR}, #{imgEight,jdbcType=VARCHAR}, + #{imgNine,jdbcType=VARCHAR}, #{imgTen,jdbcType=VARCHAR}, #{productCategories,jdbcType=LONGVARCHAR}, + #{rationality,jdbcType=LONGVARCHAR}, #{optimizationSuggestions,jdbcType=LONGVARCHAR}, + #{context,jdbcType=LONGVARCHAR}) insert into cpjggh_stu_answer @@ -191,6 +211,36 @@ user_id, + + img_one, + + + img_two, + + + img_three, + + + img_four, + + + img_five, + + + img_six, + + + img_seven, + + + img_eight, + + + img_nine, + + + img_ten, + product_categories, @@ -200,6 +250,9 @@ optimization_suggestions, + + context, + @@ -241,6 +294,36 @@ #{userId,jdbcType=VARCHAR}, + + #{imgOne,jdbcType=VARCHAR}, + + + #{imgTwo,jdbcType=VARCHAR}, + + + #{imgThree,jdbcType=VARCHAR}, + + + #{imgFour,jdbcType=VARCHAR}, + + + #{imgFive,jdbcType=VARCHAR}, + + + #{imgSix,jdbcType=VARCHAR}, + + + #{imgSeven,jdbcType=VARCHAR}, + + + #{imgEight,jdbcType=VARCHAR}, + + + #{imgNine,jdbcType=VARCHAR}, + + + #{imgTen,jdbcType=VARCHAR}, + #{productCategories,jdbcType=LONGVARCHAR}, @@ -250,6 +333,9 @@ #{optimizationSuggestions,jdbcType=LONGVARCHAR}, + + #{context,jdbcType=LONGVARCHAR}, + + select + + distinct + + + from stu_upload_experment + + + + + order by ${orderByClause} + + + + + delete from stu_upload_experment + where id = #{id,jdbcType=INTEGER} + + + delete from stu_upload_experment + + + + + + insert into stu_upload_experment (id, user_id, file_path, + create_time, file_size, file_name, + module, update_time, sufxx + ) + values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, #{fileSize,jdbcType=DOUBLE}, #{fileName,jdbcType=VARCHAR}, + #{module,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{sufxx,jdbcType=VARCHAR} + ) + + + insert into stu_upload_experment + + + id, + + + user_id, + + + file_path, + + + create_time, + + + file_size, + + + file_name, + + + module, + + + update_time, + + + sufxx, + + + + + #{id,jdbcType=INTEGER}, + + + #{userId,jdbcType=VARCHAR}, + + + #{filePath,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{fileSize,jdbcType=DOUBLE}, + + + #{fileName,jdbcType=VARCHAR}, + + + #{module,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{sufxx,jdbcType=VARCHAR}, + + + + + + update stu_upload_experment + + + id = #{record.id,jdbcType=INTEGER}, + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + file_path = #{record.filePath,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + file_size = #{record.fileSize,jdbcType=DOUBLE}, + + + file_name = #{record.fileName,jdbcType=VARCHAR}, + + + module = #{record.module,jdbcType=VARCHAR}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + sufxx = #{record.sufxx,jdbcType=VARCHAR}, + + + + + + + + update stu_upload_experment + set id = #{record.id,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=VARCHAR}, + file_path = #{record.filePath,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + file_size = #{record.fileSize,jdbcType=DOUBLE}, + file_name = #{record.fileName,jdbcType=VARCHAR}, + module = #{record.module,jdbcType=VARCHAR}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + sufxx = #{record.sufxx,jdbcType=VARCHAR} + + + + + + update stu_upload_experment + + + user_id = #{userId,jdbcType=VARCHAR}, + + + file_path = #{filePath,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + file_size = #{fileSize,jdbcType=DOUBLE}, + + + file_name = #{fileName,jdbcType=VARCHAR}, + + + module = #{module,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + sufxx = #{sufxx,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update stu_upload_experment + set user_id = #{userId,jdbcType=VARCHAR}, + file_path = #{filePath,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + file_size = #{fileSize,jdbcType=DOUBLE}, + file_name = #{fileName,jdbcType=VARCHAR}, + module = #{module,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + sufxx = #{sufxx,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + + delete from stu_upload_experment where id in + + #{id} + + + \ No newline at end of file