...
This commit is contained in:
parent
0b1387cf5a
commit
59a94ed12e
|
@ -29,4 +29,6 @@ public interface SysDateSnapshotService extends CrudService<SysDateSnapshotEntit
|
||||||
* @param type
|
* @param type
|
||||||
*/
|
*/
|
||||||
void snapshotResourceAction(Integer type);
|
void snapshotResourceAction(Integer type);
|
||||||
|
|
||||||
|
SysDateSnapshotDTO selectForFlag(Integer type);
|
||||||
}
|
}
|
|
@ -106,4 +106,9 @@ public class SysDateSnapshotServiceImpl extends CrudServiceImpl<SysDateSnapshotD
|
||||||
sysDateSnapshotDTO.setSnapshot(snapshot);
|
sysDateSnapshotDTO.setSnapshot(snapshot);
|
||||||
save(sysDateSnapshotDTO);
|
save(sysDateSnapshotDTO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public SysDateSnapshotDTO selectForFlag(Integer type) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
package io.renren.modules.fuse.service.impl;
|
package io.renren.modules.fuse.service.impl;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||||
|
@ -104,12 +105,13 @@ public class TbFuseServiceImpl extends CrudServiceImpl<TbFuseDao, TbFuseEntity,
|
||||||
wrapper.eq(params.get("district") != null, "district", params.get("district"));
|
wrapper.eq(params.get("district") != null, "district", params.get("district"));
|
||||||
break;
|
break;
|
||||||
case "areas": { // 区域
|
case "areas": { // 区域
|
||||||
List<String> areas = (List<String>) params.get("areas");
|
logger.info("areas传参:{}", params.get("area").toString());
|
||||||
|
List<String> areas = JSONArray.parseArray(params.get("area").toString()).toJavaList(String.class);
|
||||||
wrapper.in(!areas.isEmpty(), "area", areas);
|
wrapper.in(!areas.isEmpty(), "area", areas);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "senses": {
|
case "senses": {
|
||||||
List<String> senses = (List<String>) params.get("senses");
|
List<String> senses = JSONArray.parseArray(params.get("senses").toString()).toJavaList(String.class);
|
||||||
wrapper.in(!senses.isEmpty(), "application_area", senses);
|
wrapper.in(!senses.isEmpty(), "application_area", senses);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -12,4 +12,13 @@
|
||||||
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<resultMap type="io.renren.modules.date_snapshot.dto.SysDateSnapshotDTO" id="sysDateSnapshotDtoMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="type" column="type"/>
|
||||||
|
<result property="creator" column="creator"/>
|
||||||
|
<result property="createDate" column="create_date"/>
|
||||||
|
<result property="snapshot" column="snapshot"
|
||||||
|
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue