计算销售报表-定时任务逻辑调整
This commit is contained in:
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Component;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 经营指标完成情况
|
||||||
* oracle gr_bi_fs_business_real -> mysql gr_bi_fs_business_real
|
* oracle gr_bi_fs_business_real -> mysql gr_bi_fs_business_real
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.lideeyunji.core.framework.config.job;
|
package com.lideeyunji.core.framework.config.job;
|
||||||
|
|
||||||
import com.lideeyunji.core.framework.service.IGrBiFsBusinessRealService;
|
|
||||||
import com.lideeyunji.core.framework.service.IGrBiStLotService;
|
import com.lideeyunji.core.framework.service.IGrBiStLotService;
|
||||||
import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant;
|
import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant;
|
||||||
import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler;
|
import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler;
|
||||||
@@ -10,6 +9,7 @@ import org.springframework.stereotype.Component;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 物料产品库存统计表
|
||||||
* oracle gr_bi_st_lot -> mysql gr_bi_st_lot
|
* oracle gr_bi_st_lot -> mysql gr_bi_st_lot
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@@ -21,9 +21,9 @@ public class GenerateStLotJob implements JobHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String execute(String param) throws Exception {
|
public String execute(String param) throws Exception {
|
||||||
log.info("*********** 开始生成物料产品库存统计表完成情况 ************");
|
log.info("*********** 开始生成物料产品库存统计表 ************");
|
||||||
grBiFsStLotService.generateStLot(lideeYunJiBaseConstant.DS_ERP_BI_DATA);
|
grBiFsStLotService.generateStLot(lideeYunJiBaseConstant.DS_ERP_BI_DATA);
|
||||||
log.info("*********** 生成物料产品库存统计表完成情况完成 ************");
|
log.info("*********** 生成物料产品库存统计表完成 ************");
|
||||||
return "*********** 生成物料产品库存统计表完成情况完成 ************";
|
return "*********** 生成物料产品库存统计表完成 ************";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Component;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 产品可销库存对象
|
||||||
* oracle gr_bi_st_product_avl -> mysql gr_bi_st_product_avl
|
* oracle gr_bi_st_product_avl -> mysql gr_bi_st_product_avl
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@@ -20,9 +21,9 @@ public class GenerateStProductAvlJob implements JobHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String execute(String param) throws Exception {
|
public String execute(String param) throws Exception {
|
||||||
log.info("*********** 开始生成产品可销库存对象完成情况 ************");
|
log.info("*********** 开始生成产品可销库存对象 ************");
|
||||||
grBiFsStProductAvlService.generateStProductAvl(lideeYunJiBaseConstant.DS_ERP_BI_DATA);
|
grBiFsStProductAvlService.generateStProductAvl(lideeYunJiBaseConstant.DS_ERP_BI_DATA);
|
||||||
log.info("*********** 生成产品可销库存对象完成情况完成 ************");
|
log.info("*********** 生成产品可销库存对象完成 ************");
|
||||||
return "*********** 生成产品可销库存对象完成情况完成 ************";
|
return "*********** 生成产品可销库存对象完成 ************";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.lideeyunji.core.framework.config.job;
|
package com.lideeyunji.core.framework.config.job;
|
||||||
|
|
||||||
import com.lideeyunji.core.framework.service.IGrBiStLotService;
|
|
||||||
import com.lideeyunji.core.framework.service.IGrBiStProductService;
|
import com.lideeyunji.core.framework.service.IGrBiStProductService;
|
||||||
import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant;
|
import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant;
|
||||||
import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler;
|
import com.lideeyunji.tool.framework.quartz.core.handler.JobHandler;
|
||||||
@@ -10,6 +9,7 @@ import org.springframework.stereotype.Component;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 库存产品占比表对象
|
||||||
* oracle gr_bi_st_product -> mysql gr_bi_st_product
|
* oracle gr_bi_st_product -> mysql gr_bi_st_product
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@@ -21,9 +21,9 @@ public class GenerateStProductJob implements JobHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String execute(String param) throws Exception {
|
public String execute(String param) throws Exception {
|
||||||
log.info("*********** 开始生成库存产品占比表对象完成情况 ************");
|
log.info("*********** 开始生成库存产品占比表对象 ************");
|
||||||
grBiFsStProductService.generateStProduct(lideeYunJiBaseConstant.DS_ERP_BI_DATA);
|
grBiFsStProductService.generateStProduct(lideeYunJiBaseConstant.DS_ERP_BI_DATA);
|
||||||
log.info("*********** 生成库存产品占比表对象完成情况完成 ************");
|
log.info("*********** 生成库存产品占比表对象完成 ************");
|
||||||
return "*********** 生成库存产品占比表对象完成情况完成 ************";
|
return "*********** 生成库存产品占比表对象完成 ************";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,13 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.lideeyunji.tool.framework.yunji.model.global.BaseEntity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 经营指标完成情况对象 gr_bi_fs_business_real
|
* 经营指标完成情况对象 gr_bi_fs_business_real
|
||||||
*
|
*
|
||||||
@@ -16,13 +19,11 @@ import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
|||||||
*/
|
*/
|
||||||
@TableName("gr_bi_fs_business_real")
|
@TableName("gr_bi_fs_business_real")
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
public class GrBiFsBusinessReal implements Serializable {
|
||||||
public class GrBiFsBusinessReal extends BaseTenantEntity
|
|
||||||
{
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@TableId(value = "ID", type = IdType.INPUT)
|
@TableId(value = "ID", type = IdType.INPUT)
|
||||||
private String ID;
|
private Long id;
|
||||||
|
|
||||||
@TableField(value = "USEYEAR")
|
@TableField(value = "USEYEAR")
|
||||||
private String useYear;
|
private String useYear;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.lideeyunji.core.framework.entity;
|
package com.lideeyunji.core.framework.entity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
@@ -7,6 +8,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.lideeyunji.tool.framework.yunji.model.global.BaseEntity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
||||||
@@ -19,8 +21,7 @@ import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
|||||||
*/
|
*/
|
||||||
@TableName("gr_bi_st_lot")
|
@TableName("gr_bi_st_lot")
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
public class GrBiStLot implements Serializable
|
||||||
public class GrBiStLot extends BaseTenantEntity
|
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@@ -55,7 +56,7 @@ public class GrBiStLot extends BaseTenantEntity
|
|||||||
private Long goodsQty;
|
private Long goodsQty;
|
||||||
|
|
||||||
@TableField(value = "PRODDATE")
|
@TableField(value = "PRODDATE")
|
||||||
private Date proddate;
|
private Date prodDate;
|
||||||
|
|
||||||
@TableField(value = "INVALIDDATE")
|
@TableField(value = "INVALIDDATE")
|
||||||
private String invalidDate;
|
private String invalidDate;
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import lombok.Data;
|
|||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 库存产品占比表对象 gr_bi_st_product
|
* 库存产品占比表对象 gr_bi_st_product
|
||||||
*
|
*
|
||||||
@@ -16,8 +18,7 @@ import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
|||||||
*/
|
*/
|
||||||
@TableName("gr_bi_st_product")
|
@TableName("gr_bi_st_product")
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
public class GrBiStProduct implements Serializable
|
||||||
public class GrBiStProduct extends BaseTenantEntity
|
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@@ -34,10 +35,10 @@ public class GrBiStProduct extends BaseTenantEntity
|
|||||||
private String goodsType;
|
private String goodsType;
|
||||||
|
|
||||||
@TableField(value = "GOODSUNIT")
|
@TableField(value = "GOODSUNIT")
|
||||||
private String goodsunit;
|
private String goodsUnit;
|
||||||
|
|
||||||
@TableField(value = "GOODSCLASSID")
|
@TableField(value = "GOODSCLASSID")
|
||||||
private Long goodsclassid;
|
private Long goodsClassId;
|
||||||
|
|
||||||
@TableField(value = "GOODSCLASSNAME")
|
@TableField(value = "GOODSCLASSNAME")
|
||||||
private String goodsClassName;
|
private String goodsClassName;
|
||||||
|
|||||||
@@ -4,10 +4,13 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.lideeyunji.tool.framework.yunji.model.global.BaseEntity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 产品可销库存对象 gr_bi_st_product_avl
|
* 产品可销库存对象 gr_bi_st_product_avl
|
||||||
*
|
*
|
||||||
@@ -16,8 +19,7 @@ import com.lideeyunji.tool.framework.yunji.model.global.BaseTenantEntity;
|
|||||||
*/
|
*/
|
||||||
@TableName("gr_bi_st_product_avl")
|
@TableName("gr_bi_st_product_avl")
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
public class GrBiStProductAvl implements Serializable
|
||||||
public class GrBiStProductAvl extends BaseTenantEntity
|
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,16 @@
|
|||||||
package com.lideeyunji.core.framework.service.impl;
|
package com.lideeyunji.core.framework.service.impl;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.lideeyunji.core.framework.entity.GrBiFsBusinessReal;
|
import com.lideeyunji.core.framework.entity.GrBiStLot;
|
||||||
|
import com.lideeyunji.core.framework.mapper.GrBiStLotMapper;
|
||||||
|
import com.lideeyunji.core.framework.service.IGrBiStLotService;
|
||||||
import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant;
|
import com.lideeyunji.tool.framework.common.constant.lideeYunJiBaseConstant;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.lideeyunji.core.framework.mapper.GrBiStLotMapper;
|
|
||||||
import com.lideeyunji.core.framework.entity.GrBiStLot;
|
import java.util.List;
|
||||||
import com.lideeyunji.core.framework.service.IGrBiStLotService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 物料产品库存统计表Service业务层处理
|
* 物料产品库存统计表Service业务层处理
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lideeyunji.core.framework.mapper.GrBiFsBusinessRealMapper">
|
<mapper namespace="com.lideeyunji.core.framework.mapper.GrBiFsBusinessRealMapper">
|
||||||
|
|
||||||
<resultMap type="GrBiFsBusinessReal" id="GrBiFsBusinessRealResult">
|
<resultMap type="com.lideeyunji.core.framework.entity.GrBiFsBusinessReal" id="GrBiFsBusinessRealResult">
|
||||||
<result property="ID" column="ID" />
|
<result property="id" column="ID" />
|
||||||
<result property="USEYEAR" column="USEYEAR" />
|
<result property="useYear" column="USEYEAR" />
|
||||||
<result property="USEMONTH" column="USEMONTH" />
|
<result property="useMonth" column="USEMONTH" />
|
||||||
<result property="ITEMID" column="ITEMID" />
|
<result property="itemId" column="ITEMID" />
|
||||||
<result property="ITEMNAME" column="ITEMNAME" />
|
<result property="itemName" column="ITEMNAME" />
|
||||||
<result property="ITEMORDER" column="ITEMORDER" />
|
<result property="itemOrder" column="ITEMORDER" />
|
||||||
<result property="monthReal" column="MONTH_REAL" />
|
<result property="monthReal" column="MONTH_REAL" />
|
||||||
<result property="yearReal" column="YEAR_REAL" />
|
<result property="yearReal" column="YEAR_REAL" />
|
||||||
<result property="monthDiff" column="MONTH_DIFF" />
|
<result property="monthDiff" column="MONTH_DIFF" />
|
||||||
@@ -21,16 +21,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<sql id="selectGrBiFsBusinessRealVo">
|
<sql id="selectGrBiFsBusinessRealVo">
|
||||||
select ID, USEYEAR, USEMONTH, ITEMID, ITEMNAME, ITEMORDER, MONTH_REAL, YEAR_REAL, MONTH_DIFF, YEAR_PLAN, YEAR_RATE from gr_bi_fs_business_real
|
select ID, USEYEAR, USEMONTH, ITEMID, ITEMNAME, ITEMORDER, MONTH_REAL, YEAR_REAL, MONTH_DIFF, YEAR_PLAN, YEAR_RATE from gr_bi_fs_business_real
|
||||||
</sql>
|
</sql>
|
||||||
<select id="generateSalesReport" resultMap="GrBiFsBusinessRealResult">
|
<select id="getBusinessRealList" resultMap="GrBiFsBusinessRealResult">
|
||||||
<include refid="selectGrBiFsBusinessRealVo"/>
|
<include refid="selectGrBiFsBusinessRealVo"/>
|
||||||
<where>
|
<where>
|
||||||
a.USEYEAR is not NULL
|
USEYEAR is not NULL
|
||||||
and (a.USEYEAR * 100 + a.USEMONTH) BETWEEN #{pastYearMonth} AND #{currentYearMonth}
|
and (USEYEAR * 100 + USEMONTH) BETWEEN #{pastYearMonth} AND #{currentYearMonth}
|
||||||
</where>
|
</where>
|
||||||
order by a.USEYEAR, a.USEMONTH
|
order by USEYEAR, USEMONTH
|
||||||
</select>
|
</select>
|
||||||
|
<delete id="deleteOldBusinessReal">
|
||||||
<select id="selectGrBiFsBusinessRealList" parameterType="GrBiFsBusinessReal" resultMap="GrBiFsBusinessRealResult">
|
delete from gr_bi_fs_business_real
|
||||||
|
where (USEYEAR * 100 + USEMONTH) BETWEEN #{pastYearMonth} AND #{currentYearMonth}
|
||||||
|
</delete>
|
||||||
|
<select id="selectGrBiFsBusinessRealList" parameterType="com.lideeyunji.core.framework.entity.GrBiFsBusinessReal" resultMap="GrBiFsBusinessRealResult">
|
||||||
<include refid="selectGrBiFsBusinessRealVo"/>
|
<include refid="selectGrBiFsBusinessRealVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="ID != null and ID != ''"> and ID = #{ID}</if>
|
<if test="ID != null and ID != ''"> and ID = #{ID}</if>
|
||||||
@@ -52,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where ID = #{ID}
|
where ID = #{ID}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertGrBiFsBusinessReal" parameterType="GrBiFsBusinessReal">
|
<insert id="insertGrBiFsBusinessReal" parameterType="com.lideeyunji.core.framework.entity.GrBiFsBusinessReal">
|
||||||
insert into gr_bi_fs_business_real
|
insert into gr_bi_fs_business_real
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="ID != null">ID,</if>
|
<if test="ID != null">ID,</if>
|
||||||
@@ -82,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateGrBiFsBusinessReal" parameterType="GrBiFsBusinessReal">
|
<update id="updateGrBiFsBusinessReal" parameterType="com.lideeyunji.core.framework.entity.GrBiFsBusinessReal">
|
||||||
update gr_bi_fs_business_real
|
update gr_bi_fs_business_real
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="USEYEAR != null">USEYEAR = #{USEYEAR},</if>
|
<if test="USEYEAR != null">USEYEAR = #{USEYEAR},</if>
|
||||||
|
|||||||
@@ -4,34 +4,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lideeyunji.core.framework.mapper.GrBiStLotMapper">
|
<mapper namespace="com.lideeyunji.core.framework.mapper.GrBiStLotMapper">
|
||||||
|
|
||||||
<resultMap type="GrBiStLot" id="GrBiStLotResult">
|
<resultMap type="com.lideeyunji.core.framework.entity.GrBiStLot" id="GrBiStLotResult">
|
||||||
<result property="ID" column="ID" />
|
<result property="id" column="ID" />
|
||||||
<result property="GOODSID" column="GOODSID" />
|
<result property="goodsId" column="GOODSID" />
|
||||||
<result property="GOODSNAME" column="GOODSNAME" />
|
<result property="goodsName" column="GOODSNAME" />
|
||||||
<result property="GOODSTYPE" column="GOODSTYPE" />
|
<result property="goodsType" column="GOODSTYPE" />
|
||||||
<result property="GOODSUNIT" column="GOODSUNIT" />
|
<result property="goodsUnit" column="GOODSUNIT" />
|
||||||
<result property="CLASSID" column="CLASSID" />
|
<result property="classid" column="CLASSID" />
|
||||||
<result property="CLASSNAME" column="CLASSNAME" />
|
<result property="className" column="CLASSNAME" />
|
||||||
<result property="LOTID" column="LOTID" />
|
<result property="lotId" column="LOTID" />
|
||||||
<result property="LOTNO" column="LOTNO" />
|
<result property="lotNo" column="LOTNO" />
|
||||||
<result property="GOODSQTY" column="GOODSQTY" />
|
<result property="goodsQty" column="GOODSQTY" />
|
||||||
<result property="PRODDATE" column="PRODDATE" />
|
<result property="prodDate" column="PRODDATE" />
|
||||||
<result property="INVALIDDATE" column="INVALIDDATE" />
|
<result property="invalidDate" column="INVALIDDATE" />
|
||||||
<result property="INVALIDDAYS" column="INVALIDDAYS" />
|
<result property="invalidDays" column="INVALIDDAYS" />
|
||||||
<result property="STINDATE" column="STINDATE" />
|
<result property="stInDate" column="STINDATE" />
|
||||||
<result property="STOUTDATE" column="STOUTDATE" />
|
<result property="stOutDate" column="STOUTDATE" />
|
||||||
<result property="INVALIDDAYSTYPEID" column="INVALIDDAYSTYPEID" />
|
<result property="invalidDaysTypeId" column="INVALIDDAYSTYPEID" />
|
||||||
<result property="INVALIDDAYSTYPE" column="INVALIDDAYSTYPE" />
|
<result property="invalidDaysType" column="INVALIDDAYSTYPE" />
|
||||||
<result property="OUTTYPE" column="OUTTYPE" />
|
<result property="outType" column="OUTTYPE" />
|
||||||
<result property="STORAGEID" column="STORAGEID" />
|
<result property="storageId" column="STORAGEID" />
|
||||||
<result property="STORAGENAME" column="STORAGENAME" />
|
<result property="storageName" column="STORAGENAME" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectGrBiStLotVo">
|
<sql id="selectGrBiStLotVo">
|
||||||
select ID, GOODSID, GOODSNAME, GOODSTYPE, GOODSUNIT, CLASSID, CLASSNAME, LOTID, LOTNO, GOODSQTY, PRODDATE, INVALIDDATE, INVALIDDAYS, STINDATE, STOUTDATE, INVALIDDAYSTYPEID, INVALIDDAYSTYPE, OUTTYPE, STORAGEID, STORAGENAME from gr_bi_st_lot
|
select ID, GOODSID, GOODSNAME, GOODSTYPE, GOODSUNIT, CLASSID, CLASSNAME, LOTID, LOTNO, GOODSQTY, PRODDATE, INVALIDDATE, INVALIDDAYS, STINDATE, STOUTDATE, INVALIDDAYSTYPEID, INVALIDDAYSTYPE, OUTTYPE, STORAGEID, STORAGENAME from gr_bi_st_lot
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectGrBiStLotList" parameterType="GrBiStLot" resultMap="GrBiStLotResult">
|
<select id="selectGrBiStLotList" parameterType="com.lideeyunji.core.framework.entity.GrBiStLot" resultMap="GrBiStLotResult">
|
||||||
<include refid="selectGrBiStLotVo"/>
|
<include refid="selectGrBiStLotVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="ID != null "> and ID = #{ID}</if>
|
<if test="ID != null "> and ID = #{ID}</if>
|
||||||
@@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where ID = #{ID}
|
where ID = #{ID}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertGrBiStLot" parameterType="GrBiStLot">
|
<insert id="insertGrBiStLot" parameterType="com.lideeyunji.core.framework.entity.GrBiStLot">
|
||||||
insert into gr_bi_st_lot
|
insert into gr_bi_st_lot
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="ID != null">ID,</if>
|
<if test="ID != null">ID,</if>
|
||||||
@@ -110,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateGrBiStLot" parameterType="GrBiStLot">
|
<update id="updateGrBiStLot" parameterType="com.lideeyunji.core.framework.entity.GrBiStLot">
|
||||||
update gr_bi_st_lot
|
update gr_bi_st_lot
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="GOODSID != null">GOODSID = #{GOODSID},</if>
|
<if test="GOODSID != null">GOODSID = #{GOODSID},</if>
|
||||||
|
|||||||
@@ -4,27 +4,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lideeyunji.core.framework.mapper.GrBiStProductAvlMapper">
|
<mapper namespace="com.lideeyunji.core.framework.mapper.GrBiStProductAvlMapper">
|
||||||
|
|
||||||
<resultMap type="GrBiStProductAvl" id="GrBiStProductAvlResult">
|
<resultMap type="com.lideeyunji.core.framework.entity.GrBiStProductAvl" id="GrBiStProductAvlResult">
|
||||||
<result property="ID" column="ID" />
|
<result property="id" column="ID" />
|
||||||
<result property="GOODSID" column="GOODSID" />
|
<result property="goodsId" column="GOODSID" />
|
||||||
<result property="GOODSNAME" column="GOODSNAME" />
|
<result property="goodsName" column="GOODSNAME" />
|
||||||
<result property="GOODSTYPE" column="GOODSTYPE" />
|
<result property="goodsType" column="GOODSTYPE" />
|
||||||
<result property="GOODSUNIT" column="GOODSUNIT" />
|
<result property="goodsUnit" column="GOODSUNIT" />
|
||||||
<result property="PACKSIZE" column="PACKSIZE" />
|
<result property="packSize" column="PACKSIZE" />
|
||||||
<result property="SORT" column="SORT" />
|
<result property="sort" column="SORT" />
|
||||||
<result property="SEMIREM" column="SEMIREM" />
|
<result property="semiRem" column="SEMIREM" />
|
||||||
<result property="TODAYIN" column="TODAYIN" />
|
<result property="todayIn" column="TODAYIN" />
|
||||||
<result property="REM" column="REM" />
|
<result property="rem" column="REM" />
|
||||||
<result property="THISMONTHOUT" column="THISMONTHOUT" />
|
<result property="thisMonthOut" column="THISMONTHOUT" />
|
||||||
<result property="LASTMONTHOUT" column="LASTMONTHOUT" />
|
<result property="lastMonthOut" column="LASTMONTHOUT" />
|
||||||
<result property="THISYEAROUT" column="THISYEAROUT" />
|
<result property="thisYearOut" column="THISYEAROUT" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectGrBiStProductAvlVo">
|
<sql id="selectGrBiStProductAvlVo">
|
||||||
select ID, GOODSID, GOODSNAME, GOODSTYPE, GOODSUNIT, PACKSIZE, SORT, SEMIREM, TODAYIN, REM, THISMONTHOUT, LASTMONTHOUT, THISYEAROUT from gr_bi_st_product_avl
|
select ID, GOODSID, GOODSNAME, GOODSTYPE, GOODSUNIT, PACKSIZE, SORT, SEMIREM, TODAYIN, REM, THISMONTHOUT, LASTMONTHOUT, THISYEAROUT from gr_bi_st_product_avl
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectGrBiStProductAvlList" parameterType="GrBiStProductAvl" resultMap="GrBiStProductAvlResult">
|
<select id="selectGrBiStProductAvlList" parameterType="com.lideeyunji.core.framework.entity.GrBiStProductAvl" resultMap="GrBiStProductAvlResult">
|
||||||
<include refid="selectGrBiStProductAvlVo"/>
|
<include refid="selectGrBiStProductAvlVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="ID != null "> and ID = #{ID}</if>
|
<if test="ID != null "> and ID = #{ID}</if>
|
||||||
@@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where ID = #{ID}
|
where ID = #{ID}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertGrBiStProductAvl" parameterType="GrBiStProductAvl">
|
<insert id="insertGrBiStProductAvl" parameterType="com.lideeyunji.core.framework.entity.GrBiStProductAvl">
|
||||||
insert into gr_bi_st_product_avl
|
insert into gr_bi_st_product_avl
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="ID != null">ID,</if>
|
<if test="ID != null">ID,</if>
|
||||||
@@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateGrBiStProductAvl" parameterType="GrBiStProductAvl">
|
<update id="updateGrBiStProductAvl" parameterType="com.lideeyunji.core.framework.entity.GrBiStProductAvl">
|
||||||
update gr_bi_st_product_avl
|
update gr_bi_st_product_avl
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="GOODSID != null">GOODSID = #{GOODSID},</if>
|
<if test="GOODSID != null">GOODSID = #{GOODSID},</if>
|
||||||
|
|||||||
@@ -4,17 +4,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.lideeyunji.core.framework.mapper.GrBiStProductMapper">
|
<mapper namespace="com.lideeyunji.core.framework.mapper.GrBiStProductMapper">
|
||||||
|
|
||||||
<resultMap type="GrBiStProduct" id="GrBiStProductResult">
|
<resultMap type="com.lideeyunji.core.framework.entity.GrBiStProduct" id="GrBiStProductResult">
|
||||||
<result property="ID" column="ID" />
|
<result property="id" column="ID" />
|
||||||
<result property="GOODSID" column="GOODSID" />
|
<result property="goodsId" column="GOODSID" />
|
||||||
<result property="GOODSNAME" column="GOODSNAME" />
|
<result property="goodsName" column="GOODSNAME" />
|
||||||
<result property="GOODSTYPE" column="GOODSTYPE" />
|
<result property="goodsType" column="GOODSTYPE" />
|
||||||
<result property="GOODSUNIT" column="GOODSUNIT" />
|
<result property="goodsUnit" column="GOODSUNIT" />
|
||||||
<result property="GOODSCLASSID" column="GOODSCLASSID" />
|
<result property="goodsClassId" column="GOODSCLASSID" />
|
||||||
<result property="GOODSCLASSNAME" column="GOODSCLASSNAME" />
|
<result property="goodsClassName" column="GOODSCLASSNAME" />
|
||||||
<result property="QTY" column="QTY" />
|
<result property="qty" column="QTY" />
|
||||||
<result property="qtyProp" column="QTY_PROP" />
|
<result property="qtyProp" column="QTY_PROP" />
|
||||||
<result property="MONEY" column="MONEY" />
|
<result property="money" column="MONEY" />
|
||||||
<result property="moneyProp" column="MONEY_PROP" />
|
<result property="moneyProp" column="MONEY_PROP" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
select ID, GOODSID, GOODSNAME, GOODSTYPE, GOODSUNIT, GOODSCLASSID, GOODSCLASSNAME, QTY, QTY_PROP, MONEY, MONEY_PROP from gr_bi_st_product
|
select ID, GOODSID, GOODSNAME, GOODSTYPE, GOODSUNIT, GOODSCLASSID, GOODSCLASSNAME, QTY, QTY_PROP, MONEY, MONEY_PROP from gr_bi_st_product
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectGrBiStProductList" parameterType="GrBiStProduct" resultMap="GrBiStProductResult">
|
<select id="selectGrBiStProductList" parameterType="com.lideeyunji.core.framework.entity.GrBiStProduct" resultMap="GrBiStProductResult">
|
||||||
<include refid="selectGrBiStProductVo"/>
|
<include refid="selectGrBiStProductVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="ID != null "> and ID = #{ID}</if>
|
<if test="ID != null "> and ID = #{ID}</if>
|
||||||
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
where ID = #{ID}
|
where ID = #{ID}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertGrBiStProduct" parameterType="GrBiStProduct">
|
<insert id="insertGrBiStProduct" parameterType="com.lideeyunji.core.framework.entity.GrBiStProduct">
|
||||||
insert into gr_bi_st_product
|
insert into gr_bi_st_product
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="ID != null">ID,</if>
|
<if test="ID != null">ID,</if>
|
||||||
@@ -74,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateGrBiStProduct" parameterType="GrBiStProduct">
|
<update id="updateGrBiStProduct" parameterType="com.lideeyunji.core.framework.entity.GrBiStProduct">
|
||||||
update gr_bi_st_product
|
update gr_bi_st_product
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="GOODSID != null">GOODSID = #{GOODSID},</if>
|
<if test="GOODSID != null">GOODSID = #{GOODSID},</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user