Compare commits
3 Commits
e0aeb0206c
...
bd2219a6e4
Author | SHA1 | Date |
---|---|---|
wangliwen | bd2219a6e4 | |
wangliwen | cc06066746 | |
wangliwen | ddffb66933 |
|
@ -8,6 +8,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|||
import io.renren.common.annotation.LogOperation;
|
||||
import io.renren.common.constant.Constant;
|
||||
import io.renren.common.utils.Result;
|
||||
import io.renren.modules.date_snapshot.service.SysDateSnapshotService;
|
||||
import io.renren.modules.processForm.service.TAbilityApplicationService;
|
||||
import io.renren.modules.resource.dao.ResourceDao;
|
||||
import io.renren.modules.resource.excel.census.SelectApplyDeptDetailTypeCountListExcel;
|
||||
|
@ -70,6 +71,9 @@ public class CensusController {
|
|||
@Autowired
|
||||
private JdbcTemplate jdbcTemplate;
|
||||
|
||||
@Autowired
|
||||
private SysDateSnapshotService sysDateSnapshotService;
|
||||
|
||||
@Value("${census.type}")
|
||||
private String[] censusTypes; // 需要进行统计的资源类型
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
package io.renren.modules.date_snapshot.dao;
|
||||
|
||||
import io.renren.common.dao.BaseDao;
|
||||
import io.renren.modules.date_snapshot.dto.SysDateSnapshotDTO;
|
||||
import io.renren.modules.date_snapshot.entity.SysDateSnapshotEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 运行数据快照(资源数量、申请数量)
|
||||
|
@ -13,4 +15,6 @@ import org.apache.ibatis.annotations.Mapper;
|
|||
@Mapper
|
||||
public interface SysDateSnapshotDao extends BaseDao<SysDateSnapshotEntity> {
|
||||
|
||||
SysDateSnapshotDTO selectForFlag(@Param("type") Integer type);
|
||||
|
||||
}
|
|
@ -109,6 +109,6 @@ public class SysDateSnapshotServiceImpl extends CrudServiceImpl<SysDateSnapshotD
|
|||
|
||||
@Override
|
||||
public SysDateSnapshotDTO selectForFlag(Integer type) {
|
||||
return null;
|
||||
return baseDao.selectForFlag(type);
|
||||
}
|
||||
}
|
|
@ -21,4 +21,16 @@
|
|||
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectForFlag" resultType="io.renren.modules.date_snapshot.dto.SysDateSnapshotDTO">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
sys_date_snapshot
|
||||
WHERE
|
||||
type = ${type}
|
||||
ORDER BY
|
||||
create_date DESC
|
||||
LIMIT 1;
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -73,6 +73,18 @@
|
|||
<if test="updateDate != null and updateDate != ''">
|
||||
and updateDate #{updateDate}
|
||||
</if>
|
||||
<if test="senses != null and senses.length > 0 ">
|
||||
and application_area in
|
||||
<foreach collection="senses" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="areas != null and areas.length > 0 ">
|
||||
and area in
|
||||
<foreach collection="areas" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
group by tf.id
|
||||
ORDER BY ${orderField} ${orderType}
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue