1.添加数据更新接口代码
parent
bd874cbd64
commit
a0c9a75cda
@ -1,92 +0,0 @@
|
||||
package com.glxp.udidl.admin.service.dataSync;
|
||||
|
||||
import cn.hutool.core.date.DateField;
|
||||
import cn.hutool.core.date.DatePattern;
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.glxp.udidl.admin.constant.Constant;
|
||||
import com.glxp.udidl.admin.entity.info.CompanyEntity;
|
||||
import com.glxp.udidl.admin.entity.udid.JobLog;
|
||||
import com.glxp.udidl.admin.entity.udid.TokenEntity;
|
||||
import com.glxp.udidl.admin.req.UpdateUdiRequest;
|
||||
import com.glxp.udidl.admin.req.udid.TokenRequest;
|
||||
import com.glxp.udidl.admin.service.info.CompanyService;
|
||||
import com.glxp.udidl.admin.service.inout.DeviceService;
|
||||
import com.glxp.udidl.admin.service.inout.ProductInfoService;
|
||||
import com.glxp.udidl.admin.service.udi.JobLogService;
|
||||
import com.glxp.udidl.admin.util.HttpClient;
|
||||
import com.glxp.udidl.admin.util.RedisUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class DeviceUpdateService {
|
||||
|
||||
private String token;
|
||||
private String url = "sharing/get";
|
||||
|
||||
@Resource
|
||||
private RedisUtil redisUtil;
|
||||
@Resource
|
||||
private CompanyService companyService;
|
||||
@Resource
|
||||
private JobLogService jobLogService; //日志
|
||||
@Resource
|
||||
private DeviceSaveService deviceSaveService;
|
||||
@Resource
|
||||
private DeviceService deviceService;
|
||||
@Resource
|
||||
private ProductInfoService productInfoService;
|
||||
|
||||
@Async
|
||||
public void updateUdiData(UpdateUdiRequest updateUdiRequest) {
|
||||
log.info("开始更新数据,更新时间段为: {} - {}", updateUdiRequest.getStartDate(), updateUdiRequest.getEndDate());
|
||||
//解析更新参数
|
||||
DateTime startDate = DateUtil.parse(updateUdiRequest.getStartDate(), DatePattern.SIMPLE_MONTH_PATTERN);
|
||||
DateTime endDate = DateUtil.parse(updateUdiRequest.getEndDate(), DatePattern.SIMPLE_MONTH_PATTERN);
|
||||
|
||||
List<DateTime> dateRanges = DateUtil.rangeToList(startDate, endDate, DateField.MONTH);
|
||||
|
||||
JobLog jobLog = new JobLog();
|
||||
jobLog.setCreateTime(new Date());
|
||||
jobLog.setStatus(0);
|
||||
jobLog.setType(Constant.LOG_TYPE_INFO);
|
||||
jobLog.setDownloadType(Constant.DOWNLOAD_TYPE_MANUAL);
|
||||
jobLogService.insert(jobLog);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取当前token
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getToken() {
|
||||
token = redisUtil.get("UDI_UPDATE_TOKEN");
|
||||
if (StrUtil.isEmpty(token)) {
|
||||
//查询下载数据使用的appid
|
||||
CompanyEntity companyEntity = companyService.findByTaskType(Constant.TASK_TYPE_UPDATE);
|
||||
TokenRequest tokenRequest = new TokenRequest();
|
||||
tokenRequest.setAppId(companyEntity.getAppId());
|
||||
tokenRequest.setAppSecret(companyEntity.getAppSecret());
|
||||
tokenRequest.setTyshxydm(companyEntity.getTyshxydm());
|
||||
String response = HttpClient.post("token/get", tokenRequest);
|
||||
TokenEntity tokenEntity = JSONObject.parseObject(response, TokenEntity.class);
|
||||
token = tokenEntity.getAccessToken();
|
||||
redisUtil.setEx("UDI_UPDATE_TOKEN", token, 1 * 60 * 60 * 6);
|
||||
}
|
||||
return token;
|
||||
}
|
||||
}
|
@ -1,230 +1,251 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.glxp.udidl.admin.dao.udid.DeviceclinicalMapper">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="deviceRecordKey" jdbcType="VARCHAR" property="devicerecordkey" />
|
||||
<result column="lcsycclx" jdbcType="VARCHAR" property="lcsycclx" />
|
||||
<result column="ccz" jdbcType="VARCHAR" property="ccz" />
|
||||
<result column="ccdw" jdbcType="VARCHAR" property="ccdw" />
|
||||
<result column="uuid" jdbcType="VARCHAR" property="uuid" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
<resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="deviceRecordKey" jdbcType="VARCHAR" property="devicerecordkey"/>
|
||||
<result column="lcsycclx" jdbcType="VARCHAR" property="lcsycclx"/>
|
||||
<result column="ccz" jdbcType="VARCHAR" property="ccz"/>
|
||||
<result column="ccdw" jdbcType="VARCHAR" property="ccdw"/>
|
||||
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, deviceRecordKey, lcsycclx, ccz, ccdw, uuid
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceclinicalExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from deviceclinical
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from deviceclinical
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from deviceclinical
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceclinicalExample">
|
||||
delete from deviceclinical
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
insert into deviceclinical ( deviceRecordKey, lcsycclx,
|
||||
ccz, ccdw, uuid)
|
||||
values ( #{devicerecordkey,jdbcType=VARCHAR}, #{lcsycclx,jdbcType=VARCHAR},
|
||||
#{ccz,jdbcType=VARCHAR}, #{ccdw,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
insert into deviceclinical
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id,
|
||||
</if>
|
||||
<if test="devicerecordkey != null">
|
||||
deviceRecordKey,
|
||||
</if>
|
||||
<if test="lcsycclx != null">
|
||||
lcsycclx,
|
||||
</if>
|
||||
<if test="ccz != null">
|
||||
ccz,
|
||||
</if>
|
||||
<if test="ccdw != null">
|
||||
ccdw,
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
uuid,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="devicerecordkey != null">
|
||||
#{devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lcsycclx != null">
|
||||
#{lcsycclx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ccz != null">
|
||||
#{ccz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ccdw != null">
|
||||
#{ccdw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
#{uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceclinicalExample" resultType="java.lang.Long">
|
||||
select count(*) from deviceclinical
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update deviceclinical
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.devicerecordkey != null">
|
||||
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.lcsycclx != null">
|
||||
lcsycclx = #{record.lcsycclx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.ccz != null">
|
||||
ccz = #{record.ccz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.ccdw != null">
|
||||
ccdw = #{record.ccdw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.uuid != null">
|
||||
uuid = #{record.uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update deviceclinical
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
||||
lcsycclx = #{record.lcsycclx,jdbcType=VARCHAR},
|
||||
ccz = #{record.ccz,jdbcType=VARCHAR},
|
||||
ccdw = #{record.ccdw,jdbcType=VARCHAR},
|
||||
uuid = #{record.uuid,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
update deviceclinical
|
||||
<set>
|
||||
<if test="devicerecordkey != null">
|
||||
deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lcsycclx != null">
|
||||
lcsycclx = #{lcsycclx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ccz != null">
|
||||
ccz = #{ccz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ccdw != null">
|
||||
ccdw = #{ccdw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
uuid = #{uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
update deviceclinical
|
||||
set deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
||||
lcsycclx = #{lcsycclx,jdbcType=VARCHAR},
|
||||
ccz = #{ccz,jdbcType=VARCHAR},
|
||||
ccdw = #{ccdw,jdbcType=VARCHAR},
|
||||
uuid = #{uuid,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<select id="downloadDeviceclinical" parameterType="com.glxp.udidl.admin.req.DownloadUdiRequest" resultMap="BaseResultMap">
|
||||
select * from deviceclinical
|
||||
uuid
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceclinicalExample"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
from deviceclinical
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from deviceclinical
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete
|
||||
from deviceclinical
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceclinicalExample">
|
||||
delete
|
||||
from deviceclinical
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
insert into deviceclinical (deviceRecordKey, lcsycclx,
|
||||
ccz, ccdw, uuid)
|
||||
values (#{devicerecordkey,jdbcType=VARCHAR}, #{lcsycclx,jdbcType=VARCHAR},
|
||||
#{ccz,jdbcType=VARCHAR}, #{ccdw,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
insert into deviceclinical
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="devicerecordkey != null">
|
||||
deviceRecordKey,
|
||||
</if>
|
||||
<if test="lcsycclx != null">
|
||||
lcsycclx,
|
||||
</if>
|
||||
<if test="ccz != null">
|
||||
ccz,
|
||||
</if>
|
||||
<if test="ccdw != null">
|
||||
ccdw,
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
uuid,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="devicerecordkey != null">
|
||||
#{devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lcsycclx != null">
|
||||
#{lcsycclx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ccz != null">
|
||||
#{ccz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ccdw != null">
|
||||
#{ccdw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
#{uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceclinicalExample"
|
||||
resultType="java.lang.Long">
|
||||
select count(*)
|
||||
from deviceclinical
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update deviceclinical
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.devicerecordkey != null">
|
||||
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.lcsycclx != null">
|
||||
lcsycclx = #{record.lcsycclx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.ccz != null">
|
||||
ccz = #{record.ccz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.ccdw != null">
|
||||
ccdw = #{record.ccdw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.uuid != null">
|
||||
uuid = #{record.uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update deviceclinical
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
||||
lcsycclx = #{record.lcsycclx,jdbcType=VARCHAR},
|
||||
ccz = #{record.ccz,jdbcType=VARCHAR},
|
||||
ccdw = #{record.ccdw,jdbcType=VARCHAR},
|
||||
uuid = #{record.uuid,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
update deviceclinical
|
||||
<set>
|
||||
<if test="devicerecordkey != null">
|
||||
deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lcsycclx != null">
|
||||
lcsycclx = #{lcsycclx,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ccz != null">
|
||||
ccz = #{ccz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ccdw != null">
|
||||
ccdw = #{ccdw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
uuid = #{uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
update deviceclinical
|
||||
set deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
||||
lcsycclx = #{lcsycclx,jdbcType=VARCHAR},
|
||||
ccz = #{ccz,jdbcType=VARCHAR},
|
||||
ccdw = #{ccdw,jdbcType=VARCHAR},
|
||||
uuid = #{uuid,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<select id="downloadDeviceclinical" parameterType="com.glxp.udidl.admin.req.DownloadUdiRequest"
|
||||
resultMap="BaseResultMap">
|
||||
select *
|
||||
from deviceclinical
|
||||
limit #{page},#{limit}
|
||||
</select>
|
||||
|
||||
<insert id="update" parameterType="com.glxp.udidl.admin.entity.udid.Deviceclinical">
|
||||
replace into deviceclinical (deviceRecordKey, lcsycclx,
|
||||
ccz, ccdw, uuid)
|
||||
values (#{devicerecordkey,jdbcType=VARCHAR}, #{lcsycclx,jdbcType=VARCHAR},
|
||||
#{ccz,jdbcType=VARCHAR}, #{ccdw,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
</mapper>
|
@ -1,248 +1,267 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.glxp.udidl.admin.dao.udid.DevicestorageMapper">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="deviceRecordKey" jdbcType="VARCHAR" property="devicerecordkey" />
|
||||
<result column="cchcztj" jdbcType="VARCHAR" property="cchcztj" />
|
||||
<result column="jldw" jdbcType="VARCHAR" property="jldw" />
|
||||
<result column="zdz" jdbcType="VARCHAR" property="zdz" />
|
||||
<result column="zgz" jdbcType="VARCHAR" property="zgz" />
|
||||
<result column="uuid" jdbcType="VARCHAR" property="uuid" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
<resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="deviceRecordKey" jdbcType="VARCHAR" property="devicerecordkey"/>
|
||||
<result column="cchcztj" jdbcType="VARCHAR" property="cchcztj"/>
|
||||
<result column="jldw" jdbcType="VARCHAR" property="jldw"/>
|
||||
<result column="zdz" jdbcType="VARCHAR" property="zdz"/>
|
||||
<result column="zgz" jdbcType="VARCHAR" property="zgz"/>
|
||||
<result column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, deviceRecordKey, cchcztj, jldw, zdz, zgz, uuid
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicestorageExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from devicestorage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from devicestorage
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from devicestorage
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicestorageExample">
|
||||
delete from devicestorage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
insert into devicestorage ( deviceRecordKey, cchcztj,
|
||||
jldw, zdz, zgz, uuid
|
||||
)
|
||||
values ( #{devicerecordkey,jdbcType=VARCHAR}, #{cchcztj,jdbcType=VARCHAR},
|
||||
#{jldw,jdbcType=VARCHAR}, #{zdz,jdbcType=VARCHAR}, #{zgz,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
insert into devicestorage
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id,
|
||||
</if>
|
||||
<if test="devicerecordkey != null">
|
||||
deviceRecordKey,
|
||||
</if>
|
||||
<if test="cchcztj != null">
|
||||
cchcztj,
|
||||
</if>
|
||||
<if test="jldw != null">
|
||||
jldw,
|
||||
</if>
|
||||
<if test="zdz != null">
|
||||
zdz,
|
||||
</if>
|
||||
<if test="zgz != null">
|
||||
zgz,
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
uuid,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="devicerecordkey != null">
|
||||
#{devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cchcztj != null">
|
||||
#{cchcztj,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="jldw != null">
|
||||
#{jldw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="zdz != null">
|
||||
#{zdz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="zgz != null">
|
||||
#{zgz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
#{uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicestorageExample" resultType="java.lang.Long">
|
||||
select count(*) from devicestorage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update devicestorage
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.devicerecordkey != null">
|
||||
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.cchcztj != null">
|
||||
cchcztj = #{record.cchcztj,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.jldw != null">
|
||||
jldw = #{record.jldw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.zdz != null">
|
||||
zdz = #{record.zdz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.zgz != null">
|
||||
zgz = #{record.zgz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.uuid != null">
|
||||
uuid = #{record.uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update devicestorage
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
||||
cchcztj = #{record.cchcztj,jdbcType=VARCHAR},
|
||||
jldw = #{record.jldw,jdbcType=VARCHAR},
|
||||
zdz = #{record.zdz,jdbcType=VARCHAR},
|
||||
zgz = #{record.zgz,jdbcType=VARCHAR},
|
||||
uuid = #{record.uuid,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
update devicestorage
|
||||
<set>
|
||||
<if test="devicerecordkey != null">
|
||||
deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cchcztj != null">
|
||||
cchcztj = #{cchcztj,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="jldw != null">
|
||||
jldw = #{jldw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="zdz != null">
|
||||
zdz = #{zdz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="zgz != null">
|
||||
zgz = #{zgz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
uuid = #{uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
update devicestorage
|
||||
set deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
||||
cchcztj = #{cchcztj,jdbcType=VARCHAR},
|
||||
jldw = #{jldw,jdbcType=VARCHAR},
|
||||
zdz = #{zdz,jdbcType=VARCHAR},
|
||||
zgz = #{zgz,jdbcType=VARCHAR},
|
||||
uuid = #{uuid,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<select id="downloadDevicestorage" parameterType="com.glxp.udidl.admin.req.DownloadUdiRequest" resultMap="BaseResultMap">
|
||||
select * from devicestorage
|
||||
uuid
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicestorageExample"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
from devicestorage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from devicestorage
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete
|
||||
from devicestorage
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicestorageExample">
|
||||
delete
|
||||
from devicestorage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
insert into devicestorage (deviceRecordKey, cchcztj,
|
||||
jldw, zdz, zgz, uuid)
|
||||
values (#{devicerecordkey,jdbcType=VARCHAR}, #{cchcztj,jdbcType=VARCHAR},
|
||||
#{jldw,jdbcType=VARCHAR}, #{zdz,jdbcType=VARCHAR}, #{zgz,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
insert into devicestorage
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="devicerecordkey != null">
|
||||
deviceRecordKey,
|
||||
</if>
|
||||
<if test="cchcztj != null">
|
||||
cchcztj,
|
||||
</if>
|
||||
<if test="jldw != null">
|
||||
jldw,
|
||||
</if>
|
||||
<if test="zdz != null">
|
||||
zdz,
|
||||
</if>
|
||||
<if test="zgz != null">
|
||||
zgz,
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
uuid,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="devicerecordkey != null">
|
||||
#{devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cchcztj != null">
|
||||
#{cchcztj,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="jldw != null">
|
||||
#{jldw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="zdz != null">
|
||||
#{zdz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="zgz != null">
|
||||
#{zgz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
#{uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.glxp.udidl.admin.entity.udid.DevicestorageExample"
|
||||
resultType="java.lang.Long">
|
||||
select count(*)
|
||||
from devicestorage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update devicestorage
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.devicerecordkey != null">
|
||||
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.cchcztj != null">
|
||||
cchcztj = #{record.cchcztj,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.jldw != null">
|
||||
jldw = #{record.jldw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.zdz != null">
|
||||
zdz = #{record.zdz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.zgz != null">
|
||||
zgz = #{record.zgz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.uuid != null">
|
||||
uuid = #{record.uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update devicestorage
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
||||
cchcztj = #{record.cchcztj,jdbcType=VARCHAR},
|
||||
jldw = #{record.jldw,jdbcType=VARCHAR},
|
||||
zdz = #{record.zdz,jdbcType=VARCHAR},
|
||||
zgz = #{record.zgz,jdbcType=VARCHAR},
|
||||
uuid = #{record.uuid,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
update devicestorage
|
||||
<set>
|
||||
<if test="devicerecordkey != null">
|
||||
deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cchcztj != null">
|
||||
cchcztj = #{cchcztj,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="jldw != null">
|
||||
jldw = #{jldw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="zdz != null">
|
||||
zdz = #{zdz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="zgz != null">
|
||||
zgz = #{zgz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uuid != null">
|
||||
uuid = #{uuid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
update devicestorage
|
||||
set deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
||||
cchcztj = #{cchcztj,jdbcType=VARCHAR},
|
||||
jldw = #{jldw,jdbcType=VARCHAR},
|
||||
zdz = #{zdz,jdbcType=VARCHAR},
|
||||
zgz = #{zgz,jdbcType=VARCHAR},
|
||||
uuid = #{uuid,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<select id="downloadDevicestorage" parameterType="com.glxp.udidl.admin.req.DownloadUdiRequest"
|
||||
resultMap="BaseResultMap">
|
||||
select *
|
||||
from devicestorage
|
||||
limit #{page},#{limit}
|
||||
</select>
|
||||
|
||||
<insert id="update" parameterType="com.glxp.udidl.admin.entity.udid.Devicestorage">
|
||||
replace into devicestorage (deviceRecordKey, cchcztj,
|
||||
jldw, zdz, zgz, uuid)
|
||||
values (#{devicerecordkey,jdbcType=VARCHAR}, #{cchcztj,jdbcType=VARCHAR},
|
||||
#{jldw,jdbcType=VARCHAR}, #{zdz,jdbcType=VARCHAR}, #{zgz,jdbcType=VARCHAR}, #{uuid,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
</mapper>
|
Loading…
Reference in New Issue