接触AI使用次数限制

master
whb 7 months ago
parent 340fdf4285
commit b6c6b71f6b

@ -8,11 +8,7 @@ import org.springframework.stereotype.Component;
@Component
public class Constant {
public static final String ZSGY_TCHMODULE = "知识概要";
public static final String ZYXX_TCHMODULE = "资源学习";
public static final String XXCP_TCHMODULE = "学习测评";
public static final String SYSX_TCHMODULE = "实验实训";
public static final String SYBG_TCHMODULE = "实验报告";
public static final String JUPYTERHUB_API_URL = "http://120.78.220.29:8000/hub/api";
public static final String ADMIN_TOKEN = "170bed30b34242cfb3fda3171e1a111d"; // 替换为你的JupyterHub管理员API令牌

@ -23,7 +23,7 @@ public class TokenProvider {
private final static String SECRET = "MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAghgsx+OLLThi7c+/HgCaRla8n+/QLHt++uscoK22dMeaVa3WJvRb5C5qtHGzj9V74pI96JpxdWWCN3Zr1QtanQIDAQABAkB2fWRUD1jVMBVS+rPctLnPNPMKTRdzXGv0SC5D3tRfGZqdcfsmZg8hzBVndHxngmwZS73d+hPjofcdefDDnXq1AiEAz/r1AMF7fweN70mbKgBJuTja37puJMsH2Szwrvb5jlcCIQCgIaLZ5d9J7OomL0NwH8ghba/xgBEpKzErfGbFnTfeKwIgc8ptczFFV1DWZb2eJIEqinOr79l0jwl2YiQSD+cyw1sCIHqxCvv1Wx5jPgy/zeYNE+Q5DMP3Ii7u/x+Yk436JiI9AiEAio84hFm44YTUuV7YCYsbyvnCn/vtcAaqZlczbeHlP1I=";
private final static long EXP_TIME = 1000 * 60 * 60 * 4;
private final static String SECRET_ZHIYUN = "zy_zx_mnjy_fp76ckwuczzmb67w0a8x0";
private final static String SECRET_ZHIYUN = "zy_yx_mnjy_fp76ckwuczzmb67w0a8x0";
private final static String CURRENT_TO_ZHIYUN = "jVzvfoZU_eFN0CJcFARg0K6DlzTLa7oMWB7lV_y2s7bkv2Bem0281wEwlJp5afhsmM-Ynwvh3mAUTpwblGEz1A";

@ -126,7 +126,7 @@ public class UserController {
type = 0;
}
if (type ==1 )
if (type ==1)
{
jwtUser = TokenProvider.getJWTUserOne(TOKEN);
}else {

@ -1,15 +1,21 @@
package com.sztzjy.marketing.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.sztzjy.marketing.entity.dto.StuMachineLearningInfoDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*
* @author whb
* stu_machine_learning
*/
public class StuMachineLearning {
@Data
public class StuMachineLearning implements Serializable {
@ApiModelProperty("id")
private Integer id;
@ -181,6 +187,56 @@ public class StuMachineLearning {
@ApiModelProperty("错误字段")
private String errorField;
@ApiModelProperty("34")
private String stepNew;
@ApiModelProperty("35")
private String stepNewOne;
@ApiModelProperty("36")
private String stepNewTwo;
@ApiModelProperty("37")
private String stepNewThree;
@ApiModelProperty("38")
private String stepNewFive;
@ApiModelProperty("39")
private String stepNewSix;
@ApiModelProperty("40")
private String stepNewNine;
@ApiModelProperty("41")
private String stepNewEight;
@ApiModelProperty("35")
private String stepNewTen;
@ApiModelProperty("36")
private String stepNewEleven;
@ApiModelProperty("37")
private String stepNewShier;
@ApiModelProperty("38")
private String stepNewShisan;
@ApiModelProperty("39")
private String stepNewShisi;
@ApiModelProperty("40")
private String stepNewShiwu;
@ApiModelProperty("41")
private String stepNewShiliu;
@ApiModelProperty("活跃用户分析")
private String activeUserAnalysis;
private List<StuMachineLearningInfoDTO> stuMachineLearningInfoDTOList;
public Integer getId() {
return id;
}
@ -636,4 +692,132 @@ public class StuMachineLearning {
public void setErrorField(String errorField) {
this.errorField = errorField == null ? null : errorField.trim();
}
public String getStepNew() {
return stepNew;
}
public void setStepNew(String stepNew) {
this.stepNew = stepNew == null ? null : stepNew.trim();
}
public String getStepNewOne() {
return stepNewOne;
}
public void setStepNewOne(String stepNewOne) {
this.stepNewOne = stepNewOne == null ? null : stepNewOne.trim();
}
public String getStepNewTwo() {
return stepNewTwo;
}
public void setStepNewTwo(String stepNewTwo) {
this.stepNewTwo = stepNewTwo == null ? null : stepNewTwo.trim();
}
public String getStepNewThree() {
return stepNewThree;
}
public void setStepNewThree(String stepNewThree) {
this.stepNewThree = stepNewThree == null ? null : stepNewThree.trim();
}
public String getStepNewFive() {
return stepNewFive;
}
public void setStepNewFive(String stepNewFive) {
this.stepNewFive = stepNewFive == null ? null : stepNewFive.trim();
}
public String getStepNewSix() {
return stepNewSix;
}
public void setStepNewSix(String stepNewSix) {
this.stepNewSix = stepNewSix == null ? null : stepNewSix.trim();
}
public String getStepNewNine() {
return stepNewNine;
}
public void setStepNewNine(String stepNewNine) {
this.stepNewNine = stepNewNine == null ? null : stepNewNine.trim();
}
public String getStepNewEight() {
return stepNewEight;
}
public void setStepNewEight(String stepNewEight) {
this.stepNewEight = stepNewEight == null ? null : stepNewEight.trim();
}
public String getStepNewTen() {
return stepNewTen;
}
public void setStepNewTen(String stepNewTen) {
this.stepNewTen = stepNewTen == null ? null : stepNewTen.trim();
}
public String getStepNewEleven() {
return stepNewEleven;
}
public void setStepNewEleven(String stepNewEleven) {
this.stepNewEleven = stepNewEleven == null ? null : stepNewEleven.trim();
}
public String getStepNewShier() {
return stepNewShier;
}
public void setStepNewShier(String stepNewShier) {
this.stepNewShier = stepNewShier == null ? null : stepNewShier.trim();
}
public String getStepNewShisan() {
return stepNewShisan;
}
public void setStepNewShisan(String stepNewShisan) {
this.stepNewShisan = stepNewShisan == null ? null : stepNewShisan.trim();
}
public String getStepNewShisi() {
return stepNewShisi;
}
public void setStepNewShisi(String stepNewShisi) {
this.stepNewShisi = stepNewShisi == null ? null : stepNewShisi.trim();
}
public String getStepNewShiwu() {
return stepNewShiwu;
}
public void setStepNewShiwu(String stepNewShiwu) {
this.stepNewShiwu = stepNewShiwu == null ? null : stepNewShiwu.trim();
}
public String getStepNewShiliu() {
return stepNewShiliu;
}
public void setStepNewShiliu(String stepNewShiliu) {
this.stepNewShiliu = stepNewShiliu == null ? null : stepNewShiliu.trim();
}
public String getActiveUserAnalysis() {
return activeUserAnalysis;
}
public void setActiveUserAnalysis(String activeUserAnalysis) {
this.activeUserAnalysis = activeUserAnalysis == null ? null : activeUserAnalysis.trim();
}
}

@ -21,69 +21,70 @@ public class StuUploadExcelUser {
private Integer id;
@ApiModelProperty("步骤一 a")
@ExcelProperty(index = 0)
private String stepOneA;
@ApiModelProperty("步骤一 b")
@ExcelProperty(index = 1)
@ExcelProperty(index = 0)
private String stepOneB;
@ApiModelProperty("步骤一 c")
@ExcelProperty(index = 2)
@ExcelProperty(index = 1)
private String stepOneC;
@ApiModelProperty("步骤一 d")
@ExcelProperty(index = 3)
@ExcelProperty(index = 2)
private String stepOneD;
@ApiModelProperty("4")
@ExcelProperty(index = 4)
@ExcelProperty(index = 3)
private String stepTwoA;
@ApiModelProperty("5")
@ExcelProperty(index = 5)
@ExcelProperty(index = 4)
private String stepTwoB;
@ApiModelProperty("6")
@ExcelProperty(index = 6)
@ExcelProperty(index = 5)
private String stepTwoC;
@ApiModelProperty("7")
@ExcelProperty(index = 7)
@ExcelProperty(index = 6)
private String stepThreeA;
@ApiModelProperty("8")
@ExcelProperty(index = 8)
@ExcelProperty(index = 7)
private String stepThreeB;
@ApiModelProperty("9")
@ExcelProperty(index = 9)
@ExcelProperty(index = 8)
private String stepThreeC;
@ApiModelProperty("10")
@ExcelProperty(index = 10)
@ExcelProperty(index = 9)
private String stepThreeD;
@ApiModelProperty("11")
@ExcelProperty(index = 11)
@ExcelProperty(index = 10)
private String stepFourA;
@ApiModelProperty("12")
@ExcelProperty(index = 12)
@ExcelProperty(index = 11)
private String stepFourB;
@ApiModelProperty("13")
@ExcelProperty(index = 13)
@ExcelProperty(index = 12)
private String stepFourC;
@ApiModelProperty("14")
@ExcelProperty(index = 14)
@ExcelProperty(index = 13)
private String stepFourD;
@ApiModelProperty("15")
@ExcelProperty(index = 14)
private String stepFiveA;
@ApiModelProperty("16")
@ExcelProperty(index = 15)
private String stepFiveB;
@ApiModelProperty("17")

@ -0,0 +1,37 @@
package com.sztzjy.marketing.entity.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @author 17803
* @date 2024-08-13 14:56
*/
@Data
public class StuMachineLearningInfoDTO {
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
@ApiModelProperty("登录时间")
private String loginTime;
@ApiModelProperty("日活跃用户")
private Integer activeUser;
@ApiModelProperty("日活跃率(%")
private Double activeUserRate;
@ApiModelProperty("日活跃平均时长")
private Double activeUserTime;
}

@ -16,15 +16,21 @@ public interface StuMachineLearningMapper {
int insertSelective(StuMachineLearning record);
List<StuMachineLearning> selectByExampleWithBLOBs(StuMachineLearningExample example);
List<StuMachineLearning> selectByExample(StuMachineLearningExample example);
StuMachineLearning selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuMachineLearning record, @Param("example") StuMachineLearningExample example);
int updateByExampleWithBLOBs(@Param("record") StuMachineLearning record, @Param("example") StuMachineLearningExample example);
int updateByExample(@Param("record") StuMachineLearning record, @Param("example") StuMachineLearningExample example);
int updateByPrimaryKeySelective(StuMachineLearning record);
int updateByPrimaryKeyWithBLOBs(StuMachineLearning record);
int updateByPrimaryKey(StuMachineLearning record);
}

@ -5,8 +5,11 @@ package com.sztzjy.marketing.service.impl;/**
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.sztzjy.marketing.config.Constant;
import com.sztzjy.marketing.entity.*;
import com.sztzjy.marketing.entity.dto.StuMachineLearningInfoDTO;
import com.sztzjy.marketing.mapper.*;
import com.sztzjy.marketing.service.UserBehaviorProfilingAnaService;
import com.sztzjy.marketing.util.BigDecimalUtils;
@ -16,6 +19,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import javax.annotation.Resource;
import java.math.BigDecimal;
@ -59,9 +63,16 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin
@Override
public ResultEntity analysisByAutoSave(StuMachineLearning learning) {
Boolean flag = false;
if (learning.getStuMachineLearningInfoDTOList()!=null) {
flag = true;
}
StuMachineLearningExample machineLearningExample = new StuMachineLearningExample();
machineLearningExample.createCriteria().andUserIdEqualTo(learning.getUserId()).andModuleEqualTo(learning.getModule());
List<StuMachineLearning> machineLearningList = machineLearningMapper.selectByExample(machineLearningExample);
List<StuMachineLearning> machineLearningList = machineLearningMapper.selectByExampleWithBLOBs(machineLearningExample);
if (!machineLearningList.isEmpty()) {
@ -80,6 +91,13 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin
BeanUtils.copyProperties(learning, machineLearning);
machineLearning.setId(id);
if (flag)
{
//讲数据转为json
String json = JSONObject.toJSONString(learning.getStuMachineLearningInfoDTOList());
machineLearning.setActiveUserAnalysis(json);
}
machineLearningMapper.updateByPrimaryKeySelective(machineLearning);
@ -89,6 +107,13 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin
//第一次保存
learning.setId((int) IdUtil.getSnowflakeNextId());
if (flag)
{
//讲数据转为json
String json = JSONObject.toJSONString(learning.getStuMachineLearningInfoDTOList());
learning.setActiveUserAnalysis(json);
}
machineLearningMapper.insertSelective(learning);
@ -110,12 +135,19 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin
public ResultEntity readTrainInfo(String module, String userId) {
StuMachineLearningExample machineLearningExample = new StuMachineLearningExample();
machineLearningExample.createCriteria().andUserIdEqualTo(userId).andModuleEqualTo(module);
List<StuMachineLearning> machineLearningList = machineLearningMapper.selectByExample(machineLearningExample);
List<StuMachineLearning> machineLearningList = machineLearningMapper.selectByExampleWithBLOBs(machineLearningExample);
//查询是否有数据
if (machineLearningList.isEmpty()) {
return new ResultEntity<>(HttpStatus.OK);
}
String activeUserAnalysis = machineLearningList.get(0).getActiveUserAnalysis();
List<StuMachineLearningInfoDTO> stuMachineLearningInfoDTOList = JSONObject.parseArray(activeUserAnalysis, StuMachineLearningInfoDTO.class);
machineLearningList.get(0).setStuMachineLearningInfoDTOList(stuMachineLearningInfoDTOList);
return new ResultEntity<>(HttpStatus.OK, "查询成功", machineLearningList.get(0));
@ -539,4 +571,6 @@ public class UserBehaviorProfilingAnaServiceImpl implements UserBehaviorProfilin
stuUserMapper.updateByPrimaryKeySelective(stuUser);
}
}

@ -2,14 +2,19 @@ package com.sztzjy.marketing.util.excel;
import cn.hutool.core.util.IdUtil;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.metadata.data.ReadCellData;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.excel.util.ConverterUtils;
import com.alibaba.excel.util.ListUtils;
import com.alibaba.fastjson.JSON;
import com.sztzjy.marketing.entity.StuUploadExcelUser;
import com.sztzjy.marketing.mapper.StuUploadExcelUserMapper;
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
// 有个很重要的点 DemoDataListener 不能被spring管理要每次读取excel都要new,然后里面用到spring可以构造方法传进去
@Slf4j
@ -29,7 +34,7 @@ public class DemoDataListener implements ReadListener<StuUploadExcelUser> {
private StuUploadExcelUserMapper demoDAO;
private String userId;
private String name;
List<String> list = new ArrayList<String>();
/**
* 使spring,使Listenerspring
@ -42,6 +47,33 @@ public class DemoDataListener implements ReadListener<StuUploadExcelUser> {
this.demoDAO = demoDAO;
}
/**
*
*
* @param headMap
* @param context
*/
@Override
public void invokeHead(Map<Integer, ReadCellData<?>> headMap, AnalysisContext context) {
log.info("解析到一条头数据:{}", JSON.toJSONString(headMap));
Map<Integer, String> integerStringMap = ConverterUtils.convertToStringMap(headMap, context);
log.info("转换解析到的一条头数据:{}", integerStringMap);
Set<Integer> integers = integerStringMap.keySet();
for (Integer integer : integers) {
list.add(integerStringMap.get(integer));
}
// 如果想转成成 Map<Integer,String>
// 方案1 不要implements ReadListener 而是 extends AnalysisEventListener
// 方案2 调用 ConverterUtils.convertToStringMap(headMap, context) 自动会转换
}
/**
*
*
@ -81,6 +113,7 @@ public class DemoDataListener implements ReadListener<StuUploadExcelUser> {
cachedDataList.forEach(item->{
item.setUserId(userId);
item.setModule(name);
item.setStepOneA(JSON.toJSONString(list));
});
demoDAO.insertBatch(cachedDataList);

@ -59,6 +59,24 @@
<result column="step_eleven_b" jdbcType="VARCHAR" property="stepElevenB" />
<result column="step_eleven_c" jdbcType="VARCHAR" property="stepElevenC" />
<result column="error_field" jdbcType="VARCHAR" property="errorField" />
<result column="step_new" jdbcType="VARCHAR" property="stepNew" />
<result column="step_new_one" jdbcType="VARCHAR" property="stepNewOne" />
<result column="step_new_two" jdbcType="VARCHAR" property="stepNewTwo" />
<result column="step_new_three" jdbcType="VARCHAR" property="stepNewThree" />
<result column="step_new_five" jdbcType="VARCHAR" property="stepNewFive" />
<result column="step_new_six" jdbcType="VARCHAR" property="stepNewSix" />
<result column="step_new_nine" jdbcType="VARCHAR" property="stepNewNine" />
<result column="step_new_eight" jdbcType="VARCHAR" property="stepNewEight" />
<result column="step_new_ten" jdbcType="VARCHAR" property="stepNewTen" />
<result column="step_new_eleven" jdbcType="VARCHAR" property="stepNewEleven" />
<result column="step_new_shier" jdbcType="VARCHAR" property="stepNewShier" />
<result column="step_new_shisan" jdbcType="VARCHAR" property="stepNewShisan" />
<result column="step_new_shisi" jdbcType="VARCHAR" property="stepNewShisi" />
<result column="step_new_shiwu" jdbcType="VARCHAR" property="stepNewShiwu" />
<result column="step_new_shiliu" jdbcType="VARCHAR" property="stepNewShiliu" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.marketing.entity.StuMachineLearning">
<result column="active_user_analysis" jdbcType="LONGVARCHAR" property="activeUserAnalysis" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -127,8 +145,30 @@
step_nine_c, success_number, user_id, sub_state, module, one_sub_state, two_sub_state,
three_sub_state, four_sub_state, five_sub_state, six_sub_state, seven_sub_state,
create_time, update_time, step_nine_d, step_ten_a, step_ten_b, step_ten_c, step_ten_d,
step_eleven_a, step_eleven_b, step_eleven_c, error_field
step_eleven_a, step_eleven_b, step_eleven_c, error_field, step_new, step_new_one,
step_new_two, step_new_three, step_new_five, step_new_six, step_new_nine, step_new_eight,
step_new_ten, step_new_eleven, step_new_shier, step_new_shisan, step_new_shisi, step_new_shiwu,
step_new_shiliu
</sql>
<sql id="Blob_Column_List">
active_user_analysis
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.marketing.entity.StuMachineLearningExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from stu_machine_learning
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.sztzjy.marketing.entity.StuMachineLearningExample" resultMap="BaseResultMap">
select
<if test="distinct">
@ -143,9 +183,11 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from stu_machine_learning
where id = #{id,jdbcType=INTEGER}
</select>
@ -178,8 +220,13 @@
seven_sub_state, create_time, update_time,
step_nine_d, step_ten_a, step_ten_b,
step_ten_c, step_ten_d, step_eleven_a,
step_eleven_b, step_eleven_c, error_field
)
step_eleven_b, step_eleven_c, error_field,
step_new, step_new_one, step_new_two,
step_new_three, step_new_five, step_new_six,
step_new_nine, step_new_eight, step_new_ten,
step_new_eleven, step_new_shier, step_new_shisan,
step_new_shisi, step_new_shiwu, step_new_shiliu,
active_user_analysis)
values (#{id,jdbcType=INTEGER}, #{stepOneA,jdbcType=VARCHAR}, #{stepOneB,jdbcType=VARCHAR},
#{stepOneC,jdbcType=VARCHAR}, #{stepOneD,jdbcType=VARCHAR}, #{stepTwoA,jdbcType=VARCHAR},
#{stepTwoB,jdbcType=VARCHAR}, #{stepTwoC,jdbcType=VARCHAR}, #{stepThreeA,jdbcType=VARCHAR},
@ -198,8 +245,13 @@
#{sevenSubState,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{stepNineD,jdbcType=VARCHAR}, #{stepTenA,jdbcType=VARCHAR}, #{stepTenB,jdbcType=VARCHAR},
#{stepTenC,jdbcType=VARCHAR}, #{stepTenD,jdbcType=VARCHAR}, #{stepElevenA,jdbcType=VARCHAR},
#{stepElevenB,jdbcType=VARCHAR}, #{stepElevenC,jdbcType=VARCHAR}, #{errorField,jdbcType=VARCHAR}
)
#{stepElevenB,jdbcType=VARCHAR}, #{stepElevenC,jdbcType=VARCHAR}, #{errorField,jdbcType=VARCHAR},
#{stepNew,jdbcType=VARCHAR}, #{stepNewOne,jdbcType=VARCHAR}, #{stepNewTwo,jdbcType=VARCHAR},
#{stepNewThree,jdbcType=VARCHAR}, #{stepNewFive,jdbcType=VARCHAR}, #{stepNewSix,jdbcType=VARCHAR},
#{stepNewNine,jdbcType=VARCHAR}, #{stepNewEight,jdbcType=VARCHAR}, #{stepNewTen,jdbcType=VARCHAR},
#{stepNewEleven,jdbcType=VARCHAR}, #{stepNewShier,jdbcType=VARCHAR}, #{stepNewShisan,jdbcType=VARCHAR},
#{stepNewShisi,jdbcType=VARCHAR}, #{stepNewShiwu,jdbcType=VARCHAR}, #{stepNewShiliu,jdbcType=VARCHAR},
#{activeUserAnalysis,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.marketing.entity.StuMachineLearning">
insert into stu_machine_learning
@ -375,6 +427,54 @@
<if test="errorField != null">
error_field,
</if>
<if test="stepNew != null">
step_new,
</if>
<if test="stepNewOne != null">
step_new_one,
</if>
<if test="stepNewTwo != null">
step_new_two,
</if>
<if test="stepNewThree != null">
step_new_three,
</if>
<if test="stepNewFive != null">
step_new_five,
</if>
<if test="stepNewSix != null">
step_new_six,
</if>
<if test="stepNewNine != null">
step_new_nine,
</if>
<if test="stepNewEight != null">
step_new_eight,
</if>
<if test="stepNewTen != null">
step_new_ten,
</if>
<if test="stepNewEleven != null">
step_new_eleven,
</if>
<if test="stepNewShier != null">
step_new_shier,
</if>
<if test="stepNewShisan != null">
step_new_shisan,
</if>
<if test="stepNewShisi != null">
step_new_shisi,
</if>
<if test="stepNewShiwu != null">
step_new_shiwu,
</if>
<if test="stepNewShiliu != null">
step_new_shiliu,
</if>
<if test="activeUserAnalysis != null">
active_user_analysis,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -548,6 +648,54 @@
<if test="errorField != null">
#{errorField,jdbcType=VARCHAR},
</if>
<if test="stepNew != null">
#{stepNew,jdbcType=VARCHAR},
</if>
<if test="stepNewOne != null">
#{stepNewOne,jdbcType=VARCHAR},
</if>
<if test="stepNewTwo != null">
#{stepNewTwo,jdbcType=VARCHAR},
</if>
<if test="stepNewThree != null">
#{stepNewThree,jdbcType=VARCHAR},
</if>
<if test="stepNewFive != null">
#{stepNewFive,jdbcType=VARCHAR},
</if>
<if test="stepNewSix != null">
#{stepNewSix,jdbcType=VARCHAR},
</if>
<if test="stepNewNine != null">
#{stepNewNine,jdbcType=VARCHAR},
</if>
<if test="stepNewEight != null">
#{stepNewEight,jdbcType=VARCHAR},
</if>
<if test="stepNewTen != null">
#{stepNewTen,jdbcType=VARCHAR},
</if>
<if test="stepNewEleven != null">
#{stepNewEleven,jdbcType=VARCHAR},
</if>
<if test="stepNewShier != null">
#{stepNewShier,jdbcType=VARCHAR},
</if>
<if test="stepNewShisan != null">
#{stepNewShisan,jdbcType=VARCHAR},
</if>
<if test="stepNewShisi != null">
#{stepNewShisi,jdbcType=VARCHAR},
</if>
<if test="stepNewShiwu != null">
#{stepNewShiwu,jdbcType=VARCHAR},
</if>
<if test="stepNewShiliu != null">
#{stepNewShiliu,jdbcType=VARCHAR},
</if>
<if test="activeUserAnalysis != null">
#{activeUserAnalysis,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.marketing.entity.StuMachineLearningExample" resultType="java.lang.Long">
@ -730,11 +878,138 @@
<if test="record.errorField != null">
error_field = #{record.errorField,jdbcType=VARCHAR},
</if>
<if test="record.stepNew != null">
step_new = #{record.stepNew,jdbcType=VARCHAR},
</if>
<if test="record.stepNewOne != null">
step_new_one = #{record.stepNewOne,jdbcType=VARCHAR},
</if>
<if test="record.stepNewTwo != null">
step_new_two = #{record.stepNewTwo,jdbcType=VARCHAR},
</if>
<if test="record.stepNewThree != null">
step_new_three = #{record.stepNewThree,jdbcType=VARCHAR},
</if>
<if test="record.stepNewFive != null">
step_new_five = #{record.stepNewFive,jdbcType=VARCHAR},
</if>
<if test="record.stepNewSix != null">
step_new_six = #{record.stepNewSix,jdbcType=VARCHAR},
</if>
<if test="record.stepNewNine != null">
step_new_nine = #{record.stepNewNine,jdbcType=VARCHAR},
</if>
<if test="record.stepNewEight != null">
step_new_eight = #{record.stepNewEight,jdbcType=VARCHAR},
</if>
<if test="record.stepNewTen != null">
step_new_ten = #{record.stepNewTen,jdbcType=VARCHAR},
</if>
<if test="record.stepNewEleven != null">
step_new_eleven = #{record.stepNewEleven,jdbcType=VARCHAR},
</if>
<if test="record.stepNewShier != null">
step_new_shier = #{record.stepNewShier,jdbcType=VARCHAR},
</if>
<if test="record.stepNewShisan != null">
step_new_shisan = #{record.stepNewShisan,jdbcType=VARCHAR},
</if>
<if test="record.stepNewShisi != null">
step_new_shisi = #{record.stepNewShisi,jdbcType=VARCHAR},
</if>
<if test="record.stepNewShiwu != null">
step_new_shiwu = #{record.stepNewShiwu,jdbcType=VARCHAR},
</if>
<if test="record.stepNewShiliu != null">
step_new_shiliu = #{record.stepNewShiliu,jdbcType=VARCHAR},
</if>
<if test="record.activeUserAnalysis != null">
active_user_analysis = #{record.activeUserAnalysis,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update stu_machine_learning
set id = #{record.id,jdbcType=INTEGER},
step_one_a = #{record.stepOneA,jdbcType=VARCHAR},
step_one_b = #{record.stepOneB,jdbcType=VARCHAR},
step_one_c = #{record.stepOneC,jdbcType=VARCHAR},
step_one_d = #{record.stepOneD,jdbcType=VARCHAR},
step_two_a = #{record.stepTwoA,jdbcType=VARCHAR},
step_two_b = #{record.stepTwoB,jdbcType=VARCHAR},
step_two_c = #{record.stepTwoC,jdbcType=VARCHAR},
step_three_a = #{record.stepThreeA,jdbcType=VARCHAR},
step_three_b = #{record.stepThreeB,jdbcType=VARCHAR},
step_three_c = #{record.stepThreeC,jdbcType=VARCHAR},
step_three_d = #{record.stepThreeD,jdbcType=VARCHAR},
step_four_a = #{record.stepFourA,jdbcType=VARCHAR},
step_four_b = #{record.stepFourB,jdbcType=VARCHAR},
step_four_c = #{record.stepFourC,jdbcType=VARCHAR},
step_four_d = #{record.stepFourD,jdbcType=VARCHAR},
step_five_a = #{record.stepFiveA,jdbcType=VARCHAR},
step_five_b = #{record.stepFiveB,jdbcType=VARCHAR},
step_five_c = #{record.stepFiveC,jdbcType=VARCHAR},
step_five_d = #{record.stepFiveD,jdbcType=VARCHAR},
step_six_a = #{record.stepSixA,jdbcType=VARCHAR},
step_six_b = #{record.stepSixB,jdbcType=VARCHAR},
step_six_c = #{record.stepSixC,jdbcType=VARCHAR},
step_six_d = #{record.stepSixD,jdbcType=VARCHAR},
step_seven_a = #{record.stepSevenA,jdbcType=VARCHAR},
step_seven_b = #{record.stepSevenB,jdbcType=VARCHAR},
step_seven_c = #{record.stepSevenC,jdbcType=VARCHAR},
step_seven_d = #{record.stepSevenD,jdbcType=VARCHAR},
step_eight_a = #{record.stepEightA,jdbcType=VARCHAR},
step_eight_b = #{record.stepEightB,jdbcType=VARCHAR},
step_eight_c = #{record.stepEightC,jdbcType=VARCHAR},
step_eight_d = #{record.stepEightD,jdbcType=VARCHAR},
step_nine_a = #{record.stepNineA,jdbcType=VARCHAR},
step_nine_b = #{record.stepNineB,jdbcType=VARCHAR},
step_nine_c = #{record.stepNineC,jdbcType=VARCHAR},
success_number = #{record.successNumber,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=VARCHAR},
sub_state = #{record.subState,jdbcType=INTEGER},
module = #{record.module,jdbcType=VARCHAR},
one_sub_state = #{record.oneSubState,jdbcType=INTEGER},
two_sub_state = #{record.twoSubState,jdbcType=INTEGER},
three_sub_state = #{record.threeSubState,jdbcType=INTEGER},
four_sub_state = #{record.fourSubState,jdbcType=INTEGER},
five_sub_state = #{record.fiveSubState,jdbcType=INTEGER},
six_sub_state = #{record.sixSubState,jdbcType=INTEGER},
seven_sub_state = #{record.sevenSubState,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
step_nine_d = #{record.stepNineD,jdbcType=VARCHAR},
step_ten_a = #{record.stepTenA,jdbcType=VARCHAR},
step_ten_b = #{record.stepTenB,jdbcType=VARCHAR},
step_ten_c = #{record.stepTenC,jdbcType=VARCHAR},
step_ten_d = #{record.stepTenD,jdbcType=VARCHAR},
step_eleven_a = #{record.stepElevenA,jdbcType=VARCHAR},
step_eleven_b = #{record.stepElevenB,jdbcType=VARCHAR},
step_eleven_c = #{record.stepElevenC,jdbcType=VARCHAR},
error_field = #{record.errorField,jdbcType=VARCHAR},
step_new = #{record.stepNew,jdbcType=VARCHAR},
step_new_one = #{record.stepNewOne,jdbcType=VARCHAR},
step_new_two = #{record.stepNewTwo,jdbcType=VARCHAR},
step_new_three = #{record.stepNewThree,jdbcType=VARCHAR},
step_new_five = #{record.stepNewFive,jdbcType=VARCHAR},
step_new_six = #{record.stepNewSix,jdbcType=VARCHAR},
step_new_nine = #{record.stepNewNine,jdbcType=VARCHAR},
step_new_eight = #{record.stepNewEight,jdbcType=VARCHAR},
step_new_ten = #{record.stepNewTen,jdbcType=VARCHAR},
step_new_eleven = #{record.stepNewEleven,jdbcType=VARCHAR},
step_new_shier = #{record.stepNewShier,jdbcType=VARCHAR},
step_new_shisan = #{record.stepNewShisan,jdbcType=VARCHAR},
step_new_shisi = #{record.stepNewShisi,jdbcType=VARCHAR},
step_new_shiwu = #{record.stepNewShiwu,jdbcType=VARCHAR},
step_new_shiliu = #{record.stepNewShiliu,jdbcType=VARCHAR},
active_user_analysis = #{record.activeUserAnalysis,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_machine_learning
set id = #{record.id,jdbcType=INTEGER},
@ -793,7 +1068,22 @@
step_eleven_a = #{record.stepElevenA,jdbcType=VARCHAR},
step_eleven_b = #{record.stepElevenB,jdbcType=VARCHAR},
step_eleven_c = #{record.stepElevenC,jdbcType=VARCHAR},
error_field = #{record.errorField,jdbcType=VARCHAR}
error_field = #{record.errorField,jdbcType=VARCHAR},
step_new = #{record.stepNew,jdbcType=VARCHAR},
step_new_one = #{record.stepNewOne,jdbcType=VARCHAR},
step_new_two = #{record.stepNewTwo,jdbcType=VARCHAR},
step_new_three = #{record.stepNewThree,jdbcType=VARCHAR},
step_new_five = #{record.stepNewFive,jdbcType=VARCHAR},
step_new_six = #{record.stepNewSix,jdbcType=VARCHAR},
step_new_nine = #{record.stepNewNine,jdbcType=VARCHAR},
step_new_eight = #{record.stepNewEight,jdbcType=VARCHAR},
step_new_ten = #{record.stepNewTen,jdbcType=VARCHAR},
step_new_eleven = #{record.stepNewEleven,jdbcType=VARCHAR},
step_new_shier = #{record.stepNewShier,jdbcType=VARCHAR},
step_new_shisan = #{record.stepNewShisan,jdbcType=VARCHAR},
step_new_shisi = #{record.stepNewShisi,jdbcType=VARCHAR},
step_new_shiwu = #{record.stepNewShiwu,jdbcType=VARCHAR},
step_new_shiliu = #{record.stepNewShiliu,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -969,9 +1259,133 @@
<if test="errorField != null">
error_field = #{errorField,jdbcType=VARCHAR},
</if>
<if test="stepNew != null">
step_new = #{stepNew,jdbcType=VARCHAR},
</if>
<if test="stepNewOne != null">
step_new_one = #{stepNewOne,jdbcType=VARCHAR},
</if>
<if test="stepNewTwo != null">
step_new_two = #{stepNewTwo,jdbcType=VARCHAR},
</if>
<if test="stepNewThree != null">
step_new_three = #{stepNewThree,jdbcType=VARCHAR},
</if>
<if test="stepNewFive != null">
step_new_five = #{stepNewFive,jdbcType=VARCHAR},
</if>
<if test="stepNewSix != null">
step_new_six = #{stepNewSix,jdbcType=VARCHAR},
</if>
<if test="stepNewNine != null">
step_new_nine = #{stepNewNine,jdbcType=VARCHAR},
</if>
<if test="stepNewEight != null">
step_new_eight = #{stepNewEight,jdbcType=VARCHAR},
</if>
<if test="stepNewTen != null">
step_new_ten = #{stepNewTen,jdbcType=VARCHAR},
</if>
<if test="stepNewEleven != null">
step_new_eleven = #{stepNewEleven,jdbcType=VARCHAR},
</if>
<if test="stepNewShier != null">
step_new_shier = #{stepNewShier,jdbcType=VARCHAR},
</if>
<if test="stepNewShisan != null">
step_new_shisan = #{stepNewShisan,jdbcType=VARCHAR},
</if>
<if test="stepNewShisi != null">
step_new_shisi = #{stepNewShisi,jdbcType=VARCHAR},
</if>
<if test="stepNewShiwu != null">
step_new_shiwu = #{stepNewShiwu,jdbcType=VARCHAR},
</if>
<if test="stepNewShiliu != null">
step_new_shiliu = #{stepNewShiliu,jdbcType=VARCHAR},
</if>
<if test="activeUserAnalysis != null">
active_user_analysis = #{activeUserAnalysis,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.marketing.entity.StuMachineLearning">
update stu_machine_learning
set step_one_a = #{stepOneA,jdbcType=VARCHAR},
step_one_b = #{stepOneB,jdbcType=VARCHAR},
step_one_c = #{stepOneC,jdbcType=VARCHAR},
step_one_d = #{stepOneD,jdbcType=VARCHAR},
step_two_a = #{stepTwoA,jdbcType=VARCHAR},
step_two_b = #{stepTwoB,jdbcType=VARCHAR},
step_two_c = #{stepTwoC,jdbcType=VARCHAR},
step_three_a = #{stepThreeA,jdbcType=VARCHAR},
step_three_b = #{stepThreeB,jdbcType=VARCHAR},
step_three_c = #{stepThreeC,jdbcType=VARCHAR},
step_three_d = #{stepThreeD,jdbcType=VARCHAR},
step_four_a = #{stepFourA,jdbcType=VARCHAR},
step_four_b = #{stepFourB,jdbcType=VARCHAR},
step_four_c = #{stepFourC,jdbcType=VARCHAR},
step_four_d = #{stepFourD,jdbcType=VARCHAR},
step_five_a = #{stepFiveA,jdbcType=VARCHAR},
step_five_b = #{stepFiveB,jdbcType=VARCHAR},
step_five_c = #{stepFiveC,jdbcType=VARCHAR},
step_five_d = #{stepFiveD,jdbcType=VARCHAR},
step_six_a = #{stepSixA,jdbcType=VARCHAR},
step_six_b = #{stepSixB,jdbcType=VARCHAR},
step_six_c = #{stepSixC,jdbcType=VARCHAR},
step_six_d = #{stepSixD,jdbcType=VARCHAR},
step_seven_a = #{stepSevenA,jdbcType=VARCHAR},
step_seven_b = #{stepSevenB,jdbcType=VARCHAR},
step_seven_c = #{stepSevenC,jdbcType=VARCHAR},
step_seven_d = #{stepSevenD,jdbcType=VARCHAR},
step_eight_a = #{stepEightA,jdbcType=VARCHAR},
step_eight_b = #{stepEightB,jdbcType=VARCHAR},
step_eight_c = #{stepEightC,jdbcType=VARCHAR},
step_eight_d = #{stepEightD,jdbcType=VARCHAR},
step_nine_a = #{stepNineA,jdbcType=VARCHAR},
step_nine_b = #{stepNineB,jdbcType=VARCHAR},
step_nine_c = #{stepNineC,jdbcType=VARCHAR},
success_number = #{successNumber,jdbcType=INTEGER},
user_id = #{userId,jdbcType=VARCHAR},
sub_state = #{subState,jdbcType=INTEGER},
module = #{module,jdbcType=VARCHAR},
one_sub_state = #{oneSubState,jdbcType=INTEGER},
two_sub_state = #{twoSubState,jdbcType=INTEGER},
three_sub_state = #{threeSubState,jdbcType=INTEGER},
four_sub_state = #{fourSubState,jdbcType=INTEGER},
five_sub_state = #{fiveSubState,jdbcType=INTEGER},
six_sub_state = #{sixSubState,jdbcType=INTEGER},
seven_sub_state = #{sevenSubState,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
step_nine_d = #{stepNineD,jdbcType=VARCHAR},
step_ten_a = #{stepTenA,jdbcType=VARCHAR},
step_ten_b = #{stepTenB,jdbcType=VARCHAR},
step_ten_c = #{stepTenC,jdbcType=VARCHAR},
step_ten_d = #{stepTenD,jdbcType=VARCHAR},
step_eleven_a = #{stepElevenA,jdbcType=VARCHAR},
step_eleven_b = #{stepElevenB,jdbcType=VARCHAR},
step_eleven_c = #{stepElevenC,jdbcType=VARCHAR},
error_field = #{errorField,jdbcType=VARCHAR},
step_new = #{stepNew,jdbcType=VARCHAR},
step_new_one = #{stepNewOne,jdbcType=VARCHAR},
step_new_two = #{stepNewTwo,jdbcType=VARCHAR},
step_new_three = #{stepNewThree,jdbcType=VARCHAR},
step_new_five = #{stepNewFive,jdbcType=VARCHAR},
step_new_six = #{stepNewSix,jdbcType=VARCHAR},
step_new_nine = #{stepNewNine,jdbcType=VARCHAR},
step_new_eight = #{stepNewEight,jdbcType=VARCHAR},
step_new_ten = #{stepNewTen,jdbcType=VARCHAR},
step_new_eleven = #{stepNewEleven,jdbcType=VARCHAR},
step_new_shier = #{stepNewShier,jdbcType=VARCHAR},
step_new_shisan = #{stepNewShisan,jdbcType=VARCHAR},
step_new_shisi = #{stepNewShisi,jdbcType=VARCHAR},
step_new_shiwu = #{stepNewShiwu,jdbcType=VARCHAR},
step_new_shiliu = #{stepNewShiliu,jdbcType=VARCHAR},
active_user_analysis = #{activeUserAnalysis,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.marketing.entity.StuMachineLearning">
update stu_machine_learning
set step_one_a = #{stepOneA,jdbcType=VARCHAR},
@ -1029,7 +1443,22 @@
step_eleven_a = #{stepElevenA,jdbcType=VARCHAR},
step_eleven_b = #{stepElevenB,jdbcType=VARCHAR},
step_eleven_c = #{stepElevenC,jdbcType=VARCHAR},
error_field = #{errorField,jdbcType=VARCHAR}
error_field = #{errorField,jdbcType=VARCHAR},
step_new = #{stepNew,jdbcType=VARCHAR},
step_new_one = #{stepNewOne,jdbcType=VARCHAR},
step_new_two = #{stepNewTwo,jdbcType=VARCHAR},
step_new_three = #{stepNewThree,jdbcType=VARCHAR},
step_new_five = #{stepNewFive,jdbcType=VARCHAR},
step_new_six = #{stepNewSix,jdbcType=VARCHAR},
step_new_nine = #{stepNewNine,jdbcType=VARCHAR},
step_new_eight = #{stepNewEight,jdbcType=VARCHAR},
step_new_ten = #{stepNewTen,jdbcType=VARCHAR},
step_new_eleven = #{stepNewEleven,jdbcType=VARCHAR},
step_new_shier = #{stepNewShier,jdbcType=VARCHAR},
step_new_shisan = #{stepNewShisan,jdbcType=VARCHAR},
step_new_shisi = #{stepNewShisi,jdbcType=VARCHAR},
step_new_shiwu = #{stepNewShiwu,jdbcType=VARCHAR},
step_new_shiliu = #{stepNewShiliu,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
Loading…
Cancel
Save