修改配置文件

main
whb 1 year ago
parent 37b90b9ae1
commit 3efd648c70

@ -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<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
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<StuGrade> 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<FbqdStuAnswer> 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, "重新实训失败");
}
}

@ -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 {
}
}

@ -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();
}
}

@ -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<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 {

@ -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();
}
}

@ -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<Date> 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<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andTestPeriodIn(List<String> 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<String> 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;
}
}

@ -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();
}
}

@ -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<Byte> values) {
addCriterion("test_cycles in", values, "testCycles");
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andTestCyclesNotIn(List<Byte> values) {
addCriterion("test_cycles not in", values, "testCycles");
public Criteria andCreateTimeNotIn(List<Date> 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<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");
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}

@ -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;

@ -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"

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

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

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