提交upload 逻辑问题修复。提交new 上传数据 加入根据时间查询

This commit is contained in:
yyhouc 2023-05-16 17:53:41 +08:00
parent c49f91c2db
commit 620d2f3acc
4 changed files with 13 additions and 1 deletions

View File

@ -204,6 +204,12 @@ public class RemoteSensingSourceData implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
//开始时间
@TableField(exist = false)
private String startTime;
//结束时间
@TableField(exist = false)
private String endTime;
} }

View File

@ -64,6 +64,9 @@
<if test="entityData.sourceOrganization != null and entityData.sourceOrganization != ''"> <if test="entityData.sourceOrganization != null and entityData.sourceOrganization != ''">
and ed.source_organization = #{entityData.sourceOrganization} and ed.source_organization = #{entityData.sourceOrganization}
</if> </if>
<if test="entityData.title != null and entityData.title != ''">
and ed.title = concat('%',#{entityData.title},'%')
</if>
</where> </where>
ORDER BY ed.upload_time DESC ORDER BY ed.upload_time DESC
</select> </select>

View File

@ -89,6 +89,9 @@
open="(" separator="," close=")">#{AList} open="(" separator="," close=")">#{AList}
</foreach> </foreach>
</if> </if>
<if test="remoteSensingSourceData.startTime != null and remoteSensingSourceData.startTime != '' and remoteSensingSourceData.endTime != null and remoteSensingSourceData.endTime != '' ">
and r.product_time between #{remoteSensingSourceData.startTime} and #{remoteSensingSourceData.endTime}
</if>
</where> </where>
</select> </select>

View File

@ -92,7 +92,7 @@ public class NewsServiceImpl extends ServiceImpl<NewsMapper, News>
if (CollectionUtil.isEmpty(content)) { if (CollectionUtil.isEmpty(content)) {
return R.fail("文件内容为空!"); return R.fail("文件内容为空!");
} }
if (typeData < 1) { if (typeData == 1) {
for (int i = 0; i < content.size(); ++i) { for (int i = 0; i < content.size(); ++i) {
List<Object> row = (List) content.get(i); List<Object> row = (List) content.get(i);
if (i != 0) { if (i != 0) {