提交 a09e7f16 authored 作者: 李秋林's avatar 李秋林

推送促销数据到电子表格时,新增数据

上级 085cd6bc
......@@ -103,11 +103,13 @@ public class ActivityToFeishuSheet {
log.info("============== 活动记录上传飞书 end ==============");
}
/**
* @param activityIds 6166L,6181L,6319L,6359L,6431L
*/
@GetMapping("/feishu/ids_sheet")
public void idsActivityList(){
public void idsActivityList(List<Long> activityIds){
log.info("============== 活动记录上传飞书 start ==============");
List<Long> activityIds = Arrays.asList(6166L,6181L,6319L,6359L,6431L,6514L,6542L,6648L,6745L,6797L);
List<TemporaryActivityReportedDO> reportedDos = promotionActivityService.findActivityListByIds(activityIds);
log.info("应上传飞书{}条活动记录",reportedDos.size());
......
......@@ -21,6 +21,7 @@ public class TemporaryActivityClockDO implements Serializable {
private Long reportedId;
private String createDate;
private String qinceStoreCode;
/**
* 上班打卡地址
......
......@@ -6,6 +6,7 @@ import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
*
......@@ -35,6 +36,7 @@ public class TemporaryActivityPhotoDO implements Serializable {
* 图片http地址
*/
private String photoUrl;
private Date createTime;
@TableField(exist = false)
......
......@@ -10,6 +10,8 @@
<collection property="photoList" ofType="com.wangxiaolu.export.mapper.entity.TemporaryActivityPhotoDO">
<result property="type" column="type" jdbcType="INTEGER"/>
<result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/>
<result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
</collection>
</resultMap>
......@@ -17,6 +19,7 @@
<resultMap id="clockInfoMap" type="com.wangxiaolu.export.mapper.entity.TemporaryActivityClockDO">
<result property="temporaryId" column="temporary_id" jdbcType="BIGINT"/>
<result property="reportedId" column="reported_id" jdbcType="BIGINT"/>
<result property="qinceStoreCode" column="qince_store_code" jdbcType="VARCHAR"/>
<result property="createDate" column="create_date" jdbcType="VARCHAR"/>
<result property="clockInTime" column="clock_in_time" jdbcType="TIMESTAMP"/>
<result property="noonClockOutTime" column="noon_clock_out_time" jdbcType="TIMESTAMP"/>
......@@ -49,7 +52,8 @@
ar.temporary_id temporary_id,
ar.create_date create_date,
ap.type type,
ap.photo_url photo_url
ap.photo_url photo_url,
ap.create_time create_time
from
temporary_activity_reported ar
inner join temporary_activity_clock ac on ar.temporary_id = ac.temporary_id
......@@ -75,6 +79,7 @@
<select id="findClockListByActivityIds" resultMap="clockInfoMap">
SELECT
reported_id,
qince_store_code,
clock_in_time,
clock_in_address,
noon_clock_out_time,
......
......@@ -10,10 +10,11 @@
<result property="clockId" column="clock_id" jdbcType="BIGINT"/>
<result property="type" column="type" jdbcType="INTEGER"/>
<result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
</resultMap>
<select id="findActivityPhotos" resultMap="BaseResultMap">
select reported_id, type, photo_url
select reported_id, type, photo_url,create_time
from temporary_activity_photo
where is_delete = 1
and reported_id in
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论