数据访问层和业务层接口与实现新增

服务模块中新增了多个数据访问对象(DAO)和业务服务(Service)的接口及其实现类。这些类提供了对OFS售后入库单、OFS出库单及其明细表的数据操作支持,包括实体类定义、数据库访问层和业务逻辑层的框架结构。此次更新为报告系统的库存管理相关功能奠定了基础。

- 新增`TocofsReturngoodsDaoImpl`、`TocofsReturngoodsDetailedDaoImpl`、`TocofsSaleoutDaoImpl`和`TocofsSaleoutDetailedDaoImpl`实现了对应的数据库访问逻辑。- 定义了`ITocofsReturngoodsDao`、`ITocofsReturngoodsDetailedDao`、`ITocofsSaleoutDao`和`ITocofsSaleoutDetailedDao`接口,声明了数据访问的基本操作方法。
- 创建了`TocofsReturngoodsEntity`、`TocofsReturngoodsDetailedEntity`、`TocofsSaleoutEntity`和`TocofsSaleoutDetailedEntity`实体类,对应数据库中的相关表结构。
- 实现了`TocofsReturngoodsServiceImpl`、`TocofsReturngoodsDetailedServiceImpl`、`TocofsSaleoutDetailedServiceImpl`服务层接口的默认服务逻辑。

