修改配置文件

main
whb 1 year ago
parent 37b90b9ae1
commit 3efd648c70

@ -43,6 +43,7 @@ public class CptfController {
@Autowired @Autowired
StuGradeMapper stuGradeMapper; StuGradeMapper stuGradeMapper;
@Autowired @Autowired
@ -54,49 +55,210 @@ public class CptfController {
public String url; public String url;
@PostMapping("/commitCpdjAnswer") // @PostMapping("/commitCpdjAnswer")
@ApiOperation("发布渠道-提交") // @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<StuGrade> 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<FbqdStuAnswer> 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 @AnonymousAccess
public ResultEntity commitFbqdAnswer(@RequestBody FbqdStuAnswer stuAnswer) { 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 commitCptgcsAnswer(@RequestBody CptgcsStuAnswer stuAnswer) {
//先查询是否提交过 //先查询是否提交过
StuGradeExample stuGradeExample = new StuGradeExample(); 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<StuGrade> stuGradeList = stuGradeMapper.selectByExampleWithBLOBs(stuGradeExample); List<StuGrade> stuGradeList = stuGradeMapper.selectByExampleWithBLOBs(stuGradeExample);
if(CollectionUtils.isEmpty(stuGradeList)){ if(CollectionUtils.isEmpty(stuGradeList)){
FbqdAnswer answer = fbqdAnswerMapper.selectByExampleWithBLOBs(new FbqdAnswerExample()).get(0); CptgcsAnswer answer = cptgcsAnswerMapper.selectByExampleWithBLOBs(new CptgcsAnswerExample()).get(0);
int count = 0; int count = 0;
//1.数据标准化结果 //1.产品点击率
String stuExposureData = stuAnswer.getExposureData(); 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; count = count + monthlyDataErrorCount;
//2.渠道中的比重 //2.转化率数据
String stuAnswerClickData = stuAnswer.getClickData(); 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; count = count + cheapSumCount;
//3.信息滴 //3.投资回报率数据
String stuAnswerAdCost = stuAnswer.getAdCost(); 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; count = count + cheapPercentageCount;
//每个指标的权重 //4.统计量
String stuAnswerOrderAmount = stuAnswer.getOrderAmount(); String stuAnswerOrderAmount = stuAnswer.getOrderAmount();
String orderAmount = answer.getOrderAmount(); String orderAmount = answer.getOrderAmount();
@ -106,24 +268,24 @@ public class CptfController {
//综合评分 //5.p值
String stuAnswerKeywords = stuAnswer.getKeywords(); 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; count = count + costEffectivePercentageCount;
//主观题 //主观题
int i = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getScenePromotion()); int i = compareListsUtil.calculateLengthPenaltyEnhanced(stuAnswer.getContext());
count = count + i; count = count + i;
stuAnswer.setId(IdUtil.simpleUUID()); 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){ if(aBoolean){
return new ResultEntity<>(HttpStatus.OK, "提交成功"); return new ResultEntity<>(HttpStatus.OK, "提交成功");
}else { }else {
@ -141,10 +303,10 @@ public class CptfController {
@AnonymousAccess @AnonymousAccess
public ResultEntity selectByCpdjUserId(@ApiParam("用户ID") String userId) { public ResultEntity selectByCpdjUserId(@ApiParam("用户ID") String userId) {
FbqdStuAnswerExample cpdjStuAnswerExample = new FbqdStuAnswerExample(); CptgcsStuAnswerExample cptgcsStuAnswerExample = new CptgcsStuAnswerExample();
cpdjStuAnswerExample.createCriteria().andUserIdEqualTo(userId); cptgcsStuAnswerExample.createCriteria().andUserIdEqualTo(userId);
List<FbqdStuAnswer> stuAnswerList = fbqdStuAnswerMapper.selectByExampleWithBLOBs(cpdjStuAnswerExample); List< CptgcsStuAnswer> stuAnswerList = cptgcsStuAnswerMapper.selectByExampleWithBLOBs(cptgcsStuAnswerExample);
if (CollectionUtils.isEmpty(stuAnswerList)) { if (CollectionUtils.isEmpty(stuAnswerList)) {
return new ResultEntity<>(HttpStatus.OK); 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, "重新实训失败");
}
} }

@ -207,8 +207,6 @@ public class ProductPlanningController {
} }
@GetMapping("/restartTraining") @GetMapping("/restartTraining")
@ApiOperation("产品定价-重新实训") @ApiOperation("产品定价-重新实训")
@AnonymousAccess @AnonymousAccess
@ -250,14 +248,10 @@ public class ProductPlanningController {
} }
} }
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败"); return new ResultEntity<>(HttpStatus.BAD_REQUEST, "重新实训失败");
} }
@PostMapping("/commitCpcyhdwAnswer") @PostMapping("/commitCpcyhdwAnswer")
@ApiOperation("产品差异化定位-提交") @ApiOperation("产品差异化定位-提交")
@AnonymousAccess @AnonymousAccess
@ -289,7 +283,6 @@ public class ProductPlanningController {
} }
@ApiOperation("产品差异化定位-回显接口") @ApiOperation("产品差异化定位-回显接口")
@GetMapping("/selectByCpcyhdwUserId") @GetMapping("/selectByCpcyhdwUserId")
@AnonymousAccess @AnonymousAccess
@ -349,7 +342,6 @@ public class ProductPlanningController {
} }
@ApiOperation("产品结构规划-回显接口") @ApiOperation("产品结构规划-回显接口")
@GetMapping("/selectByCpjgghUserId") @GetMapping("/selectByCpjgghUserId")
@AnonymousAccess @AnonymousAccess
@ -419,5 +411,4 @@ public class ProductPlanningController {
} }
} }

@ -74,9 +74,6 @@ public class CpjgghStuAnswer {
@ApiModelProperty(notes = "图片9") @ApiModelProperty(notes = "图片9")
private String imgNine; private String imgNine;
@ApiModelProperty(notes = "图片10")
private String imgTen;
@ApiModelProperty(notes = "产品分类列表JSON数组格式") @ApiModelProperty(notes = "产品分类列表JSON数组格式")
private String productCategories; private String productCategories;
@ -89,6 +86,9 @@ public class CpjgghStuAnswer {
@ApiModelProperty(notes = "优化建议(最后 )主观题") @ApiModelProperty(notes = "优化建议(最后 )主观题")
private String context; private String context;
@ApiModelProperty(notes = "图片10")
private String imgTen;
public String getId() { public String getId() {
return id; return id;
} }
@ -265,14 +265,6 @@ public class CpjgghStuAnswer {
this.imgNine = imgNine == null ? null : imgNine.trim(); 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() { public String getProductCategories() {
return productCategories; return productCategories;
} }
@ -304,4 +296,12 @@ public class CpjgghStuAnswer {
public void setContext(String context) { public void setContext(String context) {
this.context = context == null ? null : context.trim(); this.context = context == null ? null : context.trim();
} }
public String getImgTen() {
return imgTen;
}
public void setImgTen(String imgTen) {
this.imgTen = imgTen == null ? null : imgTen.trim();
}
} }

@ -1643,76 +1643,6 @@ public class CpjgghStuAnswerExample {
addCriterion("img_nine not between", value1, value2, "imgNine"); addCriterion("img_nine not between", value1, value2, "imgNine");
return (Criteria) this; 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<String> values) {
addCriterion("img_ten in", values, "imgTen");
return (Criteria) this;
}
public Criteria andImgTenNotIn(List<String> 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 { public static class Criteria extends GeneratedCriteria {

@ -1,5 +1,7 @@
package com.sztzjy.linkCommerce.entity; package com.sztzjy.linkCommerce.entity;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* 广 * 广
@ -8,27 +10,33 @@ import io.swagger.annotations.ApiModelProperty;
* cptgcs_answer * cptgcs_answer
*/ */
public class CptgcsAnswer { public class CptgcsAnswer {
@ApiModelProperty(notes = "主键格式CPTGCSA_时间戳_哈希值CPTGCSA_2023110614_9d7b6c5e") @ApiModelProperty(notes = "主键")
private String id; private String id;
@ApiModelProperty(notes = "用户ID关联userinfo表") @ApiModelProperty(notes = "用户ID关联userinfo表")
private String userId; private String userId;
@ApiModelProperty(notes = "测试周期数(自动计算)") @ApiModelProperty(notes = "创建时间")
private String testPeriod; private Date createTime;
@ApiModelProperty(notes = "点击率数据JSON数组格式如[0.15,0.18,0.20]表示15%,18%,20%") @ApiModelProperty(notes = "点击率数据")
private String clickRate; private String clickRate;
@ApiModelProperty(notes = "转化率数据JSON数组格式如[0.05,0.06,0.07]表示5%,6%,7%") @ApiModelProperty(notes = "转化率数据")
private String conversionRate; private String conversionRate;
@ApiModelProperty(notes = "投资回报率数据JSON数组格式如[2.5,3.0,3.5]表示2.5倍,3.0倍,3.5倍)") @ApiModelProperty(notes = "投资回报率数据")
private String roiData; private String roiData;
@ApiModelProperty(notes = "订单金额数据JSON数组格式如[5000,6000,7000],单位:元)") @ApiModelProperty(notes = "统计量")
private String orderAmount; private String orderAmount;
@ApiModelProperty(notes = "主观题")
private String context;
@ApiModelProperty(notes = "p值")
private String pValue;
public String getId() { public String getId() {
return id; return id;
} }
@ -45,12 +53,12 @@ public class CptgcsAnswer {
this.userId = userId == null ? null : userId.trim(); this.userId = userId == null ? null : userId.trim();
} }
public String getTestPeriod() { public Date getCreateTime() {
return testPeriod; return createTime;
} }
public void setTestPeriod(String testPeriod) { public void setCreateTime(Date createTime) {
this.testPeriod = testPeriod == null ? null : testPeriod.trim(); this.createTime = createTime;
} }
public String getClickRate() { public String getClickRate() {
@ -84,4 +92,20 @@ public class CptgcsAnswer {
public void setOrderAmount(String orderAmount) { public void setOrderAmount(String orderAmount) {
this.orderAmount = orderAmount == null ? null : orderAmount.trim(); 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();
}
} }

@ -1,6 +1,7 @@
package com.sztzjy.linkCommerce.entity; package com.sztzjy.linkCommerce.entity;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
public class CptgcsAnswerExample { public class CptgcsAnswerExample {
@ -244,73 +245,63 @@ public class CptgcsAnswerExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodIsNull() { public Criteria andCreateTimeIsNull() {
addCriterion("test_period is null"); addCriterion("create_time is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodIsNotNull() { public Criteria andCreateTimeIsNotNull() {
addCriterion("test_period is not null"); addCriterion("create_time is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodEqualTo(String value) { public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("test_period =", value, "testPeriod"); addCriterion("create_time =", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodNotEqualTo(String value) { public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("test_period <>", value, "testPeriod"); addCriterion("create_time <>", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodGreaterThan(String value) { public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("test_period >", value, "testPeriod"); addCriterion("create_time >", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodGreaterThanOrEqualTo(String value) { public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("test_period >=", value, "testPeriod"); addCriterion("create_time >=", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodLessThan(String value) { public Criteria andCreateTimeLessThan(Date value) {
addCriterion("test_period <", value, "testPeriod"); addCriterion("create_time <", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodLessThanOrEqualTo(String value) { public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("test_period <=", value, "testPeriod"); addCriterion("create_time <=", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodLike(String value) { public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("test_period like", value, "testPeriod"); addCriterion("create_time in", values, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodNotLike(String value) { public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("test_period not like", value, "testPeriod"); addCriterion("create_time not in", values, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodIn(List<String> values) { public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("test_period in", values, "testPeriod"); addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestPeriodNotIn(List<String> values) { public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("test_period not in", values, "testPeriod"); addCriterion("create_time not between", value1, value2, "createTime");
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");
return (Criteria) this; return (Criteria) this;
} }
} }

@ -4,39 +4,39 @@ import java.util.Date;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* 广 * 广
* *
* @author whb * @author whb
* cptgcs_stu_answer * cptgcs_stu_answer
*/ */
public class CptgcsStuAnswer { public class CptgcsStuAnswer {
@ApiModelProperty(notes = "主键格式CPTGCS-SA_时间戳_哈希值CPTGCS-SA_2023110614_9d7b6c5e") @ApiModelProperty(notes = "主键")
private String id; private String id;
@ApiModelProperty(notes = "用户ID关联userinfo表") @ApiModelProperty(notes = "用户ID关联userinfo表")
private String userId; private String userId;
@ApiModelProperty(notes = "测试周期数(自动计算)") @ApiModelProperty(notes = "创建时间")
private Byte testCycles; private Date createTime;
@ApiModelProperty(notes = "提交时间") @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%")
private String clickRate; private String clickRate;
@ApiModelProperty(notes = "转化率数据JSON数组格式如[0.05,0.06,0.07]表示5%,6%,7%") @ApiModelProperty(notes = "转化率数据")
private String conversionRate; private String conversionRate;
@ApiModelProperty(notes = "投资回报率数据JSON数组格式如[2.5,3.0,3.5]表示2.5倍,3.0倍,3.5倍)") @ApiModelProperty(notes = "投资回报率数据")
private String roiData; private String roiData;
@ApiModelProperty(notes = "订单金额数据JSON数组格式如[5000,6000,7000],单位:元)") @ApiModelProperty(notes = "统计量")
private String orderAmount; private String orderAmount;
@ApiModelProperty(notes = "主观题")
private String context;
@ApiModelProperty(notes = "p值")
private String pValue;
public String getId() { public String getId() {
return id; return id;
} }
@ -53,28 +53,12 @@ public class CptgcsStuAnswer {
this.userId = userId == null ? null : userId.trim(); this.userId = userId == null ? null : userId.trim();
} }
public Byte getTestCycles() { public Date getCreateTime() {
return testCycles; return createTime;
}
public void setTestCycles(Byte testCycles) {
this.testCycles = testCycles;
}
public Date getSubmitTime() {
return submitTime;
}
public void setSubmitTime(Date submitTime) {
this.submitTime = submitTime;
} }
public String getStatus() { public void setCreateTime(Date createTime) {
return status; this.createTime = createTime;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
} }
public String getClickRate() { public String getClickRate() {
@ -108,4 +92,20 @@ public class CptgcsStuAnswer {
public void setOrderAmount(String orderAmount) { public void setOrderAmount(String orderAmount) {
this.orderAmount = orderAmount == null ? null : orderAmount.trim(); 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();
}
} }

@ -245,193 +245,63 @@ public class CptgcsStuAnswerExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesIsNull() { public Criteria andCreateTimeIsNull() {
addCriterion("test_cycles is null"); addCriterion("create_time is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesIsNotNull() { public Criteria andCreateTimeIsNotNull() {
addCriterion("test_cycles is not null"); addCriterion("create_time is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesEqualTo(Byte value) { public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("test_cycles =", value, "testCycles"); addCriterion("create_time =", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesNotEqualTo(Byte value) { public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("test_cycles <>", value, "testCycles"); addCriterion("create_time <>", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesGreaterThan(Byte value) { public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("test_cycles >", value, "testCycles"); addCriterion("create_time >", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesGreaterThanOrEqualTo(Byte value) { public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("test_cycles >=", value, "testCycles"); addCriterion("create_time >=", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesLessThan(Byte value) { public Criteria andCreateTimeLessThan(Date value) {
addCriterion("test_cycles <", value, "testCycles"); addCriterion("create_time <", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesLessThanOrEqualTo(Byte value) { public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("test_cycles <=", value, "testCycles"); addCriterion("create_time <=", value, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesIn(List<Byte> values) { public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("test_cycles in", values, "testCycles"); addCriterion("create_time in", values, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesNotIn(List<Byte> values) { public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("test_cycles not in", values, "testCycles"); addCriterion("create_time not in", values, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesBetween(Byte value1, Byte value2) { public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("test_cycles between", value1, value2, "testCycles"); addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andTestCyclesNotBetween(Byte value1, Byte value2) { public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("test_cycles not between", value1, value2, "testCycles"); addCriterion("create_time not between", value1, value2, "createTime");
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<Date> values) {
addCriterion("submit_time in", values, "submitTime");
return (Criteria) this;
}
public Criteria andSubmitTimeNotIn(List<Date> 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<String> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<String> 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");
return (Criteria) this; return (Criteria) this;
} }
} }

@ -38,7 +38,6 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin
private ScoreService scoreService; private ScoreService scoreService;
/** /**
* *
* *
@ -80,7 +79,6 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin
} }
} }
//首次提交 //首次提交
int i = UUID.randomUUID().hashCode(); int i = UUID.randomUUID().hashCode();
i = i < 0 ? -i : i; i = i < 0 ? -i : i;

@ -11,9 +11,9 @@ spring:
# 文件存储 # 文件存储
file: file:
type: local type: local
#path: /usr/local/tianzeProject/link_commerce/uploadFile path: /usr/local/tianzeProject/linkCommerce/uploadFile
path: D:/tianzeProject/linkCommerce/ # path: D:/tianzeProject/linkCommerce/
url: "http://192.168.2.8:330/file" url: "http://118.31.7.2:147/file"

@ -24,13 +24,13 @@
<result column="img_seven" jdbcType="VARCHAR" property="imgSeven" /> <result column="img_seven" jdbcType="VARCHAR" property="imgSeven" />
<result column="img_eight" jdbcType="VARCHAR" property="imgEight" /> <result column="img_eight" jdbcType="VARCHAR" property="imgEight" />
<result column="img_nine" jdbcType="VARCHAR" property="imgNine" /> <result column="img_nine" jdbcType="VARCHAR" property="imgNine" />
<result column="img_ten" jdbcType="VARCHAR" property="imgTen" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.linkCommerce.entity.CpjgghStuAnswer"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.linkCommerce.entity.CpjgghStuAnswer">
<result column="product_categories" jdbcType="LONGVARCHAR" property="productCategories" /> <result column="product_categories" jdbcType="LONGVARCHAR" property="productCategories" />
<result column="rationality" jdbcType="LONGVARCHAR" property="rationality" /> <result column="rationality" jdbcType="LONGVARCHAR" property="rationality" />
<result column="optimization_suggestions" jdbcType="LONGVARCHAR" property="optimizationSuggestions" /> <result column="optimization_suggestions" jdbcType="LONGVARCHAR" property="optimizationSuggestions" />
<result column="context" jdbcType="LONGVARCHAR" property="context" /> <result column="context" jdbcType="LONGVARCHAR" property="context" />
<result column="img_ten" jdbcType="LONGVARCHAR" property="imgTen" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
@ -94,10 +94,10 @@
id, taobao_url, image_product, popular_product1, popular_product2, popular_product3, id, taobao_url, image_product, popular_product1, popular_product2, popular_product3,
main_product, traffic_product, daily_product, event_product, profit_product, flagship_product, 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, user_id, img_one, img_two, img_three, img_four, img_five, img_six, img_seven, img_eight,
img_nine, img_ten img_nine
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
product_categories, rationality, optimization_suggestions, context product_categories, rationality, optimization_suggestions, context, img_ten
</sql> </sql>
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CpjgghStuAnswerExample" resultMap="ResultMapWithBLOBs"> <select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CpjgghStuAnswerExample" resultMap="ResultMapWithBLOBs">
select select
@ -155,9 +155,9 @@
user_id, img_one, img_two, user_id, img_one, img_two,
img_three, img_four, img_five, img_three, img_four, img_five,
img_six, img_seven, img_eight, img_six, img_seven, img_eight,
img_nine, img_ten, product_categories, img_nine, product_categories, rationality,
rationality, optimization_suggestions, optimization_suggestions, context,
context) img_ten)
values (#{id,jdbcType=VARCHAR}, #{taobaoUrl,jdbcType=VARCHAR}, #{imageProduct,jdbcType=VARCHAR}, values (#{id,jdbcType=VARCHAR}, #{taobaoUrl,jdbcType=VARCHAR}, #{imageProduct,jdbcType=VARCHAR},
#{popularProduct1,jdbcType=VARCHAR}, #{popularProduct2,jdbcType=VARCHAR}, #{popularProduct3,jdbcType=VARCHAR}, #{popularProduct1,jdbcType=VARCHAR}, #{popularProduct2,jdbcType=VARCHAR}, #{popularProduct3,jdbcType=VARCHAR},
#{mainProduct,jdbcType=VARCHAR}, #{trafficProduct,jdbcType=VARCHAR}, #{dailyProduct,jdbcType=VARCHAR}, #{mainProduct,jdbcType=VARCHAR}, #{trafficProduct,jdbcType=VARCHAR}, #{dailyProduct,jdbcType=VARCHAR},
@ -165,9 +165,9 @@
#{userId,jdbcType=VARCHAR}, #{imgOne,jdbcType=VARCHAR}, #{imgTwo,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{imgOne,jdbcType=VARCHAR}, #{imgTwo,jdbcType=VARCHAR},
#{imgThree,jdbcType=VARCHAR}, #{imgFour,jdbcType=VARCHAR}, #{imgFive,jdbcType=VARCHAR}, #{imgThree,jdbcType=VARCHAR}, #{imgFour,jdbcType=VARCHAR}, #{imgFive,jdbcType=VARCHAR},
#{imgSix,jdbcType=VARCHAR}, #{imgSeven,jdbcType=VARCHAR}, #{imgEight,jdbcType=VARCHAR}, #{imgSix,jdbcType=VARCHAR}, #{imgSeven,jdbcType=VARCHAR}, #{imgEight,jdbcType=VARCHAR},
#{imgNine,jdbcType=VARCHAR}, #{imgTen,jdbcType=VARCHAR}, #{productCategories,jdbcType=LONGVARCHAR}, #{imgNine,jdbcType=VARCHAR}, #{productCategories,jdbcType=LONGVARCHAR}, #{rationality,jdbcType=LONGVARCHAR},
#{rationality,jdbcType=LONGVARCHAR}, #{optimizationSuggestions,jdbcType=LONGVARCHAR}, #{optimizationSuggestions,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR},
#{context,jdbcType=LONGVARCHAR}) #{imgTen,jdbcType=LONGVARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CpjgghStuAnswer"> <insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CpjgghStuAnswer">
insert into cpjggh_stu_answer insert into cpjggh_stu_answer
@ -238,9 +238,6 @@
<if test="imgNine != null"> <if test="imgNine != null">
img_nine, img_nine,
</if> </if>
<if test="imgTen != null">
img_ten,
</if>
<if test="productCategories != null"> <if test="productCategories != null">
product_categories, product_categories,
</if> </if>
@ -253,6 +250,9 @@
<if test="context != null"> <if test="context != null">
context, context,
</if> </if>
<if test="imgTen != null">
img_ten,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
@ -321,9 +321,6 @@
<if test="imgNine != null"> <if test="imgNine != null">
#{imgNine,jdbcType=VARCHAR}, #{imgNine,jdbcType=VARCHAR},
</if> </if>
<if test="imgTen != null">
#{imgTen,jdbcType=VARCHAR},
</if>
<if test="productCategories != null"> <if test="productCategories != null">
#{productCategories,jdbcType=LONGVARCHAR}, #{productCategories,jdbcType=LONGVARCHAR},
</if> </if>
@ -336,6 +333,9 @@
<if test="context != null"> <if test="context != null">
#{context,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR},
</if> </if>
<if test="imgTen != null">
#{imgTen,jdbcType=LONGVARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CpjgghStuAnswerExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CpjgghStuAnswerExample" resultType="java.lang.Long">
@ -413,9 +413,6 @@
<if test="record.imgNine != null"> <if test="record.imgNine != null">
img_nine = #{record.imgNine,jdbcType=VARCHAR}, img_nine = #{record.imgNine,jdbcType=VARCHAR},
</if> </if>
<if test="record.imgTen != null">
img_ten = #{record.imgTen,jdbcType=VARCHAR},
</if>
<if test="record.productCategories != null"> <if test="record.productCategories != null">
product_categories = #{record.productCategories,jdbcType=LONGVARCHAR}, product_categories = #{record.productCategories,jdbcType=LONGVARCHAR},
</if> </if>
@ -428,6 +425,9 @@
<if test="record.context != null"> <if test="record.context != null">
context = #{record.context,jdbcType=LONGVARCHAR}, context = #{record.context,jdbcType=LONGVARCHAR},
</if> </if>
<if test="record.imgTen != null">
img_ten = #{record.imgTen,jdbcType=LONGVARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
@ -457,11 +457,11 @@
img_seven = #{record.imgSeven,jdbcType=VARCHAR}, img_seven = #{record.imgSeven,jdbcType=VARCHAR},
img_eight = #{record.imgEight,jdbcType=VARCHAR}, img_eight = #{record.imgEight,jdbcType=VARCHAR},
img_nine = #{record.imgNine,jdbcType=VARCHAR}, img_nine = #{record.imgNine,jdbcType=VARCHAR},
img_ten = #{record.imgTen,jdbcType=VARCHAR},
product_categories = #{record.productCategories,jdbcType=LONGVARCHAR}, product_categories = #{record.productCategories,jdbcType=LONGVARCHAR},
rationality = #{record.rationality,jdbcType=LONGVARCHAR}, rationality = #{record.rationality,jdbcType=LONGVARCHAR},
optimization_suggestions = #{record.optimizationSuggestions,jdbcType=LONGVARCHAR}, optimization_suggestions = #{record.optimizationSuggestions,jdbcType=LONGVARCHAR},
context = #{record.context,jdbcType=LONGVARCHAR} context = #{record.context,jdbcType=LONGVARCHAR},
img_ten = #{record.imgTen,jdbcType=LONGVARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -489,8 +489,7 @@
img_six = #{record.imgSix,jdbcType=VARCHAR}, img_six = #{record.imgSix,jdbcType=VARCHAR},
img_seven = #{record.imgSeven,jdbcType=VARCHAR}, img_seven = #{record.imgSeven,jdbcType=VARCHAR},
img_eight = #{record.imgEight,jdbcType=VARCHAR}, img_eight = #{record.imgEight,jdbcType=VARCHAR},
img_nine = #{record.imgNine,jdbcType=VARCHAR}, img_nine = #{record.imgNine,jdbcType=VARCHAR}
img_ten = #{record.imgTen,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -561,9 +560,6 @@
<if test="imgNine != null"> <if test="imgNine != null">
img_nine = #{imgNine,jdbcType=VARCHAR}, img_nine = #{imgNine,jdbcType=VARCHAR},
</if> </if>
<if test="imgTen != null">
img_ten = #{imgTen,jdbcType=VARCHAR},
</if>
<if test="productCategories != null"> <if test="productCategories != null">
product_categories = #{productCategories,jdbcType=LONGVARCHAR}, product_categories = #{productCategories,jdbcType=LONGVARCHAR},
</if> </if>
@ -576,6 +572,9 @@
<if test="context != null"> <if test="context != null">
context = #{context,jdbcType=LONGVARCHAR}, context = #{context,jdbcType=LONGVARCHAR},
</if> </if>
<if test="imgTen != null">
img_ten = #{imgTen,jdbcType=LONGVARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
@ -602,11 +601,11 @@
img_seven = #{imgSeven,jdbcType=VARCHAR}, img_seven = #{imgSeven,jdbcType=VARCHAR},
img_eight = #{imgEight,jdbcType=VARCHAR}, img_eight = #{imgEight,jdbcType=VARCHAR},
img_nine = #{imgNine,jdbcType=VARCHAR}, img_nine = #{imgNine,jdbcType=VARCHAR},
img_ten = #{imgTen,jdbcType=VARCHAR},
product_categories = #{productCategories,jdbcType=LONGVARCHAR}, product_categories = #{productCategories,jdbcType=LONGVARCHAR},
rationality = #{rationality,jdbcType=LONGVARCHAR}, rationality = #{rationality,jdbcType=LONGVARCHAR},
optimization_suggestions = #{optimizationSuggestions,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} where id = #{id,jdbcType=VARCHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CpjgghStuAnswer"> <update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CpjgghStuAnswer">
@ -631,8 +630,7 @@
img_six = #{imgSix,jdbcType=VARCHAR}, img_six = #{imgSix,jdbcType=VARCHAR},
img_seven = #{imgSeven,jdbcType=VARCHAR}, img_seven = #{imgSeven,jdbcType=VARCHAR},
img_eight = #{imgEight,jdbcType=VARCHAR}, img_eight = #{imgEight,jdbcType=VARCHAR},
img_nine = #{imgNine,jdbcType=VARCHAR}, img_nine = #{imgNine,jdbcType=VARCHAR}
img_ten = #{imgTen,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
</mapper> </mapper>

@ -4,13 +4,15 @@
<resultMap id="BaseResultMap" type="com.sztzjy.linkCommerce.entity.CptgcsAnswer"> <resultMap id="BaseResultMap" type="com.sztzjy.linkCommerce.entity.CptgcsAnswer">
<id column="id" jdbcType="VARCHAR" property="id" /> <id column="id" jdbcType="VARCHAR" property="id" />
<result column="user_id" jdbcType="VARCHAR" property="userId" /> <result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="test_period" jdbcType="VARCHAR" property="testPeriod" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.linkCommerce.entity.CptgcsAnswer"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.linkCommerce.entity.CptgcsAnswer">
<result column="click_rate" jdbcType="LONGVARCHAR" property="clickRate" /> <result column="click_rate" jdbcType="LONGVARCHAR" property="clickRate" />
<result column="conversion_rate" jdbcType="LONGVARCHAR" property="conversionRate" /> <result column="conversion_rate" jdbcType="LONGVARCHAR" property="conversionRate" />
<result column="roi_data" jdbcType="LONGVARCHAR" property="roiData" /> <result column="roi_data" jdbcType="LONGVARCHAR" property="roiData" />
<result column="order_amount" jdbcType="LONGVARCHAR" property="orderAmount" /> <result column="order_amount" jdbcType="LONGVARCHAR" property="orderAmount" />
<result column="context" jdbcType="LONGVARCHAR" property="context" />
<result column="p_value" jdbcType="LONGVARCHAR" property="pValue" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
@ -71,10 +73,10 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, user_id, test_period id, user_id, create_time
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
click_rate, conversion_rate, roi_data, order_amount click_rate, conversion_rate, roi_data, order_amount, context, p_value
</sql> </sql>
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswerExample" resultMap="ResultMapWithBLOBs"> <select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswerExample" resultMap="ResultMapWithBLOBs">
select select
@ -125,12 +127,14 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswer"> <insert id="insert" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswer">
insert into cptgcs_answer (id, user_id, test_period, insert into cptgcs_answer (id, user_id, create_time,
click_rate, conversion_rate, roi_data, click_rate, conversion_rate, roi_data,
order_amount) order_amount, context, p_value
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{testPeriod,jdbcType=VARCHAR}, )
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{clickRate,jdbcType=LONGVARCHAR}, #{conversionRate,jdbcType=LONGVARCHAR}, #{roiData,jdbcType=LONGVARCHAR}, #{clickRate,jdbcType=LONGVARCHAR}, #{conversionRate,jdbcType=LONGVARCHAR}, #{roiData,jdbcType=LONGVARCHAR},
#{orderAmount,jdbcType=LONGVARCHAR}) #{orderAmount,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR}, #{pValue,jdbcType=LONGVARCHAR}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswer"> <insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswer">
insert into cptgcs_answer insert into cptgcs_answer
@ -141,8 +145,8 @@
<if test="userId != null"> <if test="userId != null">
user_id, user_id,
</if> </if>
<if test="testPeriod != null"> <if test="createTime != null">
test_period, create_time,
</if> </if>
<if test="clickRate != null"> <if test="clickRate != null">
click_rate, click_rate,
@ -156,6 +160,12 @@
<if test="orderAmount != null"> <if test="orderAmount != null">
order_amount, order_amount,
</if> </if>
<if test="context != null">
context,
</if>
<if test="pValue != null">
p_value,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
@ -164,8 +174,8 @@
<if test="userId != null"> <if test="userId != null">
#{userId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
</if> </if>
<if test="testPeriod != null"> <if test="createTime != null">
#{testPeriod,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="clickRate != null"> <if test="clickRate != null">
#{clickRate,jdbcType=LONGVARCHAR}, #{clickRate,jdbcType=LONGVARCHAR},
@ -179,6 +189,12 @@
<if test="orderAmount != null"> <if test="orderAmount != null">
#{orderAmount,jdbcType=LONGVARCHAR}, #{orderAmount,jdbcType=LONGVARCHAR},
</if> </if>
<if test="context != null">
#{context,jdbcType=LONGVARCHAR},
</if>
<if test="pValue != null">
#{pValue,jdbcType=LONGVARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswerExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswerExample" resultType="java.lang.Long">
@ -196,8 +212,8 @@
<if test="record.userId != null"> <if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR},
</if> </if>
<if test="record.testPeriod != null"> <if test="record.createTime != null">
test_period = #{record.testPeriod,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="record.clickRate != null"> <if test="record.clickRate != null">
click_rate = #{record.clickRate,jdbcType=LONGVARCHAR}, click_rate = #{record.clickRate,jdbcType=LONGVARCHAR},
@ -211,6 +227,12 @@
<if test="record.orderAmount != null"> <if test="record.orderAmount != null">
order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR}, order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR},
</if> </if>
<if test="record.context != null">
context = #{record.context,jdbcType=LONGVARCHAR},
</if>
<if test="record.pValue != null">
p_value = #{record.pValue,jdbcType=LONGVARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
@ -220,11 +242,13 @@
update cptgcs_answer update cptgcs_answer
set id = #{record.id,jdbcType=VARCHAR}, set id = #{record.id,jdbcType=VARCHAR},
user_id = #{record.userId,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}, click_rate = #{record.clickRate,jdbcType=LONGVARCHAR},
conversion_rate = #{record.conversionRate,jdbcType=LONGVARCHAR}, conversion_rate = #{record.conversionRate,jdbcType=LONGVARCHAR},
roi_data = #{record.roiData,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}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -233,7 +257,7 @@
update cptgcs_answer update cptgcs_answer
set id = #{record.id,jdbcType=VARCHAR}, set id = #{record.id,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR},
test_period = #{record.testPeriod,jdbcType=VARCHAR} create_time = #{record.createTime,jdbcType=TIMESTAMP}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -244,8 +268,8 @@
<if test="userId != null"> <if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR}, user_id = #{userId,jdbcType=VARCHAR},
</if> </if>
<if test="testPeriod != null"> <if test="createTime != null">
test_period = #{testPeriod,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="clickRate != null"> <if test="clickRate != null">
click_rate = #{clickRate,jdbcType=LONGVARCHAR}, click_rate = #{clickRate,jdbcType=LONGVARCHAR},
@ -259,23 +283,31 @@
<if test="orderAmount != null"> <if test="orderAmount != null">
order_amount = #{orderAmount,jdbcType=LONGVARCHAR}, order_amount = #{orderAmount,jdbcType=LONGVARCHAR},
</if> </if>
<if test="context != null">
context = #{context,jdbcType=LONGVARCHAR},
</if>
<if test="pValue != null">
p_value = #{pValue,jdbcType=LONGVARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswer"> <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswer">
update cptgcs_answer update cptgcs_answer
set user_id = #{userId,jdbcType=VARCHAR}, set user_id = #{userId,jdbcType=VARCHAR},
test_period = #{testPeriod,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP},
click_rate = #{clickRate,jdbcType=LONGVARCHAR}, click_rate = #{clickRate,jdbcType=LONGVARCHAR},
conversion_rate = #{conversionRate,jdbcType=LONGVARCHAR}, conversion_rate = #{conversionRate,jdbcType=LONGVARCHAR},
roi_data = #{roiData,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} where id = #{id,jdbcType=VARCHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswer"> <update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CptgcsAnswer">
update cptgcs_answer update cptgcs_answer
set user_id = #{userId,jdbcType=VARCHAR}, set user_id = #{userId,jdbcType=VARCHAR},
test_period = #{testPeriod,jdbcType=VARCHAR} create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
</mapper> </mapper>

@ -4,15 +4,15 @@
<resultMap id="BaseResultMap" type="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer"> <resultMap id="BaseResultMap" type="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
<id column="id" jdbcType="VARCHAR" property="id" /> <id column="id" jdbcType="VARCHAR" property="id" />
<result column="user_id" jdbcType="VARCHAR" property="userId" /> <result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="test_cycles" jdbcType="TINYINT" property="testCycles" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="submit_time" jdbcType="TIMESTAMP" property="submitTime" />
<result column="status" jdbcType="CHAR" property="status" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
<result column="click_rate" jdbcType="LONGVARCHAR" property="clickRate" /> <result column="click_rate" jdbcType="LONGVARCHAR" property="clickRate" />
<result column="conversion_rate" jdbcType="LONGVARCHAR" property="conversionRate" /> <result column="conversion_rate" jdbcType="LONGVARCHAR" property="conversionRate" />
<result column="roi_data" jdbcType="LONGVARCHAR" property="roiData" /> <result column="roi_data" jdbcType="LONGVARCHAR" property="roiData" />
<result column="order_amount" jdbcType="LONGVARCHAR" property="orderAmount" /> <result column="order_amount" jdbcType="LONGVARCHAR" property="orderAmount" />
<result column="context" jdbcType="LONGVARCHAR" property="context" />
<result column="p_value" jdbcType="LONGVARCHAR" property="pValue" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
@ -73,10 +73,10 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, user_id, test_cycles, submit_time, status id, user_id, create_time
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
click_rate, conversion_rate, roi_data, order_amount click_rate, conversion_rate, roi_data, order_amount, context, p_value
</sql> </sql>
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswerExample" resultMap="ResultMapWithBLOBs"> <select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswerExample" resultMap="ResultMapWithBLOBs">
select select
@ -127,13 +127,13 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer"> <insert id="insert" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
insert into cptgcs_stu_answer (id, user_id, test_cycles, insert into cptgcs_stu_answer (id, user_id, create_time,
submit_time, status, click_rate, click_rate, conversion_rate, roi_data,
conversion_rate, roi_data, order_amount order_amount, context, p_value
) )
values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{testCycles,jdbcType=TINYINT}, values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{submitTime,jdbcType=TIMESTAMP}, #{status,jdbcType=CHAR}, #{clickRate,jdbcType=LONGVARCHAR}, #{clickRate,jdbcType=LONGVARCHAR}, #{conversionRate,jdbcType=LONGVARCHAR}, #{roiData,jdbcType=LONGVARCHAR},
#{conversionRate,jdbcType=LONGVARCHAR}, #{roiData,jdbcType=LONGVARCHAR}, #{orderAmount,jdbcType=LONGVARCHAR} #{orderAmount,jdbcType=LONGVARCHAR}, #{context,jdbcType=LONGVARCHAR}, #{pValue,jdbcType=LONGVARCHAR}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer"> <insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
@ -145,14 +145,8 @@
<if test="userId != null"> <if test="userId != null">
user_id, user_id,
</if> </if>
<if test="testCycles != null"> <if test="createTime != null">
test_cycles, create_time,
</if>
<if test="submitTime != null">
submit_time,
</if>
<if test="status != null">
status,
</if> </if>
<if test="clickRate != null"> <if test="clickRate != null">
click_rate, click_rate,
@ -166,6 +160,12 @@
<if test="orderAmount != null"> <if test="orderAmount != null">
order_amount, order_amount,
</if> </if>
<if test="context != null">
context,
</if>
<if test="pValue != null">
p_value,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
@ -174,14 +174,8 @@
<if test="userId != null"> <if test="userId != null">
#{userId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
</if> </if>
<if test="testCycles != null"> <if test="createTime != null">
#{testCycles,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="submitTime != null">
#{submitTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
#{status,jdbcType=CHAR},
</if> </if>
<if test="clickRate != null"> <if test="clickRate != null">
#{clickRate,jdbcType=LONGVARCHAR}, #{clickRate,jdbcType=LONGVARCHAR},
@ -195,6 +189,12 @@
<if test="orderAmount != null"> <if test="orderAmount != null">
#{orderAmount,jdbcType=LONGVARCHAR}, #{orderAmount,jdbcType=LONGVARCHAR},
</if> </if>
<if test="context != null">
#{context,jdbcType=LONGVARCHAR},
</if>
<if test="pValue != null">
#{pValue,jdbcType=LONGVARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswerExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswerExample" resultType="java.lang.Long">
@ -212,14 +212,8 @@
<if test="record.userId != null"> <if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR},
</if> </if>
<if test="record.testCycles != null"> <if test="record.createTime != null">
test_cycles = #{record.testCycles,jdbcType=TINYINT}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.submitTime != null">
submit_time = #{record.submitTime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=CHAR},
</if> </if>
<if test="record.clickRate != null"> <if test="record.clickRate != null">
click_rate = #{record.clickRate,jdbcType=LONGVARCHAR}, click_rate = #{record.clickRate,jdbcType=LONGVARCHAR},
@ -233,6 +227,12 @@
<if test="record.orderAmount != null"> <if test="record.orderAmount != null">
order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR}, order_amount = #{record.orderAmount,jdbcType=LONGVARCHAR},
</if> </if>
<if test="record.context != null">
context = #{record.context,jdbcType=LONGVARCHAR},
</if>
<if test="record.pValue != null">
p_value = #{record.pValue,jdbcType=LONGVARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
@ -242,13 +242,13 @@
update cptgcs_stu_answer update cptgcs_stu_answer
set id = #{record.id,jdbcType=VARCHAR}, set id = #{record.id,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR},
test_cycles = #{record.testCycles,jdbcType=TINYINT}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
submit_time = #{record.submitTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=CHAR},
click_rate = #{record.clickRate,jdbcType=LONGVARCHAR}, click_rate = #{record.clickRate,jdbcType=LONGVARCHAR},
conversion_rate = #{record.conversionRate,jdbcType=LONGVARCHAR}, conversion_rate = #{record.conversionRate,jdbcType=LONGVARCHAR},
roi_data = #{record.roiData,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}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -257,9 +257,7 @@
update cptgcs_stu_answer update cptgcs_stu_answer
set id = #{record.id,jdbcType=VARCHAR}, set id = #{record.id,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=VARCHAR},
test_cycles = #{record.testCycles,jdbcType=TINYINT}, create_time = #{record.createTime,jdbcType=TIMESTAMP}
submit_time = #{record.submitTime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=CHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -270,14 +268,8 @@
<if test="userId != null"> <if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR}, user_id = #{userId,jdbcType=VARCHAR},
</if> </if>
<if test="testCycles != null"> <if test="createTime != null">
test_cycles = #{testCycles,jdbcType=TINYINT}, create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="submitTime != null">
submit_time = #{submitTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null">
status = #{status,jdbcType=CHAR},
</if> </if>
<if test="clickRate != null"> <if test="clickRate != null">
click_rate = #{clickRate,jdbcType=LONGVARCHAR}, click_rate = #{clickRate,jdbcType=LONGVARCHAR},
@ -291,27 +283,31 @@
<if test="orderAmount != null"> <if test="orderAmount != null">
order_amount = #{orderAmount,jdbcType=LONGVARCHAR}, order_amount = #{orderAmount,jdbcType=LONGVARCHAR},
</if> </if>
<if test="context != null">
context = #{context,jdbcType=LONGVARCHAR},
</if>
<if test="pValue != null">
p_value = #{pValue,jdbcType=LONGVARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer"> <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
update cptgcs_stu_answer update cptgcs_stu_answer
set user_id = #{userId,jdbcType=VARCHAR}, set user_id = #{userId,jdbcType=VARCHAR},
test_cycles = #{testCycles,jdbcType=TINYINT}, create_time = #{createTime,jdbcType=TIMESTAMP},
submit_time = #{submitTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=CHAR},
click_rate = #{clickRate,jdbcType=LONGVARCHAR}, click_rate = #{clickRate,jdbcType=LONGVARCHAR},
conversion_rate = #{conversionRate,jdbcType=LONGVARCHAR}, conversion_rate = #{conversionRate,jdbcType=LONGVARCHAR},
roi_data = #{roiData,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} where id = #{id,jdbcType=VARCHAR}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer"> <update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.CptgcsStuAnswer">
update cptgcs_stu_answer update cptgcs_stu_answer
set user_id = #{userId,jdbcType=VARCHAR}, set user_id = #{userId,jdbcType=VARCHAR},
test_cycles = #{testCycles,jdbcType=TINYINT}, create_time = #{createTime,jdbcType=TIMESTAMP}
submit_time = #{submitTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=CHAR}
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
</mapper> </mapper>
Loading…
Cancel
Save