From da6b53ae3010e45ee72cf358c821777f0e3a799f Mon Sep 17 00:00:00 2001 From: x_z Date: Tue, 21 Jun 2022 11:21:28 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E4=BA=A4=E6=97=A5=E5=BF=97=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81=202.=E5=88=A0=E9=99=A4=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=9A=84redis=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-admin/pom.xml | 4 - .../dao/business/StockOrderUploadLogDao.java | 34 ++++ .../business/StockOrderUploadLogDao.xml | 151 ++++++++++++++++++ 3 files changed, 185 insertions(+), 4 deletions(-) create mode 100644 api-admin/src/main/java/com/glxp/api/admin/dao/business/StockOrderUploadLogDao.java create mode 100644 api-admin/src/main/resources/mybatis/mapper/business/StockOrderUploadLogDao.xml diff --git a/api-admin/pom.xml b/api-admin/pom.xml index 6a4093da..c47f293e 100644 --- a/api-admin/pom.xml +++ b/api-admin/pom.xml @@ -166,10 +166,6 @@ org.springframework.boot spring-boot-starter-websocket - - org.springframework.boot - spring-boot-starter-data-redis - diff --git a/api-admin/src/main/java/com/glxp/api/admin/dao/business/StockOrderUploadLogDao.java b/api-admin/src/main/java/com/glxp/api/admin/dao/business/StockOrderUploadLogDao.java new file mode 100644 index 00000000..bbffd862 --- /dev/null +++ b/api-admin/src/main/java/com/glxp/api/admin/dao/business/StockOrderUploadLogDao.java @@ -0,0 +1,34 @@ +package com.glxp.api.admin.dao.business; + +import com.glxp.api.admin.entity.business.StockOrderUploadLogEntity; +import com.glxp.api.admin.req.business.StockOrderUploadLogRequest; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +@Mapper +public interface StockOrderUploadLogDao { + int deleteByPrimaryKey(Integer id); + + int insert(StockOrderUploadLogEntity record); + + int insertSelective(StockOrderUploadLogEntity record); + + StockOrderUploadLogEntity selectByPrimaryKey(Integer id); + + int updateByPrimaryKeySelective(StockOrderUploadLogEntity record); + + int updateByPrimaryKey(StockOrderUploadLogEntity record); + + List selectList(StockOrderUploadLogRequest request); + + /** + * 根据 + * + * @param billNo + * @param status + * @return + */ + List selectBillNoList(@Param("billNo") String billNo, @Param("status") String status); +} \ No newline at end of file diff --git a/api-admin/src/main/resources/mybatis/mapper/business/StockOrderUploadLogDao.xml b/api-admin/src/main/resources/mybatis/mapper/business/StockOrderUploadLogDao.xml new file mode 100644 index 00000000..506ee39e --- /dev/null +++ b/api-admin/src/main/resources/mybatis/mapper/business/StockOrderUploadLogDao.xml @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + id, billNo, billDate, billType, thrBillNo, submitTime, `status`, `result` + + + + + delete from stock_order_upload_log + where id = #{id,jdbcType=INTEGER} + + + + insert into stock_order_upload_log (billNo, billDate, billType, + thrBillNo, submitTime, `status`, + `result`) + values (#{billNo,jdbcType=VARCHAR}, #{billDate,jdbcType=TIMESTAMP}, #{billType,jdbcType=VARCHAR}, + #{thrBillNo,jdbcType=VARCHAR}, #{submitTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, + #{result,jdbcType=VARCHAR}) + + + + insert into stock_order_upload_log + + + billNo, + + + billDate, + + + billType, + + + thrBillNo, + + + submitTime, + + + `status`, + + + `result`, + + + + + #{billNo,jdbcType=VARCHAR}, + + + #{billDate,jdbcType=TIMESTAMP}, + + + #{billType,jdbcType=VARCHAR}, + + + #{thrBillNo,jdbcType=VARCHAR}, + + + #{submitTime,jdbcType=TIMESTAMP}, + + + #{status,jdbcType=INTEGER}, + + + #{result,jdbcType=VARCHAR}, + + + + + + update stock_order_upload_log + + + billNo = #{billNo,jdbcType=VARCHAR}, + + + billDate = #{billDate,jdbcType=TIMESTAMP}, + + + billType = #{billType,jdbcType=VARCHAR}, + + + thrBillNo = #{thrBillNo,jdbcType=VARCHAR}, + + + submitTime = #{submitTime,jdbcType=TIMESTAMP}, + + + `status` = #{status,jdbcType=INTEGER}, + + + `result` = #{result,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + + update stock_order_upload_log + set billNo = #{billNo,jdbcType=VARCHAR}, + billDate = #{billDate,jdbcType=TIMESTAMP}, + billType = #{billType,jdbcType=VARCHAR}, + thrBillNo = #{thrBillNo,jdbcType=VARCHAR}, + submitTime = #{submitTime,jdbcType=TIMESTAMP}, + `status` = #{status,jdbcType=INTEGER}, + `result` = #{result,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + + + + \ No newline at end of file