diff --git a/src/main/java/com/sztzjy/linkCommerce/controller/stu/CptfController.java b/src/main/java/com/sztzjy/linkCommerce/controller/stu/CptfController.java index 1bc24b1..9f9c926 100644 --- a/src/main/java/com/sztzjy/linkCommerce/controller/stu/CptfController.java +++ b/src/main/java/com/sztzjy/linkCommerce/controller/stu/CptfController.java @@ -43,6 +43,7 @@ public class CptfController { + @Autowired StuGradeMapper stuGradeMapper; @Autowired @@ -54,49 +55,210 @@ public class CptfController { public String url; - @PostMapping("/commitCpdjAnswer") - @ApiOperation("发布渠道-提交") +// @PostMapping("/commitCpdjAnswer") +// @ApiOperation("发布渠道-提交") +// @AnonymousAccess +// public ResultEntity commitFbqdAnswer(@RequestBody FbqdStuAnswer stuAnswer) { +// //先查询是否提交过 +// StuGradeExample stuGradeExample = new StuGradeExample(); +// stuGradeExample.createCriteria().andUserIdEqualTo(stuAnswer.getUserId()).andProjectEqualTo(Constant.PRO_CPTFCS).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_CPTGCS.equals(module)) { + Boolean b=scoreService.deleteScore(userId,Constant.PRO_CPTFCS,module); + if(b){ + CptgcsStuAnswerExample cptgcsStuAnswerExample = new CptgcsStuAnswerExample(); + cptgcsStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + cptgcsStuAnswerMapper.deleteByExample(cptgcsStuAnswerExample); + 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, "重新实训失败"); + + } + + + + @Autowired + private CptgcsAnswerMapper cptgcsAnswerMapper; + + @Autowired + private CptgcsStuAnswerMapper cptgcsStuAnswerMapper; + + + + @PostMapping("/commitCptgcsAnswer") + @ApiOperation("发布推广测试-提交") @AnonymousAccess - public ResultEntity commitFbqdAnswer(@RequestBody FbqdStuAnswer stuAnswer) { + public ResultEntity commitCptgcsAnswer(@RequestBody CptgcsStuAnswer stuAnswer) { //先查询是否提交过 StuGradeExample stuGradeExample = new StuGradeExample(); - stuGradeExample.createCriteria().andUserIdEqualTo(stuAnswer.getUserId()).andProjectEqualTo(Constant.PRO_CPGH).andModuleEqualTo(Constant.MODULE_CPDJ); + stuGradeExample.createCriteria().andUserIdEqualTo(stuAnswer.getUserId()).andProjectEqualTo(Constant.PRO_CPTFCS).andModuleEqualTo(Constant.MODULE_CPTGCS); List stuGradeList = stuGradeMapper.selectByExampleWithBLOBs(stuGradeExample); if(CollectionUtils.isEmpty(stuGradeList)){ - FbqdAnswer answer = fbqdAnswerMapper.selectByExampleWithBLOBs(new FbqdAnswerExample()).get(0); + CptgcsAnswer answer = cptgcsAnswerMapper.selectByExampleWithBLOBs(new CptgcsAnswerExample()).get(0); int count = 0; - //1.数据标准化结果 - String stuExposureData = stuAnswer.getExposureData(); + //1.产品点击率 + String stuAnswerClickRate = stuAnswer.getClickRate(); - String exposureData = answer.getExposureData(); - //数据标准化结果 校验 + String clickRate = answer.getClickRate(); + //产品点击率 校验 //错误次数 - int monthlyDataErrorCount =compareListsUtil.compareErrorCount(stuExposureData, exposureData).getErrorCount(); + int monthlyDataErrorCount =compareListsUtil.compareErrorCount(stuAnswerClickRate, clickRate).getErrorCount(); count = count + monthlyDataErrorCount; - //2.渠道中的比重 - String stuAnswerClickData = stuAnswer.getClickData(); + //2.转化率数据 + String stuAnswerConversionRate = stuAnswer.getConversionRate(); - String clickData = answer.getClickData(); + String conversionRate = answer.getConversionRate(); //错误次数 - int cheapSumCount =compareListsUtil.compareErrorCount(stuAnswerClickData, clickData).getErrorCount(); + int cheapSumCount =compareListsUtil.compareErrorCount(stuAnswerConversionRate, conversionRate).getErrorCount(); count = count + cheapSumCount; - //3.信息滴 - String stuAnswerAdCost = stuAnswer.getAdCost(); + //3.投资回报率数据 + String stuRoiData = stuAnswer.getRoiData(); - String adCost = answer.getAdCost(); + String roiData = answer.getRoiData(); //错误次数 - int cheapPercentageCount =compareListsUtil.compareErrorCount(stuAnswerAdCost, adCost).getErrorCount(); + int cheapPercentageCount =compareListsUtil.compareErrorCount(stuRoiData, roiData).getErrorCount(); count = count + cheapPercentageCount; - //每个指标的权重 + //4.统计量 String stuAnswerOrderAmount = stuAnswer.getOrderAmount(); String orderAmount = answer.getOrderAmount(); @@ -106,24 +268,24 @@ public class CptfController { - //综合评分 - String stuAnswerKeywords = stuAnswer.getKeywords(); + //5.p值 + String stuPValue = stuAnswer.getpValue(); - String keywords = answer.getKeywords(); + String pValue = answer.getpValue(); //错误次数 - int costEffectivePercentageCount =compareListsUtil.compareErrorCount(stuAnswerKeywords, keywords).getErrorCount(); + int costEffectivePercentageCount =compareListsUtil.compareErrorCount(stuPValue, pValue).getErrorCount(); count = count + costEffectivePercentageCount; //主观题 - int i = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getScenePromotion()); + int i = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getContext()); count = count + i; stuAnswer.setId(IdUtil.simpleUUID()); - fbqdStuAnswerMapper.insertSelective(stuAnswer); + cptgcsStuAnswerMapper.insertSelective(stuAnswer); - Boolean aBoolean = scoreService.insertScore(stuAnswer.getUserId(), Constant.PRO_CPTFCS, Constant.MODULE_FBQDPG, BigDecimal.valueOf(100 - count), stuAnswer.getScenePromotion()); + Boolean aBoolean = scoreService.insertScore(stuAnswer.getUserId(), Constant.PRO_CPTFCS, Constant.MODULE_CPTGCS, BigDecimal.valueOf(100 - count), stuAnswer.getContext()); if(aBoolean){ return new ResultEntity<>(HttpStatus.OK, "提交成功"); }else { @@ -141,10 +303,10 @@ public class CptfController { @AnonymousAccess public ResultEntity selectByCpdjUserId(@ApiParam("用户ID") String userId) { - FbqdStuAnswerExample cpdjStuAnswerExample = new FbqdStuAnswerExample(); - cpdjStuAnswerExample.createCriteria().andUserIdEqualTo(userId); + CptgcsStuAnswerExample cptgcsStuAnswerExample = new CptgcsStuAnswerExample(); + cptgcsStuAnswerExample.createCriteria().andUserIdEqualTo(userId); - List stuAnswerList = fbqdStuAnswerMapper.selectByExampleWithBLOBs(cpdjStuAnswerExample); + List< CptgcsStuAnswer> stuAnswerList = cptgcsStuAnswerMapper.selectByExampleWithBLOBs(cptgcsStuAnswerExample); if (CollectionUtils.isEmpty(stuAnswerList)) { return new ResultEntity<>(HttpStatus.OK); @@ -157,57 +319,5 @@ public class CptfController { - @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 dc5c649..6c2237c 100644 --- a/src/main/java/com/sztzjy/linkCommerce/controller/stu/ProductPlanningController.java +++ b/src/main/java/com/sztzjy/linkCommerce/controller/stu/ProductPlanningController.java @@ -207,8 +207,6 @@ public class ProductPlanningController { } - - @GetMapping("/restartTraining") @ApiOperation("产品定价-重新实训") @AnonymousAccess @@ -250,14 +248,10 @@ public class ProductPlanningController { } } - - - return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); } - @PostMapping("/commitCpcyhdwAnswer") @ApiOperation("产品差异化定位-提交") @AnonymousAccess @@ -289,7 +283,6 @@ public class ProductPlanningController { } - @ApiOperation("产品差异化定位-回显接口") @GetMapping("/selectByCpcyhdwUserId") @AnonymousAccess @@ -349,7 +342,6 @@ public class ProductPlanningController { } - @ApiOperation("产品结构规划-回显接口") @GetMapping("/selectByCpjgghUserId") @AnonymousAccess @@ -419,5 +411,4 @@ public class ProductPlanningController { } - } diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswer.java index c16bae5..2315038 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswer.java @@ -74,9 +74,6 @@ public class CpjgghStuAnswer { @ApiModelProperty(notes = "图片9") private String imgNine; - @ApiModelProperty(notes = "图片10") - private String imgTen; - @ApiModelProperty(notes = "产品分类列表(JSON数组格式)") private String productCategories; @@ -89,6 +86,9 @@ public class CpjgghStuAnswer { @ApiModelProperty(notes = "优化建议(最后 )主观题") private String context; + @ApiModelProperty(notes = "图片10") + private String imgTen; + public String getId() { return id; } @@ -265,14 +265,6 @@ public class CpjgghStuAnswer { 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; } @@ -304,4 +296,12 @@ public class CpjgghStuAnswer { public void setContext(String context) { this.context = context == null ? null : context.trim(); } + + public String getImgTen() { + return imgTen; + } + + public void setImgTen(String imgTen) { + this.imgTen = imgTen == null ? null : imgTen.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 cb0ee48..edd7406 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswerExample.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CpjgghStuAnswerExample.java @@ -1643,76 +1643,6 @@ public class CpjgghStuAnswerExample { 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/CptgcsAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsAnswer.java index 700d916..70ca9f1 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsAnswer.java @@ -1,5 +1,7 @@ package com.sztzjy.linkCommerce.entity; +import java.util.Date; + import io.swagger.annotations.ApiModelProperty; /** * 产品推广测试结果表(多周期指标跟踪) @@ -8,27 +10,33 @@ import io.swagger.annotations.ApiModelProperty; * cptgcs_answer */ public class CptgcsAnswer { - @ApiModelProperty(notes = "主键(格式:CPTGCSA_时间戳_哈希值,例:CPTGCSA_2023110614_9d7b6c5e)") + @ApiModelProperty(notes = "主键") private String id; @ApiModelProperty(notes = "用户ID(关联userinfo表)") private String userId; - @ApiModelProperty(notes = "测试周期数(自动计算)") - private String testPeriod; + @ApiModelProperty(notes = "创建时间") + private Date createTime; - @ApiModelProperty(notes = "点击率数据(JSON数组格式,如[0.15,0.18,0.20],表示15%,18%,20%)") + @ApiModelProperty(notes = "点击率数据") private String clickRate; - @ApiModelProperty(notes = "转化率数据(JSON数组格式,如[0.05,0.06,0.07],表示5%,6%,7%)") + @ApiModelProperty(notes = "转化率数据") private String conversionRate; - @ApiModelProperty(notes = "投资回报率数据(JSON数组格式,如[2.5,3.0,3.5],表示2.5倍,3.0倍,3.5倍)") + @ApiModelProperty(notes = "投资回报率数据") private String roiData; - @ApiModelProperty(notes = "订单金额数据(JSON数组格式,如[5000,6000,7000],单位:元)") + @ApiModelProperty(notes = "统计量") private String orderAmount; + @ApiModelProperty(notes = "主观题") + private String context; + + @ApiModelProperty(notes = "p值") + private String pValue; + public String getId() { return id; } @@ -45,12 +53,12 @@ public class CptgcsAnswer { this.userId = userId == null ? null : userId.trim(); } - public String getTestPeriod() { - return testPeriod; + public Date getCreateTime() { + return createTime; } - public void setTestPeriod(String testPeriod) { - this.testPeriod = testPeriod == null ? null : testPeriod.trim(); + public void setCreateTime(Date createTime) { + this.createTime = createTime; } public String getClickRate() { @@ -84,4 +92,20 @@ public class CptgcsAnswer { public void setOrderAmount(String orderAmount) { this.orderAmount = orderAmount == null ? null : orderAmount.trim(); } + + public String getContext() { + return context; + } + + public void setContext(String context) { + this.context = context == null ? null : context.trim(); + } + + public String getpValue() { + return pValue; + } + + public void setpValue(String pValue) { + this.pValue = pValue == null ? null : pValue.trim(); + } } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsAnswerExample.java b/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsAnswerExample.java index fa94eaf..acc61de 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsAnswerExample.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsAnswerExample.java @@ -1,6 +1,7 @@ package com.sztzjy.linkCommerce.entity; import java.util.ArrayList; +import java.util.Date; import java.util.List; public class CptgcsAnswerExample { @@ -244,73 +245,63 @@ public class CptgcsAnswerExample { return (Criteria) this; } - public Criteria andTestPeriodIsNull() { - addCriterion("test_period is null"); + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); return (Criteria) this; } - public Criteria andTestPeriodIsNotNull() { - addCriterion("test_period is not null"); + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); return (Criteria) this; } - public Criteria andTestPeriodEqualTo(String value) { - addCriterion("test_period =", value, "testPeriod"); + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodNotEqualTo(String value) { - addCriterion("test_period <>", value, "testPeriod"); + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodGreaterThan(String value) { - addCriterion("test_period >", value, "testPeriod"); + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodGreaterThanOrEqualTo(String value) { - addCriterion("test_period >=", value, "testPeriod"); + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodLessThan(String value) { - addCriterion("test_period <", value, "testPeriod"); + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodLessThanOrEqualTo(String value) { - addCriterion("test_period <=", value, "testPeriod"); + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodLike(String value) { - addCriterion("test_period like", value, "testPeriod"); + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodNotLike(String value) { - addCriterion("test_period not like", value, "testPeriod"); + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodIn(List values) { - addCriterion("test_period in", values, "testPeriod"); + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } - public Criteria andTestPeriodNotIn(List values) { - addCriterion("test_period not in", values, "testPeriod"); - return (Criteria) this; - } - - public Criteria andTestPeriodBetween(String value1, String value2) { - addCriterion("test_period between", value1, value2, "testPeriod"); - return (Criteria) this; - } - - public Criteria andTestPeriodNotBetween(String value1, String value2) { - addCriterion("test_period not between", value1, value2, "testPeriod"); + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } } diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsStuAnswer.java b/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsStuAnswer.java index e2d7941..d8dca93 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsStuAnswer.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsStuAnswer.java @@ -4,39 +4,39 @@ import java.util.Date; import io.swagger.annotations.ApiModelProperty; /** - * 学生产品推广测试答案表(含多周期测试数据) + * 产品推广测试结果表(多周期指标跟踪) * * @author whb * cptgcs_stu_answer */ public class CptgcsStuAnswer { - @ApiModelProperty(notes = "主键(格式:CPTGCS-SA_时间戳_哈希值,例:CPTGCS-SA_2023110614_9d7b6c5e)") + @ApiModelProperty(notes = "主键") private String id; @ApiModelProperty(notes = "用户ID(关联userinfo表)") private String userId; - @ApiModelProperty(notes = "测试周期数(自动计算)") - private Byte testCycles; + @ApiModelProperty(notes = "创建时间") + private Date createTime; - @ApiModelProperty(notes = "提交时间") - private Date submitTime; - - @ApiModelProperty(notes = "状态:draft-草稿/submitted-已提交/graded-已评分") - private String status; - - @ApiModelProperty(notes = "点击率数据(JSON数组格式,如[0.15,0.18,0.20],表示15%,18%,20%)") + @ApiModelProperty(notes = "点击率数据") private String clickRate; - @ApiModelProperty(notes = "转化率数据(JSON数组格式,如[0.05,0.06,0.07],表示5%,6%,7%)") + @ApiModelProperty(notes = "转化率数据") private String conversionRate; - @ApiModelProperty(notes = "投资回报率数据(JSON数组格式,如[2.5,3.0,3.5],表示2.5倍,3.0倍,3.5倍)") + @ApiModelProperty(notes = "投资回报率数据") private String roiData; - @ApiModelProperty(notes = "订单金额数据(JSON数组格式,如[5000,6000,7000],单位:元)") + @ApiModelProperty(notes = "统计量") private String orderAmount; + @ApiModelProperty(notes = "主观题") + private String context; + + @ApiModelProperty(notes = "p值") + private String pValue; + public String getId() { return id; } @@ -53,28 +53,12 @@ public class CptgcsStuAnswer { this.userId = userId == null ? null : userId.trim(); } - public Byte getTestCycles() { - return testCycles; - } - - public void setTestCycles(Byte testCycles) { - this.testCycles = testCycles; - } - - public Date getSubmitTime() { - return submitTime; - } - - public void setSubmitTime(Date submitTime) { - this.submitTime = submitTime; + public Date getCreateTime() { + return createTime; } - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status == null ? null : status.trim(); + public void setCreateTime(Date createTime) { + this.createTime = createTime; } public String getClickRate() { @@ -108,4 +92,20 @@ public class CptgcsStuAnswer { public void setOrderAmount(String orderAmount) { this.orderAmount = orderAmount == null ? null : orderAmount.trim(); } + + public String getContext() { + return context; + } + + public void setContext(String context) { + this.context = context == null ? null : context.trim(); + } + + public String getpValue() { + return pValue; + } + + public void setpValue(String pValue) { + this.pValue = pValue == null ? null : pValue.trim(); + } } \ No newline at end of file diff --git a/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsStuAnswerExample.java b/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsStuAnswerExample.java index ea4f5ea..33c9411 100644 --- a/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsStuAnswerExample.java +++ b/src/main/java/com/sztzjy/linkCommerce/entity/CptgcsStuAnswerExample.java @@ -245,193 +245,63 @@ public class CptgcsStuAnswerExample { return (Criteria) this; } - public Criteria andTestCyclesIsNull() { - addCriterion("test_cycles is null"); + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); return (Criteria) this; } - public Criteria andTestCyclesIsNotNull() { - addCriterion("test_cycles is not null"); + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); return (Criteria) this; } - public Criteria andTestCyclesEqualTo(Byte value) { - addCriterion("test_cycles =", value, "testCycles"); + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesNotEqualTo(Byte value) { - addCriterion("test_cycles <>", value, "testCycles"); + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesGreaterThan(Byte value) { - addCriterion("test_cycles >", value, "testCycles"); + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesGreaterThanOrEqualTo(Byte value) { - addCriterion("test_cycles >=", value, "testCycles"); + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesLessThan(Byte value) { - addCriterion("test_cycles <", value, "testCycles"); + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesLessThanOrEqualTo(Byte value) { - addCriterion("test_cycles <=", value, "testCycles"); + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesIn(List values) { - addCriterion("test_cycles in", values, "testCycles"); + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesNotIn(List values) { - addCriterion("test_cycles not in", values, "testCycles"); + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesBetween(Byte value1, Byte value2) { - addCriterion("test_cycles between", value1, value2, "testCycles"); + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); return (Criteria) this; } - public Criteria andTestCyclesNotBetween(Byte value1, Byte value2) { - addCriterion("test_cycles not between", value1, value2, "testCycles"); - 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(String value) { - addCriterion("status =", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotEqualTo(String value) { - addCriterion("status <>", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThan(String value) { - addCriterion("status >", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThanOrEqualTo(String value) { - addCriterion("status >=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThan(String value) { - addCriterion("status <", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThanOrEqualTo(String value) { - addCriterion("status <=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLike(String value) { - addCriterion("status like", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotLike(String value) { - addCriterion("status not like", 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(String value1, String value2) { - addCriterion("status between", value1, value2, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotBetween(String value1, String value2) { - addCriterion("status not between", value1, value2, "status"); + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); return (Criteria) this; } } diff --git a/src/main/java/com/sztzjy/linkCommerce/service/impl/UserBehaviorProfilingAnaServiceImpl.java b/src/main/java/com/sztzjy/linkCommerce/service/impl/UserBehaviorProfilingAnaServiceImpl.java index 833b7ff..23207a1 100644 --- a/src/main/java/com/sztzjy/linkCommerce/service/impl/UserBehaviorProfilingAnaServiceImpl.java +++ b/src/main/java/com/sztzjy/linkCommerce/service/impl/UserBehaviorProfilingAnaServiceImpl.java @@ -38,7 +38,6 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin private ScoreService scoreService; - /** * 用户行为画像分析自动保存 * @@ -80,7 +79,6 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin } } - //首次提交 int i = UUID.randomUUID().hashCode(); i = i < 0 ? -i : i; diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 42ebea7..25a15aa 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -11,9 +11,9 @@ spring: # 文件存储 file: type: local - #path: /usr/local/tianzeProject/link_commerce/uploadFile - path: D:/tianzeProject/linkCommerce/ - url: "http://192.168.2.8:330/file" + path: /usr/local/tianzeProject/linkCommerce/uploadFile +# path: D:/tianzeProject/linkCommerce/ + url: "http://118.31.7.2:147/file" diff --git a/src/main/resources/mappers/CpjgghStuAnswerMapper.xml b/src/main/resources/mappers/CpjgghStuAnswerMapper.xml index d851d20..137617f 100644 --- a/src/main/resources/mappers/CpjgghStuAnswerMapper.xml +++ b/src/main/resources/mappers/CpjgghStuAnswerMapper.xml @@ -24,13 +24,13 @@ - + @@ -94,10 +94,10 @@ id, taobao_url, image_product, popular_product1, popular_product2, popular_product3, main_product, traffic_product, daily_product, event_product, profit_product, flagship_product, user_id, img_one, img_two, img_three, img_four, img_five, img_six, img_seven, img_eight, - img_nine, img_ten + img_nine - product_categories, rationality, optimization_suggestions, context + product_categories, rationality, optimization_suggestions, context, img_ten @@ -413,9 +413,6 @@ img_nine = #{record.imgNine,jdbcType=VARCHAR}, - - img_ten = #{record.imgTen,jdbcType=VARCHAR}, - product_categories = #{record.productCategories,jdbcType=LONGVARCHAR}, @@ -428,6 +425,9 @@ context = #{record.context,jdbcType=LONGVARCHAR}, + + img_ten = #{record.imgTen,jdbcType=LONGVARCHAR}, + @@ -457,11 +457,11 @@ img_seven = #{record.imgSeven,jdbcType=VARCHAR}, img_eight = #{record.imgEight,jdbcType=VARCHAR}, img_nine = #{record.imgNine,jdbcType=VARCHAR}, - img_ten = #{record.imgTen,jdbcType=VARCHAR}, product_categories = #{record.productCategories,jdbcType=LONGVARCHAR}, rationality = #{record.rationality,jdbcType=LONGVARCHAR}, optimization_suggestions = #{record.optimizationSuggestions,jdbcType=LONGVARCHAR}, - context = #{record.context,jdbcType=LONGVARCHAR} + context = #{record.context,jdbcType=LONGVARCHAR}, + img_ten = #{record.imgTen,jdbcType=LONGVARCHAR} @@ -489,8 +489,7 @@ img_six = #{record.imgSix,jdbcType=VARCHAR}, img_seven = #{record.imgSeven,jdbcType=VARCHAR}, img_eight = #{record.imgEight,jdbcType=VARCHAR}, - img_nine = #{record.imgNine,jdbcType=VARCHAR}, - img_ten = #{record.imgTen,jdbcType=VARCHAR} + img_nine = #{record.imgNine,jdbcType=VARCHAR} @@ -561,9 +560,6 @@ img_nine = #{imgNine,jdbcType=VARCHAR}, - - img_ten = #{imgTen,jdbcType=VARCHAR}, - product_categories = #{productCategories,jdbcType=LONGVARCHAR}, @@ -576,6 +572,9 @@ context = #{context,jdbcType=LONGVARCHAR}, + + img_ten = #{imgTen,jdbcType=LONGVARCHAR}, + where id = #{id,jdbcType=VARCHAR} @@ -602,11 +601,11 @@ img_seven = #{imgSeven,jdbcType=VARCHAR}, img_eight = #{imgEight,jdbcType=VARCHAR}, img_nine = #{imgNine,jdbcType=VARCHAR}, - img_ten = #{imgTen,jdbcType=VARCHAR}, product_categories = #{productCategories,jdbcType=LONGVARCHAR}, rationality = #{rationality,jdbcType=LONGVARCHAR}, optimization_suggestions = #{optimizationSuggestions,jdbcType=LONGVARCHAR}, - context = #{context,jdbcType=LONGVARCHAR} + context = #{context,jdbcType=LONGVARCHAR}, + img_ten = #{imgTen,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=VARCHAR} @@ -631,8 +630,7 @@ img_six = #{imgSix,jdbcType=VARCHAR}, img_seven = #{imgSeven,jdbcType=VARCHAR}, img_eight = #{imgEight,jdbcType=VARCHAR}, - img_nine = #{imgNine,jdbcType=VARCHAR}, - img_ten = #{imgTen,jdbcType=VARCHAR} + img_nine = #{imgNine,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR} \ No newline at end of file diff --git a/src/main/resources/mappers/CptgcsAnswerMapper.xml b/src/main/resources/mappers/CptgcsAnswerMapper.xml index 13ddfc9..6dfee52 100644 --- a/src/main/resources/mappers/CptgcsAnswerMapper.xml +++ b/src/main/resources/mappers/CptgcsAnswerMapper.xml @@ -4,13 +4,15 @@ - + + + @@ -71,10 +73,10 @@ - id, user_id, test_period + id, user_id, create_time - click_rate, conversion_rate, roi_data, order_amount + click_rate, conversion_rate, roi_data, order_amount, context, p_value @@ -196,8 +212,8 @@ user_id = #{record.userId,jdbcType=VARCHAR}, - - test_period = #{record.testPeriod,jdbcType=VARCHAR}, + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, click_rate = #{record.clickRate,jdbcType=LONGVARCHAR}, @@ -211,6 +227,12 @@ order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR}, + + context = #{record.context,jdbcType=LONGVARCHAR}, + + + p_value = #{record.pValue,jdbcType=LONGVARCHAR}, + @@ -220,11 +242,13 @@ update cptgcs_answer set id = #{record.id,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR}, - test_period = #{record.testPeriod,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, click_rate = #{record.clickRate,jdbcType=LONGVARCHAR}, conversion_rate = #{record.conversionRate,jdbcType=LONGVARCHAR}, roi_data = #{record.roiData,jdbcType=LONGVARCHAR}, - order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR} + order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR}, + context = #{record.context,jdbcType=LONGVARCHAR}, + p_value = #{record.pValue,jdbcType=LONGVARCHAR} @@ -233,7 +257,7 @@ update cptgcs_answer set id = #{record.id,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR}, - test_period = #{record.testPeriod,jdbcType=VARCHAR} + create_time = #{record.createTime,jdbcType=TIMESTAMP} @@ -244,8 +268,8 @@ user_id = #{userId,jdbcType=VARCHAR}, - - test_period = #{testPeriod,jdbcType=VARCHAR}, + + create_time = #{createTime,jdbcType=TIMESTAMP}, click_rate = #{clickRate,jdbcType=LONGVARCHAR}, @@ -259,23 +283,31 @@ order_amount = #{orderAmount,jdbcType=LONGVARCHAR}, + + context = #{context,jdbcType=LONGVARCHAR}, + + + p_value = #{pValue,jdbcType=LONGVARCHAR}, + where id = #{id,jdbcType=VARCHAR} update cptgcs_answer set user_id = #{userId,jdbcType=VARCHAR}, - test_period = #{testPeriod,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, click_rate = #{clickRate,jdbcType=LONGVARCHAR}, conversion_rate = #{conversionRate,jdbcType=LONGVARCHAR}, roi_data = #{roiData,jdbcType=LONGVARCHAR}, - order_amount = #{orderAmount,jdbcType=LONGVARCHAR} + order_amount = #{orderAmount,jdbcType=LONGVARCHAR}, + context = #{context,jdbcType=LONGVARCHAR}, + p_value = #{pValue,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=VARCHAR} update cptgcs_answer set user_id = #{userId,jdbcType=VARCHAR}, - test_period = #{testPeriod,jdbcType=VARCHAR} + create_time = #{createTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=VARCHAR} \ No newline at end of file diff --git a/src/main/resources/mappers/CptgcsStuAnswerMapper.xml b/src/main/resources/mappers/CptgcsStuAnswerMapper.xml index 3574890..614196b 100644 --- a/src/main/resources/mappers/CptgcsStuAnswerMapper.xml +++ b/src/main/resources/mappers/CptgcsStuAnswerMapper.xml @@ -4,15 +4,15 @@ - - - + + + @@ -73,10 +73,10 @@ - id, user_id, test_cycles, submit_time, status + id, user_id, create_time - click_rate, conversion_rate, roi_data, order_amount + click_rate, conversion_rate, roi_data, order_amount, context, p_value @@ -212,14 +212,8 @@ user_id = #{record.userId,jdbcType=VARCHAR}, - - test_cycles = #{record.testCycles,jdbcType=TINYINT}, - - - submit_time = #{record.submitTime,jdbcType=TIMESTAMP}, - - - status = #{record.status,jdbcType=CHAR}, + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, click_rate = #{record.clickRate,jdbcType=LONGVARCHAR}, @@ -233,6 +227,12 @@ order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR}, + + context = #{record.context,jdbcType=LONGVARCHAR}, + + + p_value = #{record.pValue,jdbcType=LONGVARCHAR}, + @@ -242,13 +242,13 @@ update cptgcs_stu_answer set id = #{record.id,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR}, - test_cycles = #{record.testCycles,jdbcType=TINYINT}, - submit_time = #{record.submitTime,jdbcType=TIMESTAMP}, - status = #{record.status,jdbcType=CHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, click_rate = #{record.clickRate,jdbcType=LONGVARCHAR}, conversion_rate = #{record.conversionRate,jdbcType=LONGVARCHAR}, roi_data = #{record.roiData,jdbcType=LONGVARCHAR}, - order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR} + order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR}, + context = #{record.context,jdbcType=LONGVARCHAR}, + p_value = #{record.pValue,jdbcType=LONGVARCHAR} @@ -257,9 +257,7 @@ update cptgcs_stu_answer set id = #{record.id,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR}, - test_cycles = #{record.testCycles,jdbcType=TINYINT}, - submit_time = #{record.submitTime,jdbcType=TIMESTAMP}, - status = #{record.status,jdbcType=CHAR} + create_time = #{record.createTime,jdbcType=TIMESTAMP} @@ -270,14 +268,8 @@ user_id = #{userId,jdbcType=VARCHAR}, - - test_cycles = #{testCycles,jdbcType=TINYINT}, - - - submit_time = #{submitTime,jdbcType=TIMESTAMP}, - - - status = #{status,jdbcType=CHAR}, + + create_time = #{createTime,jdbcType=TIMESTAMP}, click_rate = #{clickRate,jdbcType=LONGVARCHAR}, @@ -291,27 +283,31 @@ order_amount = #{orderAmount,jdbcType=LONGVARCHAR}, + + context = #{context,jdbcType=LONGVARCHAR}, + + + p_value = #{pValue,jdbcType=LONGVARCHAR}, + where id = #{id,jdbcType=VARCHAR} update cptgcs_stu_answer set user_id = #{userId,jdbcType=VARCHAR}, - test_cycles = #{testCycles,jdbcType=TINYINT}, - submit_time = #{submitTime,jdbcType=TIMESTAMP}, - status = #{status,jdbcType=CHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, click_rate = #{clickRate,jdbcType=LONGVARCHAR}, conversion_rate = #{conversionRate,jdbcType=LONGVARCHAR}, roi_data = #{roiData,jdbcType=LONGVARCHAR}, - order_amount = #{orderAmount,jdbcType=LONGVARCHAR} + order_amount = #{orderAmount,jdbcType=LONGVARCHAR}, + context = #{context,jdbcType=LONGVARCHAR}, + p_value = #{pValue,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=VARCHAR} update cptgcs_stu_answer set user_id = #{userId,jdbcType=VARCHAR}, - test_cycles = #{testCycles,jdbcType=TINYINT}, - submit_time = #{submitTime,jdbcType=TIMESTAMP}, - status = #{status,jdbcType=CHAR} + create_time = #{createTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=VARCHAR} \ No newline at end of file