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

axmr005结果推送到飞书表格,换月不需要换文档

上级 99d27c8d
......@@ -8,6 +8,5 @@ import com.sfa.job.pojo.response.FeishuSheetRecordDto;
* @describe :
*/
public interface FeishuSheetRecordDao {
FeishuSheetRecordDto selectOne(Integer type, String createMonth);
FeishuSheetRecordDto selectOne(Integer type);
}
......@@ -20,8 +20,8 @@ public class FeishuSheetRecordDaoImpl implements FeishuSheetRecordDao{
@Autowired
private FeishuSheetRecordMapper feishuSheetRecordMapper;
@Override
public FeishuSheetRecordDto selectOne(Integer type, String createMonth) {
FeishuSheetRecord feishuSheetRecord = feishuSheetRecordMapper.findOne(type, createMonth);
public FeishuSheetRecordDto selectOne(Integer type) {
FeishuSheetRecord feishuSheetRecord = feishuSheetRecordMapper.findOne(type);
return BeanUtils.transitionDto(feishuSheetRecord, FeishuSheetRecordDto.class);
}
}
......@@ -13,7 +13,7 @@ import org.springframework.stereotype.Repository;
*/
@Repository
public interface FeishuSheetRecordMapper extends BaseMapper<FeishuSheetRecord> {
FeishuSheetRecord findOne(@Param("type") Integer type,@Param("createMonth") String createMonth);
FeishuSheetRecord findOne(@Param("type") Integer type);
}
......
......@@ -33,7 +33,10 @@ public class ErpAxmr005ServiceImpl implements ErpAxmr005Service {
@Override
public void axmr005ZQToFS(Date debitDate,Integer type) {
List<Object> zhanquDataset = erpAxmr005ShippingDetailsDao.getZhanquDataset(debitDate);
FeishuSheetRecordDto recordDto = feishuSheetRecordDao.selectOne(type, DateUtils.parseDateToStr(DateUtils.YYYY_MM, debitDate));
if (zhanquDataset.isEmpty()){
return;
}
FeishuSheetRecordDto recordDto = feishuSheetRecordDao.selectOne(type);
/**
* 将结果推送到飞书表格,每次推100条
......
......@@ -19,6 +19,6 @@
<select id="findOne" resultMap="BaseResultMap">
select <include refid="Base_Column_List"/>
from feishu_sheet_record where type = #{type} and create_month = #{createMonth}
from feishu_sheet_record where type = #{type}
</select>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论