作者 朱兆平

Merge remote-tracking branch 'origin/forWechatService' into forWechatService

... ... @@ -150,6 +150,12 @@
<artifactId>ojdbc6</artifactId>
<version>11.2.0.4.0-atlassian-hosted</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<scope>compile</scope>
<version>1.13</version>
</dependency>
<!--util依赖-->
<dependency>
<groupId>com.tianbo</groupId>
... ...
package com.tianbo.analysis.controller;
import com.github.pagehelper.PageInfo;
import com.tianbo.analysis.model.FFMInfo;
import com.tianbo.analysis.model.ResultJson;
import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT;
import com.tianbo.analysis.service.FFMResolve;
import com.tianbo.util.Date.DateUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Date;
import java.util.List;
@Api(description = "舱单解析表接口")
@RestController
@RequestMapping("/ffminfo/")
public class FFMInfoController {
@Autowired
FFMResolve ffmResolve;
@ApiOperation(value = "查询未解析的入业务表的航班列表")
@RequestMapping("/selectFlightnoList")
public ResultJson<List<FFMInfo>> unresolvedFlightnoList(){
List<FFMInfo> list=ffmResolve.unresolvedFlightnoList();
return new ResultJson("200","success",list);
}
@ApiOperation(value = "查询未解析入业务表的舱单列表(参数:航班号,航班日期)")
@GetMapping("/selectFFMList")
public ResultJson<List<FFMInfo>> selectFFMList(@RequestParam(value = "flightno", required = false) String flightno,
@RequestParam(value = "flightdate", required = false) String flightdate){
FFMInfo ffmInfo=new FFMInfo();
ffmInfo.setFlightno(flightno);
if(StringUtils.isNotEmpty(flightdate)){
Date flight_Date = DateUtil.parseDate(flightdate,"yyyy-MM-dd");
ffmInfo.setFlightdate(flight_Date);
}
List<FFMInfo> list=ffmResolve.unresolvedFFMList(ffmInfo);
return new ResultJson("200","success",list);
}
@ApiOperation(value = "删除航班舱单临时表接口 (接口参数:航班号,航班日期,autoid,都为条件项)")
@GetMapping("/delFlightno")
public ResultJson delFlightno(@RequestParam(value = "flightno", required = false) String flightno,
@RequestParam(value = "flightdate", required = false) String flightdate,
@RequestParam(value = "autoid", required = false) String autiod){
FFMInfo ffmInfo=new FFMInfo();
ffmInfo.setFlightno(flightno);
if(StringUtils.isNotEmpty(flightdate)){
Date flight_Date = DateUtil.parseDate(flightdate,"yyyy-MM-dd");
ffmInfo.setFlightdate(flight_Date);
}
ffmInfo.setAutoid(autiod);
int result=ffmResolve.delFlightno(ffmInfo);
return result>0?new ResultJson("200","删除成功!"):new ResultJson("201","删除失败");
}
@ApiOperation(value = "批量删除舱单临时表接口(接口参数:list[autoid])")
@PostMapping("/batchSend")
public ResultJson batchSend(@RequestBody List<String> autoIDlist){
int result=ffmResolve.delByAutoidList(autoIDlist);
return result>0?new ResultJson("200","删除成功!"):new ResultJson("201","删除失败");
}
}
... ...
package com.tianbo.analysis.controller;
import com.github.pagehelper.PageInfo;
import com.tianbo.analysis.model.ResultJson;
import com.tianbo.analysis.model.TB_ANTIVIRUS_LOG;
import com.tianbo.analysis.service.TB_ANTIVIRUS_LOGService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* @author shenhl
* <p>
* 2022/1/18/11:24
*/
@RestController
@RequestMapping(value = "/antivirus_log")
public class TB_ANTIVIRUS_LOGCongtoller {
@Autowired
TB_ANTIVIRUS_LOGService tbAntivirusLogService;
/**
* 消毒记录查询
* @return
*/
@GetMapping(value = "/antivirus_log_list")
@ResponseBody
public ResultJson antivirus_log_list(@RequestParam(value = "pageSize", required = false, defaultValue = "1") int pageSize,
@RequestParam(value = "limitSize", required = false, defaultValue = "10") int limitSize,
@RequestParam(value = "antivirusName", required = false) String antivirusName){
TB_ANTIVIRUS_LOG tbAntivirusLog = new TB_ANTIVIRUS_LOG();
tbAntivirusLog.setAntivirusName(antivirusName);
PageInfo<TB_ANTIVIRUS_LOG> list = tbAntivirusLogService.list(tbAntivirusLog, pageSize, limitSize);
return new ResultJson("200","success",list);
}
/**
* 消毒记录新增
* @return
*/
@GetMapping(value = "/antivirus_log_add")
@ResponseBody
public ResultJson antivirus_log_add(TB_ANTIVIRUS_LOG tbAntivirusLog){
return tbAntivirusLogService.updateByPrimaryKeySelective(tbAntivirusLog) > 0 ? new ResultJson("200", "新增成功")
: new ResultJson("201", "新增失败");
}
/**
* 消毒记录修改
* @return
*/
@GetMapping(value = "/antivirus_log_edit")
@ResponseBody
public ResultJson antivirus_log_edit(TB_ANTIVIRUS_LOG tbAntivirusLog){
return tbAntivirusLogService.updateByPrimaryKeySelective(tbAntivirusLog) > 0 ? new ResultJson("200", "修改成功")
: new ResultJson("201", "修改失败");
}
/**
* 消毒记录删除
* @return
*/
@GetMapping(value = "/antivirus_log_remove")
@ResponseBody
public ResultJson antivirus_log_remove(@RequestParam(value = "autoid") String autoid){
return tbAntivirusLogService.deleteByPrimaryKey(autoid) > 0 ? new ResultJson("200", "删除成功")
: new ResultJson("201", "删除失败");
}
}
... ...
... ... @@ -2,6 +2,8 @@ package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.FFMInfo;
import java.util.List;
public interface FFMInfoDao {
int deleteByPrimaryKey(String autoid);
... ... @@ -14,4 +16,12 @@ public interface FFMInfoDao {
int updateByPrimaryKeySelective(FFMInfo record);
int updateByPrimaryKey(FFMInfo record);
List<FFMInfo> unresolvedFlightnoList();
List<FFMInfo> unresolvedFFMList(FFMInfo record);
int delFlightno(FFMInfo record);
int delByAutoidList(List<String> idList);
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.TB_ANTIVIRUS_LOG;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
public interface TB_ANTIVIRUS_LOGMapper {
List<TB_ANTIVIRUS_LOG> selectAll(@RequestParam(value = "tbAntivirusLog") TB_ANTIVIRUS_LOG tbAntivirusLog);
int deleteByPrimaryKey(String autoid);
int insert(TB_ANTIVIRUS_LOG record);
int insertSelective(TB_ANTIVIRUS_LOG record);
TB_ANTIVIRUS_LOG selectByPrimaryKey(String autoid);
int updateByPrimaryKeySelective(TB_ANTIVIRUS_LOG record);
int updateByPrimaryKey(TB_ANTIVIRUS_LOG record);
}
... ...
package com.tianbo.analysis.model;
import java.math.BigDecimal;
import java.util.Date;
public class TB_ANTIVIRUS_LOG {
private String autoid;
private String flightno;
private Date flightDate;
private String waybillnomaster;
private String waybillnosecondary;
private BigDecimal antivirusPc;
private BigDecimal antivirusWt;
private Date antivirusTime;
private String antivirusName;
private Date updateTime;
private BigDecimal antivirusStatus;
private String antivirusDes;
private String trayNum;
private BigDecimal isDelete;
private String bindingAutoid;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightDate() {
return flightDate;
}
public void setFlightDate(Date flightDate) {
this.flightDate = flightDate;
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getWaybillnosecondary() {
return waybillnosecondary;
}
public void setWaybillnosecondary(String waybillnosecondary) {
this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
}
public BigDecimal getAntivirusPc() {
return antivirusPc;
}
public void setAntivirusPc(BigDecimal antivirusPc) {
this.antivirusPc = antivirusPc;
}
public BigDecimal getAntivirusWt() {
return antivirusWt;
}
public void setAntivirusWt(BigDecimal antivirusWt) {
this.antivirusWt = antivirusWt;
}
public Date getAntivirusTime() {
return antivirusTime;
}
public void setAntivirusTime(Date antivirusTime) {
this.antivirusTime = antivirusTime;
}
public String getAntivirusName() {
return antivirusName;
}
public void setAntivirusName(String antivirusName) {
this.antivirusName = antivirusName == null ? null : antivirusName.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public BigDecimal getAntivirusStatus() {
return antivirusStatus;
}
public void setAntivirusStatus(BigDecimal antivirusStatus) {
this.antivirusStatus = antivirusStatus;
}
public String getAntivirusDes() {
return antivirusDes;
}
public void setAntivirusDes(String antivirusDes) {
this.antivirusDes = antivirusDes == null ? null : antivirusDes.trim();
}
public String getTrayNum() {
return trayNum;
}
public void setTrayNum(String trayNum) {
this.trayNum = trayNum == null ? null : trayNum.trim();
}
public BigDecimal getIsDelete() {
return isDelete;
}
public void setIsDelete(BigDecimal isDelete) {
this.isDelete = isDelete;
}
public String getBindingAutoid() {
return bindingAutoid;
}
public void setBindingAutoid(String bindingAutoid) {
this.bindingAutoid = bindingAutoid == null ? null : bindingAutoid.trim();
}
}
\ No newline at end of file
... ...
... ... @@ -2,6 +2,15 @@ package com.tianbo.analysis.service;
import com.tianbo.analysis.model.FFMInfo;
import java.util.List;
public interface FFMResolve {
boolean resolve(FFMInfo ffmInfo);
List<FFMInfo> unresolvedFlightnoList();
List<FFMInfo> unresolvedFFMList(FFMInfo record);
int delFlightno(FFMInfo record);
int delByAutoidList(List<String> idList);
}
... ...
package com.tianbo.analysis.service;
import com.github.pagehelper.PageInfo;
import com.tianbo.analysis.model.TB_ANTIVIRUS_LOG;
/**
* @author shenhl
* <p>
* 2022/1/18/16:15
*/
public interface TB_ANTIVIRUS_LOGService {
PageInfo<TB_ANTIVIRUS_LOG> list(TB_ANTIVIRUS_LOG tbAntivirusLog, int pageSize, int limitSize);
int deleteByPrimaryKey(String autoid);
int insert(TB_ANTIVIRUS_LOG record);
int insertSelective(TB_ANTIVIRUS_LOG record);
TB_ANTIVIRUS_LOG selectByPrimaryKey(String autoid);
int updateByPrimaryKeySelective(TB_ANTIVIRUS_LOG record);
int updateByPrimaryKey(TB_ANTIVIRUS_LOG record);
}
... ...
... ... @@ -65,4 +65,24 @@ public class FFMResolveImpl implements FFMResolve {
return false;
}
@Override
public List<FFMInfo> unresolvedFlightnoList() {
return ffmInfoDao.unresolvedFlightnoList();
}
@Override
public List<FFMInfo> unresolvedFFMList(FFMInfo record) {
return ffmInfoDao.unresolvedFFMList(record);
}
@Override
public int delFlightno(FFMInfo record) {
return ffmInfoDao.delFlightno(record);
}
@Override
public int delByAutoidList(List<String> idList) {
return ffmInfoDao.delByAutoidList(idList);
}
}
... ...
package com.tianbo.analysis.service.imp;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.tianbo.analysis.dao.TB_ANTIVIRUS_LOGMapper;
import com.tianbo.analysis.model.TB_ANTIVIRUS_LOG;
import com.tianbo.analysis.service.TB_ANTIVIRUS_LOGService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* @author shenhl
* <p>
* 2022/1/18/16:16
*/
@Service
public class TB_ANTIVIRUS_LOGServiceImpI implements TB_ANTIVIRUS_LOGService {
@Autowired
TB_ANTIVIRUS_LOGMapper tbAntivirusLogMapper;
@Override
public PageInfo<TB_ANTIVIRUS_LOG> list(TB_ANTIVIRUS_LOG tbAntivirusLog, int pageSize, int limitSize) {
Page<TB_ANTIVIRUS_LOG> page = PageHelper.startPage(pageSize, limitSize);
List<TB_ANTIVIRUS_LOG> tbAntivirusLogs = tbAntivirusLogMapper.selectAll(tbAntivirusLog);
PageInfo<TB_ANTIVIRUS_LOG> result = new PageInfo<>(tbAntivirusLogs);
return result;
}
@Override
public int deleteByPrimaryKey(String autoid) {
return tbAntivirusLogMapper.deleteByPrimaryKey(autoid);
}
@Override
public int insert(TB_ANTIVIRUS_LOG record) {
return tbAntivirusLogMapper.insert(record);
}
@Override
public int insertSelective(TB_ANTIVIRUS_LOG record) {
return tbAntivirusLogMapper.insertSelective(record);
}
@Override
public TB_ANTIVIRUS_LOG selectByPrimaryKey(String autoid) {
return tbAntivirusLogMapper.selectByPrimaryKey(autoid);
}
@Override
public int updateByPrimaryKeySelective(TB_ANTIVIRUS_LOG record) {
return tbAntivirusLogMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(TB_ANTIVIRUS_LOG record) {
return tbAntivirusLogMapper.updateByPrimaryKey(record);
}
}
... ...
... ... @@ -36,6 +36,34 @@
from FFM_INFO
where AUTOID = #{autoid,jdbcType=VARCHAR}
</select>
<select id="unresolvedFlightnoList" parameterType="java.lang.String" resultMap="BaseResultMap">
select distinct flightno,flightdate from FFM_INFO where dealstatus = '0'
</select>
<select id="unresolvedFFMList" parameterType="com.tianbo.analysis.model.FFMInfo" resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List" />
FROM FFM_INFO WHERE
FLIGHTNO = #{flightno,jdbcType=VARCHAR} AND FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP}
AND dealstatus = '0' order by REPORTORDER asc
</select>
<select id="delFlightno" parameterType="com.tianbo.analysis.model.FFMInfo">
DELETE FROM FFM_INFO where dealstatus = '0'
<if test="autoid != null">
and AUTOID = #{autoid,jdbcType=VARCHAR}
</if>
<if test="flightno != null">
and FLIGHTNO = #{flightno,jdbcType=VARCHAR}
</if>
<if test="flightdate != null">
and FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP}
</if>
</select>
<select id="delByAutoidList" parameterType="java.util.List">
DELETE FROM FFM_INFO where AUTOID in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from FFM_INFO
where AUTOID = #{autoid,jdbcType=VARCHAR}
... ...
<?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.tianbo.analysis.dao.TB_ANTIVIRUS_LOGMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
<id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHT_DATE" property="flightDate" jdbcType="TIMESTAMP" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
<result column="ANTIVIRUS_PC" property="antivirusPc" jdbcType="DECIMAL" />
<result column="ANTIVIRUS_WT" property="antivirusWt" jdbcType="DECIMAL" />
<result column="ANTIVIRUS_TIME" property="antivirusTime" jdbcType="TIMESTAMP" />
<result column="ANTIVIRUS_NAME" property="antivirusName" jdbcType="VARCHAR" />
<result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
<result column="ANTIVIRUS_STATUS" property="antivirusStatus" jdbcType="DECIMAL" />
<result column="ANTIVIRUS_DES" property="antivirusDes" jdbcType="VARCHAR" />
<result column="TRAY_NUM" property="trayNum" jdbcType="VARCHAR" />
<result column="IS_DELETE" property="isDelete" jdbcType="DECIMAL" />
<result column="BINDING_AUTOID" property="bindingAutoid" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
AUTOID, FLIGHTNO, FLIGHT_DATE, WAYBILLNOMASTER, WAYBILLNOSECONDARY, ANTIVIRUS_PC,
ANTIVIRUS_WT, ANTIVIRUS_TIME, ANTIVIRUS_NAME, UPDATE_TIME, ANTIVIRUS_STATUS, ANTIVIRUS_DES,
TRAY_NUM, IS_DELETE, BINDING_AUTOID
</sql>
<select id="selectAll" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
select
<include refid="Base_Column_List" />
from CGONMS.TB_ANTIVIRUS_LOG
where
1=1
<if test="tbAntivirusLog.antivirusName != null and tbAntivirusLog.antivirusName != ''" >
and antivirusName = #{tbAntivirusLog.antivirusName,jdbcType=VARCHAR}
</if>
order by antivirusTime desc
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from CGONMS.TB_ANTIVIRUS_LOG
where AUTOID = #{autoid,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from CGONMS.TB_ANTIVIRUS_LOG
where AUTOID = #{autoid,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
insert into CGONMS.TB_ANTIVIRUS_LOG (AUTOID, FLIGHTNO, FLIGHT_DATE,
WAYBILLNOMASTER, WAYBILLNOSECONDARY, ANTIVIRUS_PC,
ANTIVIRUS_WT, ANTIVIRUS_TIME, ANTIVIRUS_NAME,
UPDATE_TIME, ANTIVIRUS_STATUS, ANTIVIRUS_DES,
TRAY_NUM, IS_DELETE, BINDING_AUTOID
)
values (#{autoid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightDate,jdbcType=TIMESTAMP},
#{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{antivirusPc,jdbcType=DECIMAL},
#{antivirusWt,jdbcType=DECIMAL}, #{antivirusTime,jdbcType=TIMESTAMP}, #{antivirusName,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{antivirusStatus,jdbcType=DECIMAL}, #{antivirusDes,jdbcType=VARCHAR},
#{trayNum,jdbcType=VARCHAR}, #{isDelete,jdbcType=DECIMAL}, #{bindingAutoid,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
insert into CGONMS.TB_ANTIVIRUS_LOG
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightDate != null" >
FLIGHT_DATE,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="waybillnosecondary != null" >
WAYBILLNOSECONDARY,
</if>
<if test="antivirusPc != null" >
ANTIVIRUS_PC,
</if>
<if test="antivirusWt != null" >
ANTIVIRUS_WT,
</if>
<if test="antivirusTime != null" >
ANTIVIRUS_TIME,
</if>
<if test="antivirusName != null" >
ANTIVIRUS_NAME,
</if>
<if test="updateTime != null" >
UPDATE_TIME,
</if>
<if test="antivirusStatus != null" >
ANTIVIRUS_STATUS,
</if>
<if test="antivirusDes != null" >
ANTIVIRUS_DES,
</if>
<if test="trayNum != null" >
TRAY_NUM,
</if>
<if test="isDelete != null" >
IS_DELETE,
</if>
<if test="bindingAutoid != null" >
BINDING_AUTOID,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightDate != null" >
#{flightDate,jdbcType=TIMESTAMP},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null" >
#{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="antivirusPc != null" >
#{antivirusPc,jdbcType=DECIMAL},
</if>
<if test="antivirusWt != null" >
#{antivirusWt,jdbcType=DECIMAL},
</if>
<if test="antivirusTime != null" >
#{antivirusTime,jdbcType=TIMESTAMP},
</if>
<if test="antivirusName != null" >
#{antivirusName,jdbcType=VARCHAR},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="antivirusStatus != null" >
#{antivirusStatus,jdbcType=DECIMAL},
</if>
<if test="antivirusDes != null" >
#{antivirusDes,jdbcType=VARCHAR},
</if>
<if test="trayNum != null" >
#{trayNum,jdbcType=VARCHAR},
</if>
<if test="isDelete != null" >
#{isDelete,jdbcType=DECIMAL},
</if>
<if test="bindingAutoid != null" >
#{bindingAutoid,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
update CGONMS.TB_ANTIVIRUS_LOG
<set >
<if test="flightno != null" >
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
</if>
<if test="flightDate != null" >
FLIGHT_DATE = #{flightDate,jdbcType=TIMESTAMP},
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null" >
WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="antivirusPc != null" >
ANTIVIRUS_PC = #{antivirusPc,jdbcType=DECIMAL},
</if>
<if test="antivirusWt != null" >
ANTIVIRUS_WT = #{antivirusWt,jdbcType=DECIMAL},
</if>
<if test="antivirusTime != null" >
ANTIVIRUS_TIME = #{antivirusTime,jdbcType=TIMESTAMP},
</if>
<if test="antivirusName != null" >
ANTIVIRUS_NAME = #{antivirusName,jdbcType=VARCHAR},
</if>
<if test="updateTime != null" >
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="antivirusStatus != null" >
ANTIVIRUS_STATUS = #{antivirusStatus,jdbcType=DECIMAL},
</if>
<if test="antivirusDes != null" >
ANTIVIRUS_DES = #{antivirusDes,jdbcType=VARCHAR},
</if>
<if test="trayNum != null" >
TRAY_NUM = #{trayNum,jdbcType=VARCHAR},
</if>
<if test="isDelete != null" >
IS_DELETE = #{isDelete,jdbcType=DECIMAL},
</if>
<if test="bindingAutoid != null" >
BINDING_AUTOID = #{bindingAutoid,jdbcType=VARCHAR},
</if>
</set>
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
update CGONMS.TB_ANTIVIRUS_LOG
set FLIGHTNO = #{flightno,jdbcType=VARCHAR},
FLIGHT_DATE = #{flightDate,jdbcType=TIMESTAMP},
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
ANTIVIRUS_PC = #{antivirusPc,jdbcType=DECIMAL},
ANTIVIRUS_WT = #{antivirusWt,jdbcType=DECIMAL},
ANTIVIRUS_TIME = #{antivirusTime,jdbcType=TIMESTAMP},
ANTIVIRUS_NAME = #{antivirusName,jdbcType=VARCHAR},
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
ANTIVIRUS_STATUS = #{antivirusStatus,jdbcType=DECIMAL},
ANTIVIRUS_DES = #{antivirusDes,jdbcType=VARCHAR},
TRAY_NUM = #{trayNum,jdbcType=VARCHAR},
IS_DELETE = #{isDelete,jdbcType=DECIMAL},
BINDING_AUTOID = #{bindingAutoid,jdbcType=VARCHAR}
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
</mapper>
... ...