定时任务-效期剩余时间分类表 调整
This commit is contained in:
@@ -11,8 +11,8 @@ import org.springframework.stereotype.Component;
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 供应商表
|
||||
* oracle gr_bi_pub_supply -> mysql gr_bi_pub_supply
|
||||
* 客户销售情况表
|
||||
* oracle gr_bi_sa_customer -> mysql gr_bi_sa_customer
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("generateCustomerJob")
|
||||
@@ -24,9 +24,9 @@ public class GenerateCustomerJob implements JobHandler {
|
||||
@Override
|
||||
@TenantIgnore
|
||||
public String execute(String param) throws Exception {
|
||||
log.info("*********** 开始生成供应商表 ************");
|
||||
log.info("*********** 开始生成客户销售情况表 ************");
|
||||
iGrBiSaCustomerService.generateCustomer(lideeYunJiBaseConstant.DS_ERP_BI_DATA);
|
||||
log.info("*********** 生成供应商表完成 ************");
|
||||
return "*********** 生成供应商表完成 ************";
|
||||
log.info("*********** 生成客户销售情况表完成 ************");
|
||||
return "*********** 生成客户销售情况表完成 ************";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@ import org.springframework.stereotype.Component;
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 供应商表
|
||||
* oracle gr_bi_pub_supply -> mysql gr_bi_pub_supply
|
||||
* 销售订单明细表
|
||||
* oracle gr_bi_sa_order -> mysql gr_bi_sa_order
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("generateOrderJob")
|
||||
@@ -24,9 +24,9 @@ public class GenerateOrderJob implements JobHandler {
|
||||
@Override
|
||||
@TenantIgnore
|
||||
public String execute(String param) throws Exception {
|
||||
log.info("*********** 开始生成供应商表 ************");
|
||||
log.info("*********** 开始生成销售订单明细表 ************");
|
||||
iGrBiSaOrderService.generateOrder(lideeYunJiBaseConstant.DS_ERP_BI_DATA);
|
||||
log.info("*********** 生成供应商表完成 ************");
|
||||
return "*********** 生成供应商表完成 ************";
|
||||
log.info("*********** 生成销售订单明细表完成 ************");
|
||||
return "*********** 生成销售订单明细表完成 ************";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ public class GrBiPubInvaliddaystype implements Serializable
|
||||
private Long invaliddaystypeid;
|
||||
|
||||
|
||||
@TableField(value = "INVALIDDAYSTYPENAME")
|
||||
private String invaliddaystypename;
|
||||
@TableField(value = "INVALIDDAYSTYPE")
|
||||
private String invaliddaystype;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,17 +6,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<resultMap type="com.lideeyunji.core.framework.entity.GrBiPubInvaliddaystype" id="GrBiPubInvaliddaystypeResult">
|
||||
<result property="invaliddaystypeid" column="INVALIDDAYSTYPEID" />
|
||||
<result property="invaliddaystypename" column="INVALIDDAYSTYPENAME" />
|
||||
<result property="invaliddaystype" column="INVALIDDAYSTYPE" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGrBiPubInvaliddaystypeVo">
|
||||
select INVALIDDAYSTYPEID, INVALIDDAYSTYPENAME from gr_bi_pub_invaliddaystype
|
||||
select INVALIDDAYSTYPEID, INVALIDDAYSTYPE from gr_bi_pub_invaliddaystype
|
||||
</sql>
|
||||
|
||||
<select id="selectGrBiPubInvaliddaystypeList" parameterType="com.lideeyunji.core.framework.entity.GrBiPubInvaliddaystype" resultMap="GrBiPubInvaliddaystypeResult">
|
||||
<include refid="selectGrBiPubInvaliddaystypeVo"/>
|
||||
<where>
|
||||
<if test="invaliddaystypename != null and invaliddaystypename != ''"> and INVALIDDAYSTYPENAME like concat('%', #{invaliddaystypename}, '%')</if>
|
||||
<if test="invaliddaystype != null and invaliddaystype != ''"> and INVALIDDAYSTYPE like concat('%', #{invaliddaystype}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -32,18 +32,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
insert into gr_bi_pub_invaliddaystype
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="invaliddaystypeid != null">INVALIDDAYSTYPEID,</if>
|
||||
<if test="invaliddaystypename != null and invaliddaystypename != ''">INVALIDDAYSTYPENAME,</if>
|
||||
<if test="invaliddaystype != null and invaliddaystype != ''">INVALIDDAYSTYPE,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="invaliddaystypeid != null">#{invaliddaystypeid},</if>
|
||||
<if test="invaliddaystypename != null and invaliddaystypename != ''">#{invaliddaystypename},</if>
|
||||
<if test="invaliddaystype != null and invaliddaystype != ''">#{invaliddaystype},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGrBiPubInvaliddaystype" parameterType="com.lideeyunji.core.framework.entity.GrBiPubInvaliddaystype">
|
||||
update gr_bi_pub_invaliddaystype
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="invaliddaystypename != null and invaliddaystypename != ''">INVALIDDAYSTYPENAME = #{invaliddaystypename},</if>
|
||||
<if test="invaliddaystype != null and invaliddaystype != ''">INVALIDDAYSTYPE = #{invaliddaystype},</if>
|
||||
</trim>
|
||||
where INVALIDDAYSTYPEID = #{invaliddaystypeid}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user