此次提交是库存管理模块开发的第一步,后续将基于这些基础组件实现具体的业务逻辑和功能接口。
This commit is contained in:
liuy 2024-09-21 17:34:58 +08:00
parent e408a90049
commit e913c13163
24 changed files with 6290 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package com.hzya.frame.report.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity;
/**
* OFS售后入库单(tocofs_returngoods: table)表数据库访问层
*
* @author makejava
* @since 2024-09-13 11:58:10
*/
public interface ITocofsReturngoodsDao extends IBaseDao<TocofsReturngoodsEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.report.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity;
import java.util.List;
/**
* root(tocofs_returngoods_detailed: table)表数据库访问层
*
* @author makejava
* @since 2024-09-13 11:58:26
*/
public interface ITocofsReturngoodsDetailedDao extends IBaseDao<TocofsReturngoodsDetailedEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.report.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.report.lets.entity.TocofsSaleoutEntity;
import java.util.List;
/**
* O出库单表头(TOCTOB业务底表)(tocofs_saleout: table)表数据库访问层
*
* @author makejava
* @since 2024-09-04 17:48:16
*/
public interface ITocofsSaleoutDao extends IBaseDao<TocofsSaleoutEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.report.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity;
import java.util.List;
/**
* O出库单明细表(TOCTOB业务底表)(tocofs_saleout_detailed: table)表数据库访问层
*
* @author makejava
* @since 2024-09-04 17:48:28
*/
public interface ITocofsSaleoutDetailedDao extends IBaseDao<TocofsSaleoutDetailedEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.report.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.report.lets.dao.ITocofsReturngoodsDao;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity;
import org.springframework.stereotype.Repository;
/**
* OFS售后入库单(TocofsReturngoods)表数据库访问层
*
* @author makejava
* @since 2024-09-13 11:58:10
*/
@Repository(value = "tocofsReturngoodsDaoImplReport")
public class TocofsReturngoodsDaoImpl extends MybatisGenericDao<TocofsReturngoodsEntity, String> implements ITocofsReturngoodsDao {
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.report.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.report.lets.dao.ITocofsReturngoodsDetailedDao;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* root(TocofsReturngoodsDetailed)表数据库访问层
*
* @author makejava
* @since 2024-09-13 11:58:26
*/
@Repository(value = "tocofsReturngoodsDetailedDaoImplReport")
public class TocofsReturngoodsDetailedDaoImpl extends MybatisGenericDao<TocofsReturngoodsDetailedEntity, String> implements ITocofsReturngoodsDetailedDao {
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.report.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.report.lets.dao.ITocofsSaleoutDao;
import com.hzya.frame.report.lets.entity.TocofsSaleoutEntity;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* O出库单表头(TOCTOB业务底表)(TocofsSaleout)表数据库访问层
*
* @author makejava
* @since 2024-09-04 17:48:16
*/
@Repository(value = "tocofsSaleoutDaoImplReport")
public class TocofsSaleoutDaoImpl extends MybatisGenericDao<TocofsSaleoutEntity, String> implements ITocofsSaleoutDao {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.report.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.report.lets.dao.ITocofsSaleoutDetailedDao;
import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity;
import org.springframework.stereotype.Repository;
/**
* O出库单明细表(TOCTOB业务底表)(TocofsSaleoutDetailed)表数据库访问层
*
* @author makejava
* @since 2024-09-04 17:48:28
*/
@Repository(value = "tocofsSaleoutDetailedDaoImplReport")
public class TocofsSaleoutDetailedDaoImpl extends MybatisGenericDao<TocofsSaleoutDetailedEntity, String> implements ITocofsSaleoutDetailedDao {
}

View File

@ -0,0 +1,388 @@
package com.hzya.frame.report.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* root(TocofsReturngoodsDetailed)实体类
*
* @author makejava
* @since 2024-09-13 11:58:26
*/
@Data
public class TocofsReturngoodsDetailedEntity extends BaseEntity {
/**
* 81159
*/
private String receiptid;
/**
* LETS-RE2024071600000001
*/
private String receiptcode;
/**
* 128
*/
private String reforderid;
/**
* 299
*/
private String reforderdetailid;
/**
* LETS-SO2024070500000001
*/
private String sourceordercode;
private String sourcelinenum;
/**
* LETS
*/
private String clientcode;
/**
* SHLZ
*/
private String companycode;
/**
* intoyou-tmxs
*/
private String facilitycode;
/**
* 6973391730617
*/
private String skucode;
/**
* INTOYOU心慕与你水感裸雾唇釉W01
*/
private String skuname;
/**
* 2
*/
private String requestqty;
/**
* 2
*/
private String receivedqty;
/**
* 0
*/
private String openqty;
/**
* EA
*/
private String quantityum;
/**
* 0
*/
private String totalweight;
/**
* 0
*/
private String totalvolume;
/**
* 0
*/
private String totalvolumeweight;
/**
* 118
*/
private String totalamount;
/**
* G
*/
private String weightum;
/**
* CM3
*/
private String volumeum;
/**
* AVAILABLE
*/
private String inventorysts;
/**
* 30796
*/
private String intransinvid;
/**
* 0
*/
private String closed;
/**
* 2024-07-16 15:35:36
*/
private String created;
/**
* admin
*/
private String createdby;
/**
* 2024-07-16 16:44:01
*/
private String lastupdated;
/**
* api
*/
private String lastupdatedby;
/**
* 59
*/
private String discountprice;
/**
* 主表主键
*/
private String maintableid;
/**
* 报错内容
*/
private String newtransmitinfo;
/**
* 推送时间
*/
private String newpushdate;
/**
* 是否成功
*/
private String newstate;
/**
* 下游系统编码
*/
private String newsystemnumber;
/**
* 下游系统主键
*/
private String newsystemprimary;
/**
* 报错内容
*/
private String newtransmitinfo2;
/**
* 推送时间
*/
private String newpushdate2;
/**
* 是否成功
*/
private String newstate2;
/**
* 下游系统编码
*/
private String newsystemnumber2;
/**
* 下游系统主键
*/
private String newsystemprimary2;
/**
* 报错内容
*/
private String newtransmitinfo3;
/**
* 推送时间
*/
private String newpushdate3;
/**
* 是否成功
*/
private String newstate3;
/**
* 下游系统编码
*/
private String newsystemnumber3;
/**
* 下游系统主键
*/
private String newsystemprimary3;
/**
* 报错内容
*/
private String newtransmitinfo4;
/**
* 推送时间
*/
private String newpushdate4;
/**
* 是否成功
*/
private String newstate4;
/**
* 下游系统编码
*/
private String newsystemnumber4;
/**
* 下游系统主键
*/
private String newsystemprimary4;
/**
* 业务日期-入库时间
*/
private String businessdate;
/**
* 业务日期-退款完成时间
*/
private String refundedat;
/**
* 业务类型(TOC退货orTOB退货)
*/
private String businesstype;
/**
* 自定义项
*/
private String def1;
/**
* 自定义项
*/
private String def2;
/**
* 自定义项
*/
private String def3;
/**
* 自定义项
*/
private String def4;
/**
* 自定义项
*/
private String def5;
/**
* 自定义项
*/
private String def6;
/**
* 自定义项
*/
private String def7;
/**
* 自定义项
*/
private String def8;
/**
* 自定义项
*/
private String def9;
/**
* 自定义项
*/
private String def10;
/**
* 自定义项
*/
private String def11;
/**
* 自定义项
*/
private String def12;
/**
* 自定义项
*/
private String def13;
/**
* 自定义项
*/
private String def14;
/**
* 自定义项
*/
private String def15;
/**
* 自定义项
*/
private String def16;
/**
* 自定义项
*/
private String def17;
/**
* 自定义项
*/
private String def18;
/**
* 自定义项
*/
private String def19;
/**
* 自定义项
*/
private String def20;
/**
* 自定义项
*/
private String def21;
/**
* 自定义项
*/
private String def22;
/**
* 自定义项
*/
private String def23;
/**
* 自定义项
*/
private String def24;
/**
* 自定义项
*/
private String def25;
/**
* 自定义项
*/
private String def26;
/**
* 自定义项
*/
private String def27;
/**
* 自定义项
*/
private String def28;
/**
* 自定义项
*/
private String def29;
/**
* 自定义项
*/
private String def30;
/**
* 自定义项
*/
private String def31;
/**
* 自定义项
*/
private String def32;
/**
* 自定义项
*/
private String def33;
/**
* 自定义项
*/
private String def34;
/**
* 自定义项
*/
private String def35;
/**
* 自定义项
*/
private String def36;
/**
* 自定义项
*/
private String def37;
/**
* 自定义项
*/
private String def38;
/**
* 自定义项
*/
private String def39;
/**
* 自定义项
*/
private String def40;
/**
* 补充的查询条件
*/
private String ids;
}

View File

@ -0,0 +1,134 @@
package com.hzya.frame.report.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* OFS售后入库单(TocofsReturngoods)实体类
*
* @author makejava
* @since 2024-09-13 11:58:10
*/
@Data
public class TocofsReturngoodsEntity extends BaseEntity {
/**
* LETS
*/
private String clientcode;
/**
* SHLZ
*/
private String companycode;
/**
* tm-intoyou
*/
private String storecode;
/**
* intoyou-tmxs
*/
private String facilitycode;
/**
* LETS-RE2024071600000001
*/
private String code;
/**
* RETURN
*/
private String internalinstructiontype;
/**
* B2C
*/
private String bizchannel;
/**
* 128
*/
private String reforderid;
/**
* LETS-RO2024071600000001
*/
private String refordercode;
/**
* RETURN
*/
private String refordertype;
/**
* 1
*/
private String closed;
/**
* api
*/
private String closedby;
/**
* 900
*/
private String status;
/**
* 0
*/
private String allowoverreceive;
/**
* 张三
*/
private String shipfromattentionto;
/**
* 测试售后流程
*/
private String shipfromaddress;
/**
* 中国
*/
private String shipfromcountry;
/**
* 上海市
*/
private String shipfromstate;
/**
* 上海市
*/
private String shipfromcity;
/**
* 金山区
*/
private String shipfromdistrict;
/**
* 17878787878
*/
private String shipfrompostalcode;
private String shipfrommobile;
private String shipfromemail;
private String totallines;
private String totalqty;
private String totalamount;
private String totalweight;
private String totalvolume;
private String totalvolumeweight;
private String totalfulfillamount;
private String totalfulfillweight;
private String totalfulfillvolume;
private String totalfulfillvolumeweight;
private String totalfulfillqty;
private String totalcases;
private String totalcontainers;
private String closeatqty;
private String quantityum;
private String weightum;
private String volumeum;
private String checkinfrom;
private String checkinto;
private String closedat;
private String sourceplatformcode;
private String sourceordercode;
/**
* 2024-07-16 15:35:36
*/
private String created;
private String createdby;
private String lastupdated;
private String lastupdatedby;
private String returnwaybillcode;
private String returncarrier;
private String refundedat;
private String refundstatus;
}

View File

@ -0,0 +1,709 @@
<?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.hzya.frame.report.lets.dao.impl.TocofsReturngoodsDaoImpl">
<resultMap id="get-TocofsReturngoodsEntity-result" type="com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity" >
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="clientcode" column="clientCode" jdbcType="VARCHAR"/>
<result property="companycode" column="companyCode" jdbcType="VARCHAR"/>
<result property="storecode" column="storeCode" jdbcType="VARCHAR"/>
<result property="facilitycode" column="facilityCode" jdbcType="VARCHAR"/>
<result property="code" column="code" jdbcType="VARCHAR"/>
<result property="internalinstructiontype" column="internalInstructionType" jdbcType="VARCHAR"/>
<result property="bizchannel" column="bizChannel" jdbcType="VARCHAR"/>
<result property="reforderid" column="refOrderId" jdbcType="VARCHAR"/>
<result property="refordercode" column="refOrderCode" jdbcType="VARCHAR"/>
<result property="refordertype" column="refOrderType" jdbcType="VARCHAR"/>
<result property="closed" column="closed" jdbcType="VARCHAR"/>
<result property="closedby" column="closedBy" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="VARCHAR"/>
<result property="allowoverreceive" column="allowOverReceive" jdbcType="VARCHAR"/>
<result property="shipfromattentionto" column="shipFromAttentionTo" jdbcType="VARCHAR"/>
<result property="shipfromaddress" column="shipFromAddress" jdbcType="VARCHAR"/>
<result property="shipfromcountry" column="shipFromCountry" jdbcType="VARCHAR"/>
<result property="shipfromstate" column="shipFromState" jdbcType="VARCHAR"/>
<result property="shipfromcity" column="shipFromCity" jdbcType="VARCHAR"/>
<result property="shipfromdistrict" column="shipFromDistrict" jdbcType="VARCHAR"/>
<result property="shipfrompostalcode" column="shipFromPostalCode" jdbcType="VARCHAR"/>
<result property="shipfrommobile" column="shipFromMobile" jdbcType="VARCHAR"/>
<result property="shipfromemail" column="shipFromEmail" jdbcType="VARCHAR"/>
<result property="totallines" column="totalLines" jdbcType="VARCHAR"/>
<result property="totalqty" column="totalQty" jdbcType="VARCHAR"/>
<result property="totalamount" column="totalAmount" jdbcType="VARCHAR"/>
<result property="totalweight" column="totalWeight" jdbcType="VARCHAR"/>
<result property="totalvolume" column="totalVolume" jdbcType="VARCHAR"/>
<result property="totalvolumeweight" column="totalVolumeWeight" jdbcType="VARCHAR"/>
<result property="totalfulfillamount" column="totalFulfillAmount" jdbcType="VARCHAR"/>
<result property="totalfulfillweight" column="totalFulfillWeight" jdbcType="VARCHAR"/>
<result property="totalfulfillvolume" column="totalFulfillVolume" jdbcType="VARCHAR"/>
<result property="totalfulfillvolumeweight" column="totalFulfillVolumeWeight" jdbcType="VARCHAR"/>
<result property="totalfulfillqty" column="totalFulfillQty" jdbcType="VARCHAR"/>
<result property="totalcases" column="totalCases" jdbcType="VARCHAR"/>
<result property="totalcontainers" column="totalContainers" jdbcType="VARCHAR"/>
<result property="closeatqty" column="closeAtQty" jdbcType="VARCHAR"/>
<result property="quantityum" column="quantityUM" jdbcType="VARCHAR"/>
<result property="weightum" column="weightUM" jdbcType="VARCHAR"/>
<result property="volumeum" column="volumeUM" jdbcType="VARCHAR"/>
<result property="checkinfrom" column="checkInFrom" jdbcType="VARCHAR"/>
<result property="checkinto" column="checkInTo" jdbcType="VARCHAR"/>
<result property="closedat" column="closedAt" jdbcType="VARCHAR"/>
<result property="sourceplatformcode" column="sourcePlatformCode" jdbcType="VARCHAR"/>
<result property="sourceordercode" column="sourceOrderCode" jdbcType="VARCHAR"/>
<result property="created" column="created" jdbcType="VARCHAR"/>
<result property="createdby" column="createdBy" jdbcType="VARCHAR"/>
<result property="lastupdated" column="lastUpdated" jdbcType="VARCHAR"/>
<result property="lastupdatedby" column="lastUpdatedBy" jdbcType="VARCHAR"/>
<result property="returnwaybillcode" column="returnWaybillCode" jdbcType="VARCHAR"/>
<result property="returncarrier" column="returnCarrier" jdbcType="VARCHAR"/>
<result property="refundedat" column="refundedAt" jdbcType="VARCHAR"/>
<result property="refundstatus" column="refundStatus" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "TocofsReturngoodsEntity_Base_Column_List">
id
,clientCode
,companyCode
,storeCode
,facilityCode
,code
,internalInstructionType
,bizChannel
,refOrderId
,refOrderCode
,refOrderType
,closed
,closedBy
,status
,allowOverReceive
,shipFromAttentionTo
,shipFromAddress
,shipFromCountry
,shipFromState
,shipFromCity
,shipFromDistrict
,shipFromPostalCode
,shipFromMobile
,shipFromEmail
,totalLines
,totalQty
,totalAmount
,totalWeight
,totalVolume
,totalVolumeWeight
,totalFulfillAmount
,totalFulfillWeight
,totalFulfillVolume
,totalFulfillVolumeWeight
,totalFulfillQty
,totalCases
,totalContainers
,closeAtQty
,quantityUM
,weightUM
,volumeUM
,checkInFrom
,checkInTo
,closedAt
,sourcePlatformCode
,sourceOrderCode
,created
,createdBy
,lastUpdated
,lastUpdatedBy
,returnWaybillCode
,returnCarrier
,refundedAt
,refundStatus
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-TocofsReturngoodsEntity-result" parameterType = "com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity">
select
<include refid="TocofsReturngoodsEntity_Base_Column_List" />
from tocofs_returngoods
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="clientcode != null and clientcode != ''"> and clientCode = #{clientcode} </if>
<if test="companycode != null and companycode != ''"> and companyCode = #{companycode} </if>
<if test="storecode != null and storecode != ''"> and storeCode = #{storecode} </if>
<if test="facilitycode != null and facilitycode != ''"> and facilityCode = #{facilitycode} </if>
<if test="code != null and code != ''"> and code = #{code} </if>
<if test="internalinstructiontype != null and internalinstructiontype != ''"> and internalInstructionType = #{internalinstructiontype} </if>
<if test="bizchannel != null and bizchannel != ''"> and bizChannel = #{bizchannel} </if>
<if test="reforderid != null and reforderid != ''"> and refOrderId = #{reforderid} </if>
<if test="refordercode != null and refordercode != ''"> and refOrderCode = #{refordercode} </if>
<if test="refordertype != null and refordertype != ''"> and refOrderType = #{refordertype} </if>
<if test="closed != null and closed != ''"> and closed = #{closed} </if>
<if test="closedby != null and closedby != ''"> and closedBy = #{closedby} </if>
<if test="status != null and status != ''"> and status = #{status} </if>
<if test="allowoverreceive != null and allowoverreceive != ''"> and allowOverReceive = #{allowoverreceive} </if>
<if test="shipfromattentionto != null and shipfromattentionto != ''"> and shipFromAttentionTo = #{shipfromattentionto} </if>
<if test="shipfromaddress != null and shipfromaddress != ''"> and shipFromAddress = #{shipfromaddress} </if>
<if test="shipfromcountry != null and shipfromcountry != ''"> and shipFromCountry = #{shipfromcountry} </if>
<if test="shipfromstate != null and shipfromstate != ''"> and shipFromState = #{shipfromstate} </if>
<if test="shipfromcity != null and shipfromcity != ''"> and shipFromCity = #{shipfromcity} </if>
<if test="shipfromdistrict != null and shipfromdistrict != ''"> and shipFromDistrict = #{shipfromdistrict} </if>
<if test="shipfrompostalcode != null and shipfrompostalcode != ''"> and shipFromPostalCode = #{shipfrompostalcode} </if>
<if test="shipfrommobile != null and shipfrommobile != ''"> and shipFromMobile = #{shipfrommobile} </if>
<if test="shipfromemail != null and shipfromemail != ''"> and shipFromEmail = #{shipfromemail} </if>
<if test="totallines != null and totallines != ''"> and totalLines = #{totallines} </if>
<if test="totalqty != null and totalqty != ''"> and totalQty = #{totalqty} </if>
<if test="totalamount != null and totalamount != ''"> and totalAmount = #{totalamount} </if>
<if test="totalweight != null and totalweight != ''"> and totalWeight = #{totalweight} </if>
<if test="totalvolume != null and totalvolume != ''"> and totalVolume = #{totalvolume} </if>
<if test="totalvolumeweight != null and totalvolumeweight != ''"> and totalVolumeWeight = #{totalvolumeweight} </if>
<if test="totalfulfillamount != null and totalfulfillamount != ''"> and totalFulfillAmount = #{totalfulfillamount} </if>
<if test="totalfulfillweight != null and totalfulfillweight != ''"> and totalFulfillWeight = #{totalfulfillweight} </if>
<if test="totalfulfillvolume != null and totalfulfillvolume != ''"> and totalFulfillVolume = #{totalfulfillvolume} </if>
<if test="totalfulfillvolumeweight != null and totalfulfillvolumeweight != ''"> and totalFulfillVolumeWeight = #{totalfulfillvolumeweight} </if>
<if test="totalfulfillqty != null and totalfulfillqty != ''"> and totalFulfillQty = #{totalfulfillqty} </if>
<if test="totalcases != null and totalcases != ''"> and totalCases = #{totalcases} </if>
<if test="totalcontainers != null and totalcontainers != ''"> and totalContainers = #{totalcontainers} </if>
<if test="closeatqty != null and closeatqty != ''"> and closeAtQty = #{closeatqty} </if>
<if test="quantityum != null and quantityum != ''"> and quantityUM = #{quantityum} </if>
<if test="weightum != null and weightum != ''"> and weightUM = #{weightum} </if>
<if test="volumeum != null and volumeum != ''"> and volumeUM = #{volumeum} </if>
<if test="checkinfrom != null and checkinfrom != ''"> and checkInFrom = #{checkinfrom} </if>
<if test="checkinto != null and checkinto != ''"> and checkInTo = #{checkinto} </if>
<if test="closedat != null and closedat != ''"> and closedAt = #{closedat} </if>
<if test="sourceplatformcode != null and sourceplatformcode != ''"> and sourcePlatformCode = #{sourceplatformcode} </if>
<if test="sourceordercode != null and sourceordercode != ''"> and sourceOrderCode = #{sourceordercode} </if>
<if test="created != null and created != ''"> and created = #{created} </if>
<if test="createdby != null and createdby != ''"> and createdBy = #{createdby} </if>
<if test="lastupdated != null and lastupdated != ''"> and lastUpdated = #{lastupdated} </if>
<if test="lastupdatedby != null and lastupdatedby != ''"> and lastUpdatedBy = #{lastupdatedby} </if>
<if test="returnwaybillcode != null and returnwaybillcode != ''"> and returnWaybillCode = #{returnwaybillcode} </if>
<if test="returncarrier != null and returncarrier != ''"> and returnCarrier = #{returncarrier} </if>
<if test="refundedat != null and refundedat != ''"> and refundedAt = #{refundedat} </if>
<if test="refundstatus != null and refundstatus != ''"> and refundStatus = #{refundstatus} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity">
select count(1) from tocofs_returngoods
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="clientcode != null and clientcode != ''"> and clientCode = #{clientcode} </if>
<if test="companycode != null and companycode != ''"> and companyCode = #{companycode} </if>
<if test="storecode != null and storecode != ''"> and storeCode = #{storecode} </if>
<if test="facilitycode != null and facilitycode != ''"> and facilityCode = #{facilitycode} </if>
<if test="code != null and code != ''"> and code = #{code} </if>
<if test="internalinstructiontype != null and internalinstructiontype != ''"> and internalInstructionType = #{internalinstructiontype} </if>
<if test="bizchannel != null and bizchannel != ''"> and bizChannel = #{bizchannel} </if>
<if test="reforderid != null and reforderid != ''"> and refOrderId = #{reforderid} </if>
<if test="refordercode != null and refordercode != ''"> and refOrderCode = #{refordercode} </if>
<if test="refordertype != null and refordertype != ''"> and refOrderType = #{refordertype} </if>
<if test="closed != null and closed != ''"> and closed = #{closed} </if>
<if test="closedby != null and closedby != ''"> and closedBy = #{closedby} </if>
<if test="status != null and status != ''"> and status = #{status} </if>
<if test="allowoverreceive != null and allowoverreceive != ''"> and allowOverReceive = #{allowoverreceive} </if>
<if test="shipfromattentionto != null and shipfromattentionto != ''"> and shipFromAttentionTo = #{shipfromattentionto} </if>
<if test="shipfromaddress != null and shipfromaddress != ''"> and shipFromAddress = #{shipfromaddress} </if>
<if test="shipfromcountry != null and shipfromcountry != ''"> and shipFromCountry = #{shipfromcountry} </if>
<if test="shipfromstate != null and shipfromstate != ''"> and shipFromState = #{shipfromstate} </if>
<if test="shipfromcity != null and shipfromcity != ''"> and shipFromCity = #{shipfromcity} </if>
<if test="shipfromdistrict != null and shipfromdistrict != ''"> and shipFromDistrict = #{shipfromdistrict} </if>
<if test="shipfrompostalcode != null and shipfrompostalcode != ''"> and shipFromPostalCode = #{shipfrompostalcode} </if>
<if test="shipfrommobile != null and shipfrommobile != ''"> and shipFromMobile = #{shipfrommobile} </if>
<if test="shipfromemail != null and shipfromemail != ''"> and shipFromEmail = #{shipfromemail} </if>
<if test="totallines != null and totallines != ''"> and totalLines = #{totallines} </if>
<if test="totalqty != null and totalqty != ''"> and totalQty = #{totalqty} </if>
<if test="totalamount != null and totalamount != ''"> and totalAmount = #{totalamount} </if>
<if test="totalweight != null and totalweight != ''"> and totalWeight = #{totalweight} </if>
<if test="totalvolume != null and totalvolume != ''"> and totalVolume = #{totalvolume} </if>
<if test="totalvolumeweight != null and totalvolumeweight != ''"> and totalVolumeWeight = #{totalvolumeweight} </if>
<if test="totalfulfillamount != null and totalfulfillamount != ''"> and totalFulfillAmount = #{totalfulfillamount} </if>
<if test="totalfulfillweight != null and totalfulfillweight != ''"> and totalFulfillWeight = #{totalfulfillweight} </if>
<if test="totalfulfillvolume != null and totalfulfillvolume != ''"> and totalFulfillVolume = #{totalfulfillvolume} </if>
<if test="totalfulfillvolumeweight != null and totalfulfillvolumeweight != ''"> and totalFulfillVolumeWeight = #{totalfulfillvolumeweight} </if>
<if test="totalfulfillqty != null and totalfulfillqty != ''"> and totalFulfillQty = #{totalfulfillqty} </if>
<if test="totalcases != null and totalcases != ''"> and totalCases = #{totalcases} </if>
<if test="totalcontainers != null and totalcontainers != ''"> and totalContainers = #{totalcontainers} </if>
<if test="closeatqty != null and closeatqty != ''"> and closeAtQty = #{closeatqty} </if>
<if test="quantityum != null and quantityum != ''"> and quantityUM = #{quantityum} </if>
<if test="weightum != null and weightum != ''"> and weightUM = #{weightum} </if>
<if test="volumeum != null and volumeum != ''"> and volumeUM = #{volumeum} </if>
<if test="checkinfrom != null and checkinfrom != ''"> and checkInFrom = #{checkinfrom} </if>
<if test="checkinto != null and checkinto != ''"> and checkInTo = #{checkinto} </if>
<if test="closedat != null and closedat != ''"> and closedAt = #{closedat} </if>
<if test="sourceplatformcode != null and sourceplatformcode != ''"> and sourcePlatformCode = #{sourceplatformcode} </if>
<if test="sourceordercode != null and sourceordercode != ''"> and sourceOrderCode = #{sourceordercode} </if>
<if test="created != null and created != ''"> and created = #{created} </if>
<if test="createdby != null and createdby != ''"> and createdBy = #{createdby} </if>
<if test="lastupdated != null and lastupdated != ''"> and lastUpdated = #{lastupdated} </if>
<if test="lastupdatedby != null and lastupdatedby != ''"> and lastUpdatedBy = #{lastupdatedby} </if>
<if test="returnwaybillcode != null and returnwaybillcode != ''"> and returnWaybillCode = #{returnwaybillcode} </if>
<if test="returncarrier != null and returncarrier != ''"> and returnCarrier = #{returncarrier} </if>
<if test="refundedat != null and refundedat != ''"> and refundedAt = #{refundedat} </if>
<if test="refundstatus != null and refundstatus != ''"> and refundStatus = #{refundstatus} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-TocofsReturngoodsEntity-result" parameterType = "com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity">
select
<include refid="TocofsReturngoodsEntity_Base_Column_List" />
from tocofs_returngoods
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
<if test="clientcode != null and clientcode != ''"> and clientCode like concat('%',#{clientcode},'%') </if>
<if test="companycode != null and companycode != ''"> and companyCode like concat('%',#{companycode},'%') </if>
<if test="storecode != null and storecode != ''"> and storeCode like concat('%',#{storecode},'%') </if>
<if test="facilitycode != null and facilitycode != ''"> and facilityCode like concat('%',#{facilitycode},'%') </if>
<if test="code != null and code != ''"> and code like concat('%',#{code},'%') </if>
<if test="internalinstructiontype != null and internalinstructiontype != ''"> and internalInstructionType like concat('%',#{internalinstructiontype},'%') </if>
<if test="bizchannel != null and bizchannel != ''"> and bizChannel like concat('%',#{bizchannel},'%') </if>
<if test="reforderid != null and reforderid != ''"> and refOrderId like concat('%',#{reforderid},'%') </if>
<if test="refordercode != null and refordercode != ''"> and refOrderCode like concat('%',#{refordercode},'%') </if>
<if test="refordertype != null and refordertype != ''"> and refOrderType like concat('%',#{refordertype},'%') </if>
<if test="closed != null and closed != ''"> and closed like concat('%',#{closed},'%') </if>
<if test="closedby != null and closedby != ''"> and closedBy like concat('%',#{closedby},'%') </if>
<if test="status != null and status != ''"> and status like concat('%',#{status},'%') </if>
<if test="allowoverreceive != null and allowoverreceive != ''"> and allowOverReceive like concat('%',#{allowoverreceive},'%') </if>
<if test="shipfromattentionto != null and shipfromattentionto != ''"> and shipFromAttentionTo like concat('%',#{shipfromattentionto},'%') </if>
<if test="shipfromaddress != null and shipfromaddress != ''"> and shipFromAddress like concat('%',#{shipfromaddress},'%') </if>
<if test="shipfromcountry != null and shipfromcountry != ''"> and shipFromCountry like concat('%',#{shipfromcountry},'%') </if>
<if test="shipfromstate != null and shipfromstate != ''"> and shipFromState like concat('%',#{shipfromstate},'%') </if>
<if test="shipfromcity != null and shipfromcity != ''"> and shipFromCity like concat('%',#{shipfromcity},'%') </if>
<if test="shipfromdistrict != null and shipfromdistrict != ''"> and shipFromDistrict like concat('%',#{shipfromdistrict},'%') </if>
<if test="shipfrompostalcode != null and shipfrompostalcode != ''"> and shipFromPostalCode like concat('%',#{shipfrompostalcode},'%') </if>
<if test="shipfrommobile != null and shipfrommobile != ''"> and shipFromMobile like concat('%',#{shipfrommobile},'%') </if>
<if test="shipfromemail != null and shipfromemail != ''"> and shipFromEmail like concat('%',#{shipfromemail},'%') </if>
<if test="totallines != null and totallines != ''"> and totalLines like concat('%',#{totallines},'%') </if>
<if test="totalqty != null and totalqty != ''"> and totalQty like concat('%',#{totalqty},'%') </if>
<if test="totalamount != null and totalamount != ''"> and totalAmount like concat('%',#{totalamount},'%') </if>
<if test="totalweight != null and totalweight != ''"> and totalWeight like concat('%',#{totalweight},'%') </if>
<if test="totalvolume != null and totalvolume != ''"> and totalVolume like concat('%',#{totalvolume},'%') </if>
<if test="totalvolumeweight != null and totalvolumeweight != ''"> and totalVolumeWeight like concat('%',#{totalvolumeweight},'%') </if>
<if test="totalfulfillamount != null and totalfulfillamount != ''"> and totalFulfillAmount like concat('%',#{totalfulfillamount},'%') </if>
<if test="totalfulfillweight != null and totalfulfillweight != ''"> and totalFulfillWeight like concat('%',#{totalfulfillweight},'%') </if>
<if test="totalfulfillvolume != null and totalfulfillvolume != ''"> and totalFulfillVolume like concat('%',#{totalfulfillvolume},'%') </if>
<if test="totalfulfillvolumeweight != null and totalfulfillvolumeweight != ''"> and totalFulfillVolumeWeight like concat('%',#{totalfulfillvolumeweight},'%') </if>
<if test="totalfulfillqty != null and totalfulfillqty != ''"> and totalFulfillQty like concat('%',#{totalfulfillqty},'%') </if>
<if test="totalcases != null and totalcases != ''"> and totalCases like concat('%',#{totalcases},'%') </if>
<if test="totalcontainers != null and totalcontainers != ''"> and totalContainers like concat('%',#{totalcontainers},'%') </if>
<if test="closeatqty != null and closeatqty != ''"> and closeAtQty like concat('%',#{closeatqty},'%') </if>
<if test="quantityum != null and quantityum != ''"> and quantityUM like concat('%',#{quantityum},'%') </if>
<if test="weightum != null and weightum != ''"> and weightUM like concat('%',#{weightum},'%') </if>
<if test="volumeum != null and volumeum != ''"> and volumeUM like concat('%',#{volumeum},'%') </if>
<if test="checkinfrom != null and checkinfrom != ''"> and checkInFrom like concat('%',#{checkinfrom},'%') </if>
<if test="checkinto != null and checkinto != ''"> and checkInTo like concat('%',#{checkinto},'%') </if>
<if test="closedat != null and closedat != ''"> and closedAt like concat('%',#{closedat},'%') </if>
<if test="sourceplatformcode != null and sourceplatformcode != ''"> and sourcePlatformCode like concat('%',#{sourceplatformcode},'%') </if>
<if test="sourceordercode != null and sourceordercode != ''"> and sourceOrderCode like concat('%',#{sourceordercode},'%') </if>
<if test="created != null and created != ''"> and created like concat('%',#{created},'%') </if>
<if test="createdby != null and createdby != ''"> and createdBy like concat('%',#{createdby},'%') </if>
<if test="lastupdated != null and lastupdated != ''"> and lastUpdated like concat('%',#{lastupdated},'%') </if>
<if test="lastupdatedby != null and lastupdatedby != ''"> and lastUpdatedBy like concat('%',#{lastupdatedby},'%') </if>
<if test="returnwaybillcode != null and returnwaybillcode != ''"> and returnWaybillCode like concat('%',#{returnwaybillcode},'%') </if>
<if test="returncarrier != null and returncarrier != ''"> and returnCarrier like concat('%',#{returncarrier},'%') </if>
<if test="refundedat != null and refundedat != ''"> and refundedAt like concat('%',#{refundedat},'%') </if>
<if test="refundstatus != null and refundstatus != ''"> and refundStatus like concat('%',#{refundstatus},'%') </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="TocofsReturngoodsentity_list_or" resultMap="get-TocofsReturngoodsEntity-result" parameterType = "com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity">
select
<include refid="TocofsReturngoodsEntity_Base_Column_List" />
from tocofs_returngoods
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> or id = #{id} </if>
<if test="clientcode != null and clientcode != ''"> or clientCode = #{clientcode} </if>
<if test="companycode != null and companycode != ''"> or companyCode = #{companycode} </if>
<if test="storecode != null and storecode != ''"> or storeCode = #{storecode} </if>
<if test="facilitycode != null and facilitycode != ''"> or facilityCode = #{facilitycode} </if>
<if test="code != null and code != ''"> or code = #{code} </if>
<if test="internalinstructiontype != null and internalinstructiontype != ''"> or internalInstructionType = #{internalinstructiontype} </if>
<if test="bizchannel != null and bizchannel != ''"> or bizChannel = #{bizchannel} </if>
<if test="reforderid != null and reforderid != ''"> or refOrderId = #{reforderid} </if>
<if test="refordercode != null and refordercode != ''"> or refOrderCode = #{refordercode} </if>
<if test="refordertype != null and refordertype != ''"> or refOrderType = #{refordertype} </if>
<if test="closed != null and closed != ''"> or closed = #{closed} </if>
<if test="closedby != null and closedby != ''"> or closedBy = #{closedby} </if>
<if test="status != null and status != ''"> or status = #{status} </if>
<if test="allowoverreceive != null and allowoverreceive != ''"> or allowOverReceive = #{allowoverreceive} </if>
<if test="shipfromattentionto != null and shipfromattentionto != ''"> or shipFromAttentionTo = #{shipfromattentionto} </if>
<if test="shipfromaddress != null and shipfromaddress != ''"> or shipFromAddress = #{shipfromaddress} </if>
<if test="shipfromcountry != null and shipfromcountry != ''"> or shipFromCountry = #{shipfromcountry} </if>
<if test="shipfromstate != null and shipfromstate != ''"> or shipFromState = #{shipfromstate} </if>
<if test="shipfromcity != null and shipfromcity != ''"> or shipFromCity = #{shipfromcity} </if>
<if test="shipfromdistrict != null and shipfromdistrict != ''"> or shipFromDistrict = #{shipfromdistrict} </if>
<if test="shipfrompostalcode != null and shipfrompostalcode != ''"> or shipFromPostalCode = #{shipfrompostalcode} </if>
<if test="shipfrommobile != null and shipfrommobile != ''"> or shipFromMobile = #{shipfrommobile} </if>
<if test="shipfromemail != null and shipfromemail != ''"> or shipFromEmail = #{shipfromemail} </if>
<if test="totallines != null and totallines != ''"> or totalLines = #{totallines} </if>
<if test="totalqty != null and totalqty != ''"> or totalQty = #{totalqty} </if>
<if test="totalamount != null and totalamount != ''"> or totalAmount = #{totalamount} </if>
<if test="totalweight != null and totalweight != ''"> or totalWeight = #{totalweight} </if>
<if test="totalvolume != null and totalvolume != ''"> or totalVolume = #{totalvolume} </if>
<if test="totalvolumeweight != null and totalvolumeweight != ''"> or totalVolumeWeight = #{totalvolumeweight} </if>
<if test="totalfulfillamount != null and totalfulfillamount != ''"> or totalFulfillAmount = #{totalfulfillamount} </if>
<if test="totalfulfillweight != null and totalfulfillweight != ''"> or totalFulfillWeight = #{totalfulfillweight} </if>
<if test="totalfulfillvolume != null and totalfulfillvolume != ''"> or totalFulfillVolume = #{totalfulfillvolume} </if>
<if test="totalfulfillvolumeweight != null and totalfulfillvolumeweight != ''"> or totalFulfillVolumeWeight = #{totalfulfillvolumeweight} </if>
<if test="totalfulfillqty != null and totalfulfillqty != ''"> or totalFulfillQty = #{totalfulfillqty} </if>
<if test="totalcases != null and totalcases != ''"> or totalCases = #{totalcases} </if>
<if test="totalcontainers != null and totalcontainers != ''"> or totalContainers = #{totalcontainers} </if>
<if test="closeatqty != null and closeatqty != ''"> or closeAtQty = #{closeatqty} </if>
<if test="quantityum != null and quantityum != ''"> or quantityUM = #{quantityum} </if>
<if test="weightum != null and weightum != ''"> or weightUM = #{weightum} </if>
<if test="volumeum != null and volumeum != ''"> or volumeUM = #{volumeum} </if>
<if test="checkinfrom != null and checkinfrom != ''"> or checkInFrom = #{checkinfrom} </if>
<if test="checkinto != null and checkinto != ''"> or checkInTo = #{checkinto} </if>
<if test="closedat != null and closedat != ''"> or closedAt = #{closedat} </if>
<if test="sourceplatformcode != null and sourceplatformcode != ''"> or sourcePlatformCode = #{sourceplatformcode} </if>
<if test="sourceordercode != null and sourceordercode != ''"> or sourceOrderCode = #{sourceordercode} </if>
<if test="created != null and created != ''"> or created = #{created} </if>
<if test="createdby != null and createdby != ''"> or createdBy = #{createdby} </if>
<if test="lastupdated != null and lastupdated != ''"> or lastUpdated = #{lastupdated} </if>
<if test="lastupdatedby != null and lastupdatedby != ''"> or lastUpdatedBy = #{lastupdatedby} </if>
<if test="returnwaybillcode != null and returnwaybillcode != ''"> or returnWaybillCode = #{returnwaybillcode} </if>
<if test="returncarrier != null and returncarrier != ''"> or returnCarrier = #{returncarrier} </if>
<if test="refundedat != null and refundedat != ''"> or refundedAt = #{refundedat} </if>
<if test="refundstatus != null and refundstatus != ''"> or refundStatus = #{refundstatus} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity" keyProperty="id" useGeneratedKeys="true">
insert into tocofs_returngoods(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
<if test="clientcode != null and clientcode != ''"> clientCode , </if>
<if test="companycode != null and companycode != ''"> companyCode , </if>
<if test="storecode != null and storecode != ''"> storeCode , </if>
<if test="facilitycode != null and facilitycode != ''"> facilityCode , </if>
<if test="code != null and code != ''"> code , </if>
<if test="internalinstructiontype != null and internalinstructiontype != ''"> internalInstructionType , </if>
<if test="bizchannel != null and bizchannel != ''"> bizChannel , </if>
<if test="reforderid != null and reforderid != ''"> refOrderId , </if>
<if test="refordercode != null and refordercode != ''"> refOrderCode , </if>
<if test="refordertype != null and refordertype != ''"> refOrderType , </if>
<if test="closed != null and closed != ''"> closed , </if>
<if test="closedby != null and closedby != ''"> closedBy , </if>
<if test="status != null and status != ''"> status , </if>
<if test="allowoverreceive != null and allowoverreceive != ''"> allowOverReceive , </if>
<if test="shipfromattentionto != null and shipfromattentionto != ''"> shipFromAttentionTo , </if>
<if test="shipfromaddress != null and shipfromaddress != ''"> shipFromAddress , </if>
<if test="shipfromcountry != null and shipfromcountry != ''"> shipFromCountry , </if>
<if test="shipfromstate != null and shipfromstate != ''"> shipFromState , </if>
<if test="shipfromcity != null and shipfromcity != ''"> shipFromCity , </if>
<if test="shipfromdistrict != null and shipfromdistrict != ''"> shipFromDistrict , </if>
<if test="shipfrompostalcode != null and shipfrompostalcode != ''"> shipFromPostalCode , </if>
<if test="shipfrommobile != null and shipfrommobile != ''"> shipFromMobile , </if>
<if test="shipfromemail != null and shipfromemail != ''"> shipFromEmail , </if>
<if test="totallines != null and totallines != ''"> totalLines , </if>
<if test="totalqty != null and totalqty != ''"> totalQty , </if>
<if test="totalamount != null and totalamount != ''"> totalAmount , </if>
<if test="totalweight != null and totalweight != ''"> totalWeight , </if>
<if test="totalvolume != null and totalvolume != ''"> totalVolume , </if>
<if test="totalvolumeweight != null and totalvolumeweight != ''"> totalVolumeWeight , </if>
<if test="totalfulfillamount != null and totalfulfillamount != ''"> totalFulfillAmount , </if>
<if test="totalfulfillweight != null and totalfulfillweight != ''"> totalFulfillWeight , </if>
<if test="totalfulfillvolume != null and totalfulfillvolume != ''"> totalFulfillVolume , </if>
<if test="totalfulfillvolumeweight != null and totalfulfillvolumeweight != ''"> totalFulfillVolumeWeight , </if>
<if test="totalfulfillqty != null and totalfulfillqty != ''"> totalFulfillQty , </if>
<if test="totalcases != null and totalcases != ''"> totalCases , </if>
<if test="totalcontainers != null and totalcontainers != ''"> totalContainers , </if>
<if test="closeatqty != null and closeatqty != ''"> closeAtQty , </if>
<if test="quantityum != null and quantityum != ''"> quantityUM , </if>
<if test="weightum != null and weightum != ''"> weightUM , </if>
<if test="volumeum != null and volumeum != ''"> volumeUM , </if>
<if test="checkinfrom != null and checkinfrom != ''"> checkInFrom , </if>
<if test="checkinto != null and checkinto != ''"> checkInTo , </if>
<if test="closedat != null and closedat != ''"> closedAt , </if>
<if test="sourceplatformcode != null and sourceplatformcode != ''"> sourcePlatformCode , </if>
<if test="sourceordercode != null and sourceordercode != ''"> sourceOrderCode , </if>
<if test="created != null and created != ''"> created , </if>
<if test="createdby != null and createdby != ''"> createdBy , </if>
<if test="lastupdated != null and lastupdated != ''"> lastUpdated , </if>
<if test="lastupdatedby != null and lastupdatedby != ''"> lastUpdatedBy , </if>
<if test="returnwaybillcode != null and returnwaybillcode != ''"> returnWaybillCode , </if>
<if test="returncarrier != null and returncarrier != ''"> returnCarrier , </if>
<if test="refundedat != null and refundedat != ''"> refundedAt , </if>
<if test="refundstatus != null and refundstatus != ''"> refundStatus , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> #{id} ,</if>
<if test="clientcode != null and clientcode != ''"> #{clientcode} ,</if>
<if test="companycode != null and companycode != ''"> #{companycode} ,</if>
<if test="storecode != null and storecode != ''"> #{storecode} ,</if>
<if test="facilitycode != null and facilitycode != ''"> #{facilitycode} ,</if>
<if test="code != null and code != ''"> #{code} ,</if>
<if test="internalinstructiontype != null and internalinstructiontype != ''"> #{internalinstructiontype} ,</if>
<if test="bizchannel != null and bizchannel != ''"> #{bizchannel} ,</if>
<if test="reforderid != null and reforderid != ''"> #{reforderid} ,</if>
<if test="refordercode != null and refordercode != ''"> #{refordercode} ,</if>
<if test="refordertype != null and refordertype != ''"> #{refordertype} ,</if>
<if test="closed != null and closed != ''"> #{closed} ,</if>
<if test="closedby != null and closedby != ''"> #{closedby} ,</if>
<if test="status != null and status != ''"> #{status} ,</if>
<if test="allowoverreceive != null and allowoverreceive != ''"> #{allowoverreceive} ,</if>
<if test="shipfromattentionto != null and shipfromattentionto != ''"> #{shipfromattentionto} ,</if>
<if test="shipfromaddress != null and shipfromaddress != ''"> #{shipfromaddress} ,</if>
<if test="shipfromcountry != null and shipfromcountry != ''"> #{shipfromcountry} ,</if>
<if test="shipfromstate != null and shipfromstate != ''"> #{shipfromstate} ,</if>
<if test="shipfromcity != null and shipfromcity != ''"> #{shipfromcity} ,</if>
<if test="shipfromdistrict != null and shipfromdistrict != ''"> #{shipfromdistrict} ,</if>
<if test="shipfrompostalcode != null and shipfrompostalcode != ''"> #{shipfrompostalcode} ,</if>
<if test="shipfrommobile != null and shipfrommobile != ''"> #{shipfrommobile} ,</if>
<if test="shipfromemail != null and shipfromemail != ''"> #{shipfromemail} ,</if>
<if test="totallines != null and totallines != ''"> #{totallines} ,</if>
<if test="totalqty != null and totalqty != ''"> #{totalqty} ,</if>
<if test="totalamount != null and totalamount != ''"> #{totalamount} ,</if>
<if test="totalweight != null and totalweight != ''"> #{totalweight} ,</if>
<if test="totalvolume != null and totalvolume != ''"> #{totalvolume} ,</if>
<if test="totalvolumeweight != null and totalvolumeweight != ''"> #{totalvolumeweight} ,</if>
<if test="totalfulfillamount != null and totalfulfillamount != ''"> #{totalfulfillamount} ,</if>
<if test="totalfulfillweight != null and totalfulfillweight != ''"> #{totalfulfillweight} ,</if>
<if test="totalfulfillvolume != null and totalfulfillvolume != ''"> #{totalfulfillvolume} ,</if>
<if test="totalfulfillvolumeweight != null and totalfulfillvolumeweight != ''"> #{totalfulfillvolumeweight} ,</if>
<if test="totalfulfillqty != null and totalfulfillqty != ''"> #{totalfulfillqty} ,</if>
<if test="totalcases != null and totalcases != ''"> #{totalcases} ,</if>
<if test="totalcontainers != null and totalcontainers != ''"> #{totalcontainers} ,</if>
<if test="closeatqty != null and closeatqty != ''"> #{closeatqty} ,</if>
<if test="quantityum != null and quantityum != ''"> #{quantityum} ,</if>
<if test="weightum != null and weightum != ''"> #{weightum} ,</if>
<if test="volumeum != null and volumeum != ''"> #{volumeum} ,</if>
<if test="checkinfrom != null and checkinfrom != ''"> #{checkinfrom} ,</if>
<if test="checkinto != null and checkinto != ''"> #{checkinto} ,</if>
<if test="closedat != null and closedat != ''"> #{closedat} ,</if>
<if test="sourceplatformcode != null and sourceplatformcode != ''"> #{sourceplatformcode} ,</if>
<if test="sourceordercode != null and sourceordercode != ''"> #{sourceordercode} ,</if>
<if test="created != null and created != ''"> #{created} ,</if>
<if test="createdby != null and createdby != ''"> #{createdby} ,</if>
<if test="lastupdated != null and lastupdated != ''"> #{lastupdated} ,</if>
<if test="lastupdatedby != null and lastupdatedby != ''"> #{lastupdatedby} ,</if>
<if test="returnwaybillcode != null and returnwaybillcode != ''"> #{returnwaybillcode} ,</if>
<if test="returncarrier != null and returncarrier != ''"> #{returncarrier} ,</if>
<if test="refundedat != null and refundedat != ''"> #{refundedat} ,</if>
<if test="refundstatus != null and refundstatus != ''"> #{refundstatus} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from tocofs_returngoods a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tocofs_returngoods(clientCode, companyCode, storeCode, facilityCode, code, internalInstructionType, bizChannel, refOrderId, refOrderCode, refOrderType, closed, closedBy, status, allowOverReceive, shipFromAttentionTo, shipFromAddress, shipFromCountry, shipFromState, shipFromCity, shipFromDistrict, shipFromPostalCode, shipFromMobile, shipFromEmail, totalLines, totalQty, totalAmount, totalWeight, totalVolume, totalVolumeWeight, totalFulfillAmount, totalFulfillWeight, totalFulfillVolume, totalFulfillVolumeWeight, totalFulfillQty, totalCases, totalContainers, closeAtQty, quantityUM, weightUM, volumeUM, checkInFrom, checkInTo, closedAt, sourcePlatformCode, sourceOrderCode, created, createdBy, lastUpdated, lastUpdatedBy, returnWaybillCode, returnCarrier, refundedAt, refundStatus, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.clientcode},#{entity.companycode},#{entity.storecode},#{entity.facilitycode},#{entity.code},#{entity.internalinstructiontype},#{entity.bizchannel},#{entity.reforderid},#{entity.refordercode},#{entity.refordertype},#{entity.closed},#{entity.closedby},#{entity.status},#{entity.allowoverreceive},#{entity.shipfromattentionto},#{entity.shipfromaddress},#{entity.shipfromcountry},#{entity.shipfromstate},#{entity.shipfromcity},#{entity.shipfromdistrict},#{entity.shipfrompostalcode},#{entity.shipfrommobile},#{entity.shipfromemail},#{entity.totallines},#{entity.totalqty},#{entity.totalamount},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.totalfulfillamount},#{entity.totalfulfillweight},#{entity.totalfulfillvolume},#{entity.totalfulfillvolumeweight},#{entity.totalfulfillqty},#{entity.totalcases},#{entity.totalcontainers},#{entity.closeatqty},#{entity.quantityum},#{entity.weightum},#{entity.volumeum},#{entity.checkinfrom},#{entity.checkinto},#{entity.closedat},#{entity.sourceplatformcode},#{entity.sourceordercode},#{entity.created},#{entity.createdby},#{entity.lastupdated},#{entity.lastupdatedby},#{entity.returnwaybillcode},#{entity.returncarrier},#{entity.refundedat},#{entity.refundstatus}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into tocofs_returngoods(id,clientCode, companyCode, storeCode, facilityCode, code, internalInstructionType, bizChannel, refOrderId, refOrderCode, refOrderType, closed, closedBy, status, allowOverReceive, shipFromAttentionTo, shipFromAddress, shipFromCountry, shipFromState, shipFromCity, shipFromDistrict, shipFromPostalCode, shipFromMobile, shipFromEmail, totalLines, totalQty, totalAmount, totalWeight, totalVolume, totalVolumeWeight, totalFulfillAmount, totalFulfillWeight, totalFulfillVolume, totalFulfillVolumeWeight, totalFulfillQty, totalCases, totalContainers, closeAtQty, quantityUM, weightUM, volumeUM, checkInFrom, checkInTo, closedAt, sourcePlatformCode, sourceOrderCode, created, createdBy, lastUpdated, lastUpdatedBy, returnWaybillCode, returnCarrier, refundedAt, refundStatus)
values
<foreach collection="list" item="entity" separator=",">
(#{entity.id},#{entity.clientcode},#{entity.companycode},#{entity.storecode},#{entity.facilitycode},#{entity.code},#{entity.internalinstructiontype},#{entity.bizchannel},#{entity.reforderid},#{entity.refordercode},#{entity.refordertype},#{entity.closed},#{entity.closedby},#{entity.status},#{entity.allowoverreceive},#{entity.shipfromattentionto},#{entity.shipfromaddress},#{entity.shipfromcountry},#{entity.shipfromstate},#{entity.shipfromcity},#{entity.shipfromdistrict},#{entity.shipfrompostalcode},#{entity.shipfrommobile},#{entity.shipfromemail},#{entity.totallines},#{entity.totalqty},#{entity.totalamount},#{entity.totalweight},#{entity.totalvolume},#{entity.totalvolumeweight},#{entity.totalfulfillamount},#{entity.totalfulfillweight},#{entity.totalfulfillvolume},#{entity.totalfulfillvolumeweight},#{entity.totalfulfillqty},#{entity.totalcases},#{entity.totalcontainers},#{entity.closeatqty},#{entity.quantityum},#{entity.weightum},#{entity.volumeum},#{entity.checkinfrom},#{entity.checkinto},#{entity.closedat},#{entity.sourceplatformcode},#{entity.sourceordercode},#{entity.created},#{entity.createdby},#{entity.lastupdated},#{entity.lastupdatedby},#{entity.returnwaybillcode},#{entity.returncarrier},#{entity.refundedat},#{entity.refundstatus})
</foreach>
on duplicate key update
id = values(id),
clientCode = values(clientCode),
companyCode = values(companyCode),
storeCode = values(storeCode),
facilityCode = values(facilityCode),
code = values(code),
internalInstructionType = values(internalInstructionType),
bizChannel = values(bizChannel),
refOrderId = values(refOrderId),
refOrderCode = values(refOrderCode),
refOrderType = values(refOrderType),
closed = values(closed),
closedBy = values(closedBy),
status = values(status),
allowOverReceive = values(allowOverReceive),
shipFromAttentionTo = values(shipFromAttentionTo),
shipFromAddress = values(shipFromAddress),
shipFromCountry = values(shipFromCountry),
shipFromState = values(shipFromState),
shipFromCity = values(shipFromCity),
shipFromDistrict = values(shipFromDistrict),
shipFromPostalCode = values(shipFromPostalCode),
shipFromMobile = values(shipFromMobile),
shipFromEmail = values(shipFromEmail),
totalLines = values(totalLines),
totalQty = values(totalQty),
totalAmount = values(totalAmount),
totalWeight = values(totalWeight),
totalVolume = values(totalVolume),
totalVolumeWeight = values(totalVolumeWeight),
totalFulfillAmount = values(totalFulfillAmount),
totalFulfillWeight = values(totalFulfillWeight),
totalFulfillVolume = values(totalFulfillVolume),
totalFulfillVolumeWeight = values(totalFulfillVolumeWeight),
totalFulfillQty = values(totalFulfillQty),
totalCases = values(totalCases),
totalContainers = values(totalContainers),
closeAtQty = values(closeAtQty),
quantityUM = values(quantityUM),
weightUM = values(weightUM),
volumeUM = values(volumeUM),
checkInFrom = values(checkInFrom),
checkInTo = values(checkInTo),
closedAt = values(closedAt),
sourcePlatformCode = values(sourcePlatformCode),
sourceOrderCode = values(sourceOrderCode),
created = values(created),
createdBy = values(createdBy),
lastUpdated = values(lastUpdated),
lastUpdatedBy = values(lastUpdatedBy),
returnWaybillCode = values(returnWaybillCode),
returnCarrier = values(returnCarrier),
refundedAt = values(refundedAt),
refundStatus = values(refundStatus)
</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity" >
update tocofs_returngoods set
<trim suffix="" suffixOverrides=",">
<if test="clientcode != null and clientcode != ''"> clientCode = #{clientcode},</if>
<if test="companycode != null and companycode != ''"> companyCode = #{companycode},</if>
<if test="storecode != null and storecode != ''"> storeCode = #{storecode},</if>
<if test="facilitycode != null and facilitycode != ''"> facilityCode = #{facilitycode},</if>
<if test="code != null and code != ''"> code = #{code},</if>
<if test="internalinstructiontype != null and internalinstructiontype != ''"> internalInstructionType = #{internalinstructiontype},</if>
<if test="bizchannel != null and bizchannel != ''"> bizChannel = #{bizchannel},</if>
<if test="reforderid != null and reforderid != ''"> refOrderId = #{reforderid},</if>
<if test="refordercode != null and refordercode != ''"> refOrderCode = #{refordercode},</if>
<if test="refordertype != null and refordertype != ''"> refOrderType = #{refordertype},</if>
<if test="closed != null and closed != ''"> closed = #{closed},</if>
<if test="closedby != null and closedby != ''"> closedBy = #{closedby},</if>
<if test="status != null and status != ''"> status = #{status},</if>
<if test="allowoverreceive != null and allowoverreceive != ''"> allowOverReceive = #{allowoverreceive},</if>
<if test="shipfromattentionto != null and shipfromattentionto != ''"> shipFromAttentionTo = #{shipfromattentionto},</if>
<if test="shipfromaddress != null and shipfromaddress != ''"> shipFromAddress = #{shipfromaddress},</if>
<if test="shipfromcountry != null and shipfromcountry != ''"> shipFromCountry = #{shipfromcountry},</if>
<if test="shipfromstate != null and shipfromstate != ''"> shipFromState = #{shipfromstate},</if>
<if test="shipfromcity != null and shipfromcity != ''"> shipFromCity = #{shipfromcity},</if>
<if test="shipfromdistrict != null and shipfromdistrict != ''"> shipFromDistrict = #{shipfromdistrict},</if>
<if test="shipfrompostalcode != null and shipfrompostalcode != ''"> shipFromPostalCode = #{shipfrompostalcode},</if>
<if test="shipfrommobile != null and shipfrommobile != ''"> shipFromMobile = #{shipfrommobile},</if>
<if test="shipfromemail != null and shipfromemail != ''"> shipFromEmail = #{shipfromemail},</if>
<if test="totallines != null and totallines != ''"> totalLines = #{totallines},</if>
<if test="totalqty != null and totalqty != ''"> totalQty = #{totalqty},</if>
<if test="totalamount != null and totalamount != ''"> totalAmount = #{totalamount},</if>
<if test="totalweight != null and totalweight != ''"> totalWeight = #{totalweight},</if>
<if test="totalvolume != null and totalvolume != ''"> totalVolume = #{totalvolume},</if>
<if test="totalvolumeweight != null and totalvolumeweight != ''"> totalVolumeWeight = #{totalvolumeweight},</if>
<if test="totalfulfillamount != null and totalfulfillamount != ''"> totalFulfillAmount = #{totalfulfillamount},</if>
<if test="totalfulfillweight != null and totalfulfillweight != ''"> totalFulfillWeight = #{totalfulfillweight},</if>
<if test="totalfulfillvolume != null and totalfulfillvolume != ''"> totalFulfillVolume = #{totalfulfillvolume},</if>
<if test="totalfulfillvolumeweight != null and totalfulfillvolumeweight != ''"> totalFulfillVolumeWeight = #{totalfulfillvolumeweight},</if>
<if test="totalfulfillqty != null and totalfulfillqty != ''"> totalFulfillQty = #{totalfulfillqty},</if>
<if test="totalcases != null and totalcases != ''"> totalCases = #{totalcases},</if>
<if test="totalcontainers != null and totalcontainers != ''"> totalContainers = #{totalcontainers},</if>
<if test="closeatqty != null and closeatqty != ''"> closeAtQty = #{closeatqty},</if>
<if test="quantityum != null and quantityum != ''"> quantityUM = #{quantityum},</if>
<if test="weightum != null and weightum != ''"> weightUM = #{weightum},</if>
<if test="volumeum != null and volumeum != ''"> volumeUM = #{volumeum},</if>
<if test="checkinfrom != null and checkinfrom != ''"> checkInFrom = #{checkinfrom},</if>
<if test="checkinto != null and checkinto != ''"> checkInTo = #{checkinto},</if>
<if test="closedat != null and closedat != ''"> closedAt = #{closedat},</if>
<if test="sourceplatformcode != null and sourceplatformcode != ''"> sourcePlatformCode = #{sourceplatformcode},</if>
<if test="sourceordercode != null and sourceordercode != ''"> sourceOrderCode = #{sourceordercode},</if>
<if test="created != null and created != ''"> created = #{created},</if>
<if test="createdby != null and createdby != ''"> createdBy = #{createdby},</if>
<if test="lastupdated != null and lastupdated != ''"> lastUpdated = #{lastupdated},</if>
<if test="lastupdatedby != null and lastupdatedby != ''"> lastUpdatedBy = #{lastupdatedby},</if>
<if test="returnwaybillcode != null and returnwaybillcode != ''"> returnWaybillCode = #{returnwaybillcode},</if>
<if test="returncarrier != null and returncarrier != ''"> returnCarrier = #{returncarrier},</if>
<if test="refundedat != null and refundedat != ''"> refundedAt = #{refundedat},</if>
<if test="refundstatus != null and refundstatus != ''"> refundStatus = #{refundstatus},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity" >
update tocofs_returngoods set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity" >
update tocofs_returngoods set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''"> and id = #{id} </if>
<if test="clientcode != null and clientcode != ''"> and clientCode = #{clientcode} </if>
<if test="companycode != null and companycode != ''"> and companyCode = #{companycode} </if>
<if test="storecode != null and storecode != ''"> and storeCode = #{storecode} </if>
<if test="facilitycode != null and facilitycode != ''"> and facilityCode = #{facilitycode} </if>
<if test="code != null and code != ''"> and code = #{code} </if>
<if test="internalinstructiontype != null and internalinstructiontype != ''"> and internalInstructionType = #{internalinstructiontype} </if>
<if test="bizchannel != null and bizchannel != ''"> and bizChannel = #{bizchannel} </if>
<if test="reforderid != null and reforderid != ''"> and refOrderId = #{reforderid} </if>
<if test="refordercode != null and refordercode != ''"> and refOrderCode = #{refordercode} </if>
<if test="refordertype != null and refordertype != ''"> and refOrderType = #{refordertype} </if>
<if test="closed != null and closed != ''"> and closed = #{closed} </if>
<if test="closedby != null and closedby != ''"> and closedBy = #{closedby} </if>
<if test="status != null and status != ''"> and status = #{status} </if>
<if test="allowoverreceive != null and allowoverreceive != ''"> and allowOverReceive = #{allowoverreceive} </if>
<if test="shipfromattentionto != null and shipfromattentionto != ''"> and shipFromAttentionTo = #{shipfromattentionto} </if>
<if test="shipfromaddress != null and shipfromaddress != ''"> and shipFromAddress = #{shipfromaddress} </if>
<if test="shipfromcountry != null and shipfromcountry != ''"> and shipFromCountry = #{shipfromcountry} </if>
<if test="shipfromstate != null and shipfromstate != ''"> and shipFromState = #{shipfromstate} </if>
<if test="shipfromcity != null and shipfromcity != ''"> and shipFromCity = #{shipfromcity} </if>
<if test="shipfromdistrict != null and shipfromdistrict != ''"> and shipFromDistrict = #{shipfromdistrict} </if>
<if test="shipfrompostalcode != null and shipfrompostalcode != ''"> and shipFromPostalCode = #{shipfrompostalcode} </if>
<if test="shipfrommobile != null and shipfrommobile != ''"> and shipFromMobile = #{shipfrommobile} </if>
<if test="shipfromemail != null and shipfromemail != ''"> and shipFromEmail = #{shipfromemail} </if>
<if test="totallines != null and totallines != ''"> and totalLines = #{totallines} </if>
<if test="totalqty != null and totalqty != ''"> and totalQty = #{totalqty} </if>
<if test="totalamount != null and totalamount != ''"> and totalAmount = #{totalamount} </if>
<if test="totalweight != null and totalweight != ''"> and totalWeight = #{totalweight} </if>
<if test="totalvolume != null and totalvolume != ''"> and totalVolume = #{totalvolume} </if>
<if test="totalvolumeweight != null and totalvolumeweight != ''"> and totalVolumeWeight = #{totalvolumeweight} </if>
<if test="totalfulfillamount != null and totalfulfillamount != ''"> and totalFulfillAmount = #{totalfulfillamount} </if>
<if test="totalfulfillweight != null and totalfulfillweight != ''"> and totalFulfillWeight = #{totalfulfillweight} </if>
<if test="totalfulfillvolume != null and totalfulfillvolume != ''"> and totalFulfillVolume = #{totalfulfillvolume} </if>
<if test="totalfulfillvolumeweight != null and totalfulfillvolumeweight != ''"> and totalFulfillVolumeWeight = #{totalfulfillvolumeweight} </if>
<if test="totalfulfillqty != null and totalfulfillqty != ''"> and totalFulfillQty = #{totalfulfillqty} </if>
<if test="totalcases != null and totalcases != ''"> and totalCases = #{totalcases} </if>
<if test="totalcontainers != null and totalcontainers != ''"> and totalContainers = #{totalcontainers} </if>
<if test="closeatqty != null and closeatqty != ''"> and closeAtQty = #{closeatqty} </if>
<if test="quantityum != null and quantityum != ''"> and quantityUM = #{quantityum} </if>
<if test="weightum != null and weightum != ''"> and weightUM = #{weightum} </if>
<if test="volumeum != null and volumeum != ''"> and volumeUM = #{volumeum} </if>
<if test="checkinfrom != null and checkinfrom != ''"> and checkInFrom = #{checkinfrom} </if>
<if test="checkinto != null and checkinto != ''"> and checkInTo = #{checkinto} </if>
<if test="closedat != null and closedat != ''"> and closedAt = #{closedat} </if>
<if test="sourceplatformcode != null and sourceplatformcode != ''"> and sourcePlatformCode = #{sourceplatformcode} </if>
<if test="sourceordercode != null and sourceordercode != ''"> and sourceOrderCode = #{sourceordercode} </if>
<if test="created != null and created != ''"> and created = #{created} </if>
<if test="createdby != null and createdby != ''"> and createdBy = #{createdby} </if>
<if test="lastupdated != null and lastupdated != ''"> and lastUpdated = #{lastupdated} </if>
<if test="lastupdatedby != null and lastupdatedby != ''"> and lastUpdatedBy = #{lastupdatedby} </if>
<if test="returnwaybillcode != null and returnwaybillcode != ''"> and returnWaybillCode = #{returnwaybillcode} </if>
<if test="returncarrier != null and returncarrier != ''"> and returnCarrier = #{returncarrier} </if>
<if test="refundedat != null and refundedat != ''"> and refundedAt = #{refundedat} </if>
<if test="refundstatus != null and refundstatus != ''"> and refundStatus = #{refundstatus} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from tocofs_returngoods where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,403 @@
package com.hzya.frame.report.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* O出库单明细表(TOCTOB业务底表)(TocofsSaleoutDetailed)实体类
*
* @author makejava
* @since 2024-09-04 17:48:28
*/
//@Data
//2024年9月5日 11:00:32 抛出异常There is no getter for property named 'primaryKey' in 'class com.hzya.frame.plugin.lets.ofs.entity.TocofsSaleoutDetailedEntity'
//2024年9月5日 11:05:13 没用不是@data这里的问题
@Data
public class TocofsSaleoutDetailedEntity extends BaseEntity {
/**
* LETS
*/
private String clientcode;
/**
* COMPANY2022062200000002
*/
private String companycode;
/**
* FACILITY2022042800000005
*/
private String facilitycode;
/**
* LETS-SH2024032700000002
*/
private String shipmentcode;
/**
* 22814582 主键
*/
private Long reforderid;
/**
* 54604811
*/
private Long reforderdetailid;
/**
* LETS-SO2024031900000002
*/
private String refordercode;
/**
* 30766
*/
private Long allocinvid;
/**
* 6973391732215
*/
private String skucode;
/**
* INTOYOU心慕与你莓飞色雾四色眼影#02
*/
private String skuname;
/**
* LETS-SO2024031900000002
*/
private String sourceordercode;
private String sourcelinenum;
/**
* AVAILABLE
*/
private String inventorysts;
/**
* 0
*/
private Long isgift;
/**
* 10
*/
private Long requestqty;
/**
* 0
*/
private Long shipqty;
private String shipat;
/**
* EA
*/
private String quantityum;
/**
* 64
*/
private Long listprice;
/**
* 640
*/
private Long itemtotalamount;
/**
* 640
*/
private Long totalpayamount;
/**
* 0
*/
private Long totalweight;
/**
* 0
*/
private Long totalvolume;
/**
* 0
*/
private Long totalvolumeweight;
/**
* G
*/
private String weightum;
/**
* CM3
*/
private String volumeum;
/**
* 2024-03-27 12:03:59
*/
private String created;
/**
* LETS-ADMIN
*/
private String createdby;
/**
* 2024-03-27 12:03:59
*/
private String lastupdated;
/**
* LETS-ADMIN
*/
private String lastupdatedby;
/**
* 主表主键
*/
private String maintableid;
/**
* (销售)推送时间
*/
private String newpushdate;
/**
* (销售)报错详情
*/
private String newtransmitinfo;
/**
* (销售)出库同步是否成功
*/
private String newstate;
/**
* (销售)交易成功()是否成功
*/
private String newstate2;
/**
* (销售)交易成功()是否成功
*/
private String newstate3;
/**
* (销售)交易成功(TOB发票)是否成功
*/
private String newstate4;
/**
* (销售)下游系统编码(库存)
*/
private String newsystemnumber;
/**
* (销售)下游系统主键(库存)
*/
private String newsystemprimary;
/**
* (销售)下游系统编码(交易成功红)
*/
private String newsystemnumber2;
/**
* (销售)下游系统主键(交易成功红)
*/
private String newsystemprimary2;
/**
* (销售)下游系统编码(交易成功蓝)
*/
private String newsystemnumber3;
/**
* (销售)下游系统主键(交易成功蓝)
*/
private String newsystemprimary3;
/**
* (销售)下游系统编码(交易成功TOB发票)
*/
private String newsystemnumber4;
/**
* (销售)下游系统主键(交易成功TOB发票)
*/
private String newsystemprimary4;
/**
* (销售)业务日期-出库日期
*/
private String businessdate;
/**
* (销售)业务日期-交易日期
*/
private String successfultradedate;
/**
* (销售)业务发生类型
*/
private String businesstype;
/**
* 自定义项
*/
private String def1;
/**
* 自定义项
*/
private String def2;
/**
* 自定义项
*/
private String def3;
/**
* 自定义项
*/
private String def4;
/**
* 自定义项
*/
private String def5;
/**
* 自定义项
*/
private String def6;
/**
* 自定义项
*/
private String def7;
/**
* 自定义项
*/
private String def8;
/**
* 自定义项
*/
private String def9;
/**
* 自定义项
*/
private String def10;
/**
* 自定义项
*/
private String def11;
/**
* 自定义项
*/
private String def12;
/**
* 自定义项
*/
private String def13;
/**
* 自定义项
*/
private String def14;
/**
* 自定义项
*/
private String def15;
/**
* 自定义项
*/
private String def16;
/**
* 自定义项
*/
private String def17;
/**
* 自定义项
*/
private String def18;
/**
* 自定义项
*/
private String def19;
/**
* 自定义项
*/
private String def20;
/**
* 自定义项
*/
private String def21;
/**
* 自定义项
*/
private String def22;
/**
* 自定义项
*/
private String def23;
/**
* 自定义项
*/
private String def24;
/**
* 自定义项
*/
private String def25;
/**
* 自定义项
*/
private String def26;
/**
* 自定义项
*/
private String def27;
/**
* 自定义项
*/
private String def28;
/**
* 自定义项
*/
private String def29;
/**
* 自定义项
*/
private String def30;
/**
* 自定义项
*/
private String def31;
/**
* 自定义项
*/
private String def32;
/**
* 自定义项
*/
private String def33;
/**
* 自定义项
*/
private String def34;
/**
* 自定义项
*/
private String def35;
/**
* 自定义项
*/
private String def36;
/**
* 自定义项
*/
private String def37;
/**
* 自定义项
*/
private String def38;
/**
* 自定义项
*/
private String def39;
/**
* 自定义项
*/
private String def40;
/**
* 额外参数查询条件
*/
private String ids;
/**
* 出库查询开始时间
*/
private String businessdate_start;
/**
* 出库查询结束时间
*/
private String businessdate_end;
/**
* 交易成功开始时间
*/
private String successfultradedate_start;
/**
* 交易成功结束失败
*/
private String successfultradedate_end;
/**
* 货主编码
*/
private String headCompanyCode;
/**
* 仓库编码
*/
private String headFacilityCode;
/**
* 平台编码
*/
private String headSourcePlatformCode;
/**
* 店铺编码
*/
private String headStoreCode;
}

View File

@ -0,0 +1,410 @@
package com.hzya.frame.report.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* O出库单表头(TOCTOB业务底表)(TocofsSaleout)实体类
*
* @author makejava
* @since 2024-09-04 17:48:16
*/
@Data
public class TocofsSaleoutEntity extends BaseEntity {
/**
* LETS
*/
private String clientcode;
/**
* LETS
*/
private String companycode;
/**
* hzz
*/
private String storecode;
/**
* hzz-xs
*/
private String facilitycode;
/**
* LETS-SH2024032700000002
*/
private String code;
/**
* 22814582
*/
private Long reforderid;
/**
* LETS-SO2024031900000002
*/
private String refordercode;
/**
* SALES
*/
private String refordertype;
/**
* 510
*/
private Long status;
/**
* 0
*/
private Long consolidated;
/**
* SALES
*/
private String internalinstructiontype;
/**
* B2C
*/
private String bizchannel;
/**
* OFS
*/
private String sourceplatformcode;
/**
* NORMAL
*/
private String processtype;
/**
* 0
*/
private Long sourceorderid;
/**
* LETS-SO2024031900000002
*/
private String sourceordercode;
/**
*
*/
private String shiptoattentionto;
/**
* TB
*/
private String sourceuseraccount;
/**
* AAA
*/
private String shiptoaddress;
/**
* 中国
*/
private String shiptocountry;
/**
* 950648
*/
private String shiptostate;
/**
* 950649
*/
private String shiptocity;
/**
* 950711
*/
private String shiptodistrict;
/**
* 13909091212
*/
private String shiptomobile;
/**
* 1
*/
private Long totallines;
/**
* 10
*/
private Long totalqty;
/**
* 0
*/
private Long totalcontainers;
/**
* 0
*/
private Long totalcases;
/**
* 0
*/
private Long totalweight;
/**
* 0
*/
private Long totalvolume;
/**
* 0
*/
private Long totalvolumeweight;
/**
* G
*/
private String weightum;
/**
* CM3
*/
private String volumeum;
/**
* 640
*/
private Long totalamount;
/**
* 640
*/
private Long totalpayamount;
/**
* 0
*/
private Long postageamount;
/**
* 640
*/
private Long itemtotalamount;
private String totalfulfillqty;
private String totalfulfillweight;
private String totalfulfillvolume;
private String totalfulfillvolumeweight;
/**
* 发货日期
*/
private String shipat;
/**
* ZTO
*/
private String carriercode;
private String primarywaybillcode;
/**
* 1
*/
private Long paymentstatus;
/**
* 0
*/
private String codrequired;
/**
* 0
*/
private String invoicerequired;
/**
* 2024-03-19 17:08:14
*/
private String paidat;
private String shipfromattentionto;
private String shipfromaddress;
/**
* 萧山区
*/
private String shipfromdistrict;
/**
* 杭州市
*/
private String shipfromcity;
/**
* 浙江省
*/
private String shipfromstate;
/**
* 中国
*/
private String shipfromcountry;
private String shipfrompostalcode;
private String shipfromphone;
private String shipfrommobile;
private String shipfromfax;
private String shipfromemail;
/**
* 0
*/
private Long codamount;
/**
* 0
*/
private Long tax;
/**
* 1
*/
private Long taxpaid;
/**
* 交易成功时间
*/
private String tradesuccessat;
/**
* 交易成功状态
*/
private String sourceorderstatus;
/**
* 上海市
*/
private String shiptostatename;
/**
* 上海市
*/
private String shiptocityname;
/**
* 杨浦区
*/
private String shiptodistrictname;
/**
* 出库类型
*/
private String shipmenttype;
/**
* 自定义项
*/
private String def1;
/**
* 自定义项
*/
private String def2;
/**
* 自定义项
*/
private String def3;
/**
* 自定义项
*/
private String def4;
/**
* 自定义项
*/
private String def5;
/**
* 自定义项
*/
private String def6;
/**
* 自定义项
*/
private String def7;
/**
* 自定义项
*/
private String def8;
/**
* 自定义项
*/
private String def9;
/**
* 自定义项
*/
private String def10;
/**
* 自定义项
*/
private String def11;
/**
* 自定义项
*/
private String def12;
/**
* 自定义项
*/
private String def13;
/**
* 自定义项
*/
private String def14;
/**
* 自定义项
*/
private String def15;
/**
* 自定义项
*/
private String def16;
/**
* 自定义项
*/
private String def17;
/**
* 自定义项
*/
private String def18;
/**
* 自定义项
*/
private String def19;
/**
* 自定义项
*/
private String def20;
/**
* 自定义项
*/
private String def21;
/**
* 自定义项
*/
private String def22;
/**
* 自定义项
*/
private String def23;
/**
* 自定义项
*/
private String def24;
/**
* 自定义项
*/
private String def25;
/**
* 自定义项
*/
private String def26;
/**
* 自定义项
*/
private String def27;
/**
* 自定义项
*/
private String def28;
/**
* 自定义项
*/
private String def29;
/**
* 自定义项
*/
private String def30;
/**
* 自定义项
*/
private String def31;
/**
* 自定义项
*/
private String def32;
/**
* 自定义项
*/
private String def33;
/**
* 自定义项
*/
private String def34;
/**
* 自定义项
*/
private String def35;
/**
* 自定义项
*/
private String def36;
/**
* 自定义项
*/
private String def37;
/**
* 自定义项
*/
private String def38;
/**
* 自定义项
*/
private String def39;
/**
* 自定义项
*/
private String def40;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
package com.hzya.frame.report.lets.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity;
/**
* root(TocofsReturngoodsDetailed)表服务接口
*
* @author makejava
* @since 2024-08-09 13:45:47
*/
public interface ITocofsReturngoodsDetailedService extends IBaseService<TocofsReturngoodsDetailedEntity, String> {
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.report.lets.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity;
/**
* OFS售后入库单(TocofsReturngoods)表服务接口
*
* @author makejava
* @since 2024-08-09 11:08:40
*/
public interface ITocofsReturngoodsService extends IBaseService<TocofsReturngoodsEntity, String> {
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.report.lets.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity;
/**
* tocofs_saleout_detailed(TocofsSaleoutDetailed)表服务接口
*
* @author makejava
* @since 2024-08-01 17:01:53
*/
public interface ITocofsSaleoutDetailedService extends IBaseService<TocofsSaleoutDetailedEntity, String> {
}

View File

@ -0,0 +1,21 @@
package com.hzya.frame.report.lets.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.report.lets.entity.TocofsSaleoutEntity;
import com.hzya.frame.web.entity.JsonResultEntity;
/**
* root(TocofsSaleout)表服务接口
*
* @author makejava
* @since 2024-08-01 17:01:32
*/
public interface ITocofsSaleoutService extends IBaseService<TocofsSaleoutEntity, String> {
/**
* 查询TOCTOB销售正向流程报表数据
*
* @author liuyang
*/
JsonResultEntity queryToCSalesReport(JSONObject jsonObject) throws Exception;
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.report.lets.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.report.lets.dao.ITocofsReturngoodsDetailedDao;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsDetailedEntity;
import com.hzya.frame.report.lets.service.ITocofsReturngoodsDetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* root(TocofsReturngoodsDetailed)表服务实现类
*
* @author makejava
* @since 2024-08-09 13:45:47
*/
@Service(value = "tocofsReturngoodsDetailedServiceImplReport")
public class TocofsReturngoodsDetailedServiceImpl extends BaseService<TocofsReturngoodsDetailedEntity, String> implements ITocofsReturngoodsDetailedService {
private ITocofsReturngoodsDetailedDao tocofsReturngoodsDetailedDao;
@Autowired
public void setTocofsReturngoodsDetailedDao(ITocofsReturngoodsDetailedDao dao) {
this.tocofsReturngoodsDetailedDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.report.lets.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.report.lets.dao.ITocofsReturngoodsDao;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity;
import com.hzya.frame.report.lets.service.ITocofsReturngoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* OFS售后入库单(TocofsReturngoods)表服务实现类
*
* @author makejava
* @since 2024-08-09 11:08:40
*/
@Service(value = "tocofsReturngoodsServiceImplReport")
public class TocofsReturngoodsServiceImpl extends BaseService<TocofsReturngoodsEntity, String> implements ITocofsReturngoodsService {
private ITocofsReturngoodsDao tocofsReturngoodsDao;
@Autowired
public void setTocofsReturngoodsDao(ITocofsReturngoodsDao dao) {
this.tocofsReturngoodsDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,27 @@
package com.hzya.frame.report.lets.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.report.lets.dao.ITocofsSaleoutDetailedDao;
import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity;
import com.hzya.frame.report.lets.service.ITocofsSaleoutDetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* tocofs_saleout_detailed(TocofsSaleoutDetailed)表服务实现类
*
* @author makejava
* @since 2024-08-01 17:01:53
*/
@Service(value = "tocofsSaleoutDetailedServiceImplReport")
public class TocofsSaleoutDetailedServiceImpl extends BaseService<TocofsSaleoutDetailedEntity, String> implements ITocofsSaleoutDetailedService {
private ITocofsSaleoutDetailedDao tocofsSaleoutDetailedDao;
@Autowired
public void setTocofsSaleoutDetailedDao(ITocofsSaleoutDetailedDao dao) {
this.tocofsSaleoutDetailedDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,129 @@
package com.hzya.frame.report.lets.service.impl;
import cn.hutool.core.lang.Assert;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.page.PageAttribute;
import com.hzya.frame.report.lets.dao.ITocofsSaleoutDao;
import com.hzya.frame.report.lets.dao.ITocofsSaleoutDetailedDao;
import com.hzya.frame.report.lets.entity.TocofsReturngoodsEntity;
import com.hzya.frame.report.lets.entity.TocofsSaleoutDetailedEntity;
import com.hzya.frame.report.lets.entity.TocofsSaleoutEntity;
import com.hzya.frame.report.lets.service.ITocofsSaleoutService;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* root(TocofsSaleout)表服务实现类
*
* @author makejava
* @since 2024-08-01 17:01:32
*/
@Service(value = "tocofsSaleoutServiceImplReport")
public class TocofsSaleoutServiceImpl extends BaseService<TocofsSaleoutEntity, String> implements ITocofsSaleoutService {
private ITocofsSaleoutDao tocofsSaleoutDao;
@Autowired
private ITocofsSaleoutDetailedDao iTocofsSaleoutDetailedDao;
@Autowired
public void setTocofsSaleoutDao(ITocofsSaleoutDao dao) {
this.tocofsSaleoutDao = dao;
this.dao = dao;
}
@Override
public JsonResultEntity queryToCSalesReport(JSONObject jsonObject) throws Exception {
JSONObject jsonStr = getstrObj("jsonStr", jsonObject);
//分页参数
String pageNum = jsonStr.getString("pageNum");
String pageSize = jsonStr.getString("pageSize");
Assert.notNull(pageNum, "pageNum不能为空");
Assert.notNull(pageSize, "pageSize不能为空");
//业务类型TOBTOC
String businessType = jsonStr.getString("businessType");
Assert.notNull(businessType, "businessType不能为空!");
//出库日期范围
String businessDate_start = jsonStr.getString("businessDate_start");
String businessDate_end = jsonStr.getString("businessDate_end");
if (businessDate_start != null) {
businessDate_start += " 00:00:00";
}
if (businessDate_end != null) {
businessDate_end += " 23:59:59";
}
//交易成功时间范围
String successfulTradeDate_start = jsonStr.getString("successfulTradeDate_start");
if (successfulTradeDate_start != null) {
successfulTradeDate_start += " 00:00:00";
}
String successfulTradeDate_end = jsonStr.getString("successfulTradeDate_end");
if (successfulTradeDate_end != null) {
successfulTradeDate_end += " 23:59:59";
}
//推送时间
String newPushDate = jsonStr.getString("newPushDate");
String def5 = jsonStr.getString("def5");
String def1 = jsonStr.getString("def1");
String def3 = jsonStr.getString("def3");
//推送状态
String newState = jsonStr.getString("newstate");//推送状态TOBTOC库存同步成功
String newState4 = jsonStr.getString("newState4");
String newstate2 = jsonStr.getString("newstate2");
String newstate3 = jsonStr.getString("newstate3");
//下游系统单号下游系统主键
String newsystemnumber = jsonStr.getString("newsystemnumber");
String newsystemprimary = jsonStr.getString("newsystemprimary");
String newSystemNumber4 = jsonStr.getString("newsystemnumber4");
String newSystemPrimary4 = jsonStr.getString("newsystemprimary4");
String newsystemnumber2 = jsonStr.getString("newsystemnumber2");
String newsystemprimary2 = jsonStr.getString("newsystemprimary2");
String newsystemnumber3 = jsonStr.getString("newsystemnumber3");
String newsystemprimary3 = jsonStr.getString("newsystemprimary3");
TocofsSaleoutDetailedEntity tocofsSaleoutDetailedEntity = new TocofsSaleoutDetailedEntity();
tocofsSaleoutDetailedEntity.setBusinesstype(businessType);
tocofsSaleoutDetailedEntity.setBusinessdate_start(businessDate_start);
tocofsSaleoutDetailedEntity.setBusinessdate_end(businessDate_end);
tocofsSaleoutDetailedEntity.setSuccessfultradedate_start(successfulTradeDate_start);
tocofsSaleoutDetailedEntity.setSuccessfultradedate_end(successfulTradeDate_end);
tocofsSaleoutDetailedEntity.setNewpushdate(newPushDate);
tocofsSaleoutDetailedEntity.setDef5(def5);
tocofsSaleoutDetailedEntity.setDef1(def1);
tocofsSaleoutDetailedEntity.setDef3(def3);
tocofsSaleoutDetailedEntity.setNewstate(newState);
tocofsSaleoutDetailedEntity.setNewstate4(newState4);
tocofsSaleoutDetailedEntity.setNewstate2(newstate2);
tocofsSaleoutDetailedEntity.setNewstate3(newstate3);
tocofsSaleoutDetailedEntity.setNewsystemnumber(newsystemnumber);
tocofsSaleoutDetailedEntity.setNewsystemprimary(newsystemprimary);
tocofsSaleoutDetailedEntity.setNewsystemnumber4(newSystemNumber4);
tocofsSaleoutDetailedEntity.setNewsystemprimary4(newSystemPrimary4);
tocofsSaleoutDetailedEntity.setNewsystemnumber2(newsystemnumber2);
tocofsSaleoutDetailedEntity.setNewsystemprimary2(newsystemprimary2);
tocofsSaleoutDetailedEntity.setNewsystemnumber3(newsystemnumber3);
tocofsSaleoutDetailedEntity.setNewsystemprimary3(newsystemprimary3);
tocofsSaleoutDetailedEntity.setPageNum(Integer.valueOf(pageNum));
tocofsSaleoutDetailedEntity.setPageSize(Integer.valueOf(pageSize));
PageHelper.startPage(tocofsSaleoutDetailedEntity.getPageNum(), tocofsSaleoutDetailedEntity.getPageSize());
List<TocofsSaleoutDetailedEntity> tocofsSaleoutDetailedEntityPageAttribute = iTocofsSaleoutDetailedDao.query(tocofsSaleoutDetailedEntity);
PageInfo pageInfo = new PageInfo(tocofsSaleoutDetailedEntityPageAttribute);
return BaseResult.getSuccessMessageEntity("查询成功", pageInfo);
}
}