对接瑞信派基矛盾纠纷数据

master
luyya 2024-09-05 09:38:08 +08:00
parent fc59e76c66
commit 494a0ee7d6
17 changed files with 669 additions and 253 deletions

View File

@ -16,6 +16,8 @@ public interface RoadCheckStatisticsMapper {
public RoadCheckStatistics getStuckCheckStatistics(RoadCheckStatistics roadCheckStatistics); public RoadCheckStatistics getStuckCheckStatistics(RoadCheckStatistics roadCheckStatistics);
public RoadCheckStatistics getCheckStatistics(RoadCheckStatistics roadCheckStatistics); public List<RoadCheckStatistics> getCheckStatistics(RoadCheckStatistics roadCheckStatistics);
public RoadCheckStatistics getRoadStatistics(RoadCheckStatistics roadCheckStatistics);
} }

View File

@ -18,7 +18,7 @@ public interface TbXjxdzhxxbMapper
* @param Id ID * @param Id ID
* @return * @return
*/ */
public TbXjxdzhxxb selectTbXjxdzhxxbById(Long Id); public TbXjxdzhxxb selectTbXjxdzhxxbById(String Id);
/** /**
* *
@ -50,7 +50,7 @@ public interface TbXjxdzhxxbMapper
* @param Id ID * @param Id ID
* @return * @return
*/ */
public int deleteTbXjxdzhxxbById(Long Id); public int deleteTbXjxdzhxxbById(String Id);
/** /**
* *
@ -63,4 +63,8 @@ public interface TbXjxdzhxxbMapper
public TbXjxdzhxxb selectCountBySj(TbXjxdzhxxb xjxdzhxxb); public TbXjxdzhxxb selectCountBySj(TbXjxdzhxxb xjxdzhxxb);
public TbXjxdzhxxb getMdjfTj(TbXjxdzhxxb xjxdzhxxb); public TbXjxdzhxxb getMdjfTj(TbXjxdzhxxb xjxdzhxxb);
public List<TbXjxdzhxxb> xjxdStatics(TbXjxdzhxxb xjxdzhxxb);
public int xjxdCount(TbXjxdzhxxb xjxdzhxxb);
} }

View File

@ -34,6 +34,23 @@
</select> </select>
<select id="getRoadStatistics" parameterType="basepro.manager.pojo.RoadCheckStatistics" resultMap="RoadResult">
SELECT all_people_count people_count, unusual_people_count,all_car_count car_count,
all_things_count goods_count, unusual_car_count, commit_car_count,
commit_people_count commit_people_count,ptype
FROM tb_task_statistics WHERE (task_id is null or task_id ='')
<if test="kkid != null ">
and kkid = #{kkid}
</if>
<if test="deptId != null ">
and org_code = #{deptId}
</if>
<if test="params.beginTime != null and params.beginTime != '' "><!-- 开始时间检索 -->
and date_format(check_date,'%y%m%d')= date_format(#{params.beginTime},'%y%m%d')
</if>
</select>
<select id="getStuckCheckStatistics" parameterType="basepro.manager.pojo.RoadCheckStatistics" resultMap="RoadResult"> <select id="getStuckCheckStatistics" parameterType="basepro.manager.pojo.RoadCheckStatistics" resultMap="RoadResult">
SELECT SUM(all_people_count) people_count, SUM(unusual_people_count) unusual_people_count,SUM(all_car_count) car_count, SELECT SUM(all_people_count) people_count, SUM(unusual_people_count) unusual_people_count,SUM(all_car_count) car_count,
@ -59,7 +76,7 @@
SELECT all_people_count people_count, unusual_people_count,all_car_count car_count, SELECT all_people_count people_count, unusual_people_count,all_car_count car_count,
all_things_count goods_count, unusual_car_count, commit_car_count, all_things_count goods_count, unusual_car_count, commit_car_count,
commit_people_count commit_people_count,ptype commit_people_count commit_people_count,ptype
FROM tb_task_statistics WHERE task_id is not null FROM tb_task_statistics WHERE task_id is not null and task_id != ''
<if test="kkid != null "> <if test="kkid != null ">
and kkid = #{kkid} and kkid = #{kkid}
</if> </if>

View File

@ -48,6 +48,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="ZHZTRYSL" column="ZHZTRYSL" /> <result property="ZHZTRYSL" column="ZHZTRYSL" />
<result property="QFSFRYSL" column="QFSFRYSL" /> <result property="QFSFRYSL" column="QFSFRYSL" />
<result property="ChwpGzdj" column="CHWP_GZDJ" /> <result property="ChwpGzdj" column="CHWP_GZDJ" />
<result property="sfdj" column="sfdj" />
<result property="deptId" column="dept_id" />
<result property="deptName" column="dept_name" />
</resultMap> </resultMap>
<sql id="selectTbXjxdzhxxbVo"> <sql id="selectTbXjxdzhxxbVo">
@ -57,20 +60,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
YXGAJCZSL, SLZHKDSL, ZAPCRYSL, ZAPCCLSL, ZHZTRYSL, QFSFRYSL, CHWP_GZDJ from tb_xjxdzhxxb YXGAJCZSL, SLZHKDSL, ZAPCRYSL, ZAPCCLSL, ZHZTRYSL, QFSFRYSL, CHWP_GZDJ from tb_xjxdzhxxb
</sql> </sql>
<select id="selectTbXjxdzhxxbList" parameterType="basepro.manager.pojo.TbXjxdzhxxb" resultMap="TbXjxdzhxxbResult"> <select id="xjxdStatics" parameterType="basepro.manager.pojo.TbXjxdzhxxb" resultMap="TbXjxdzhxxbResult">
select * from (select h.id, XZQHDM, XZQHMC,GAJGDM, GAJGDM dept_id, GAJGMC, ZAFKRQ, TRXFJLSL, TRXFCLSL, QFQZSL, ZAKDSL, JCCLSL, PCRYSL, XCZDBWSL, JCFXYHCSSL, select d.* from (
FXYHCS_CZWSL, FXYHCS_LGSL, FXYHCS_YLCSSL, PCAQYHSL, XCAQYHSL, SJZDWP_QZ, SJZDWP_ZD, SJZDWP_ZY, SJZDWP_LG, SJZDWP_YZBHXP, SELECT x.*,id, GAJGDM, GAJGMC, date_format(#{zafkrqStr},'%y%m%d') ZAFKRQ, TRXFJLSL, TRXFCLSL, QFQZSL, ZAKDSL, JCCLSL, PCRYSL, XCZDBWSL, JCFXYHCSSL,
SJZDWP_JDHXP, SJZDWP_GZDJ, PCMDJFSL, HJMDJFSL, HLJTJFSL, HJHLJTJFSL, LLJFSL, HJLLJFSL, JJJFSL, HJJJJFSL, YLJFSL, HJYLJFSL, FXYHCS_CZWSL, FXYHCS_LGSL, FXYHCS_YLCSSL, PCAQYHSL, XCAQYHSL, SJZDWP_QZ, SJZDWP_ZD, SJZDWP_ZY, SJZDWP_LG, SJZDWP_YZBHXP,
YXGAJCZSL, SLZHKDSL, ZAPCRYSL, ZAPCCLSL, ZHZTRYSL, QFSFRYSL, CHWP_GZDJ from tb_xjxdzhxxb h left join sys_dept s on h.GAJGDM = s.dept_id ) d SJZDWP_JDHXP, SJZDWP_GZDJ, PCMDJFSL, HJMDJFSL, HLJTJFSL, HJHLJTJFSL, LLJFSL, HJLLJFSL, JJJFSL, HJJJJFSL, YLJFSL, HJYLJFSL,
YXGAJCZSL, SLZHKDSL, ZAPCRYSL, ZAPCCLSL, ZHZTRYSL, QFSFRYSL, CHWP_GZDJ,
(CASE WHEN b.gajgdm is null THEN '未上报'
ELSE '已上报'
END) as sfdj
FROM sys_dept_xzqh x LEFT JOIN tb_xjxdzhxxb b on x.dept_id = b.gajgdm and ZAFKRQ = #{zafkrqStr}
where 1=1
<if test="params.beginZAFKRQ != null and params.beginZAFKRQ != ''"><!-- 开始时间检索 -->
and date_format(ZAFKRQ,'%y%m%d') &gt;= date_format(#{params.beginZAFKRQ},'%y%m%d')
</if>
<if test="params.endZAFKRQ != null and params.endZAFKRQ != ''"><!-- 结束时间检索 -->
and date_format(ZAFKRQ,'%y%m%d') &lt;= date_format(#{params.endZAFKRQ},'%y%m%d')
</if>
ORDER BY dept_id ) d left join sys_dept s on d.dept_id = s.dept_id
<where> <where>
1=1 ${params.dataScope} d.is_open = '0' ${params.dataScope}
<if test="XZQHDM != null and XZQHDM != ''"> and XZQHDM = #{XZQHDM}</if> <if test="XZQHDM != null and XZQHDM != ''"> and XZQHDM = #{XZQHDM}</if>
<if test="XZQHMC != null and XZQHMC != ''"> and XZQHMC = #{XZQHMC}</if> <if test="XZQHMC != null and XZQHMC != ''"> and XZQHMC = #{XZQHMC}</if>
<if test="GAJGDM != null and GAJGDM != ''"> <if test="GAJGDM != null and GAJGDM != ''">
and (d.GAJGDM = #{GAJGDM} OR d.GAJGDM IN ( SELECT t.dept_id FROM sys_dept t WHERE FIND_IN_SET (#{GAJGDM},ancestors) )) and (d.dept_id = #{GAJGDM} OR d.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE FIND_IN_SET (#{GAJGDM},ancestors) ))
</if> </if>
<if test="GAJGMC != null and GAJGMC != ''"> and GAJGMC = #{GAJGMC}</if> <if test="GAJGMC != null and GAJGMC != ''"> and GAJGMC = #{GAJGMC}</if>
<if test="ZAFKRQ != null "> and ZAFKRQ = #{ZAFKRQ}</if>
<if test="TRXFJLSL != null "> and TRXFJLSL = #{TRXFJLSL}</if>
<if test="TRXFCLSL != null "> and TRXFCLSL = #{TRXFCLSL}</if>
<if test="QFQZSL != null "> and QFQZSL = #{QFQZSL}</if>
<if test="ZAKDSL != null "> and ZAKDSL = #{ZAKDSL}</if>
<if test="JCCLSL != null "> and JCCLSL = #{JCCLSL}</if>
<if test="PCRYSL != null "> and PCRYSL = #{PCRYSL}</if>
<if test="XCZDBWSL != null "> and XCZDBWSL = #{XCZDBWSL}</if>
ORDER BY d.dept_id
</where>
</select>
<select id="xjxdCount" parameterType="basepro.manager.pojo.TbXjxdzhxxb" resultType="int">
select count(1) from tb_xjxdzhxxb
<where>
<if test="XZQHDM != null and XZQHDM != ''"> and XZQHDM = #{XZQHDM}</if>
<if test="XZQHMC != null and XZQHMC != ''"> and XZQHMC = #{XZQHMC}</if>
<if test="GAJGDM != null and GAJGDM != ''">
and GAJGDM = #{GAJGDM}
</if>
<if test="GAJGMC != null and GAJGMC != ''"> and GAJGMC = #{GAJGMC}</if>
<if test="zafkrqStr != null and zafkrqStr != '' "> and ZAFKRQ = #{zafkrqStr}</if>
<if test="params.beginZAFKRQ != null and params.beginZAFKRQ != ''"><!-- 开始时间检索 --> <if test="params.beginZAFKRQ != null and params.beginZAFKRQ != ''"><!-- 开始时间检索 -->
and date_format(ZAFKRQ,'%y%m%d') &gt;= date_format(#{params.beginZAFKRQ},'%y%m%d') and date_format(ZAFKRQ,'%y%m%d') &gt;= date_format(#{params.beginZAFKRQ},'%y%m%d')
</if> </if>
@ -117,7 +154,67 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where> </where>
</select> </select>
<select id="selectTbXjxdzhxxbById" parameterType="Long" resultMap="TbXjxdzhxxbResult"> <select id="selectTbXjxdzhxxbList" parameterType="basepro.manager.pojo.TbXjxdzhxxb" resultMap="TbXjxdzhxxbResult">
select * from (select h.id, XZQHDM, XZQHMC,GAJGDM, GAJGDM dept_id, GAJGMC, ZAFKRQ, TRXFJLSL, TRXFCLSL, QFQZSL, ZAKDSL, JCCLSL, PCRYSL, XCZDBWSL, JCFXYHCSSL,
FXYHCS_CZWSL, FXYHCS_LGSL, FXYHCS_YLCSSL, PCAQYHSL, XCAQYHSL, SJZDWP_QZ, SJZDWP_ZD, SJZDWP_ZY, SJZDWP_LG, SJZDWP_YZBHXP,
SJZDWP_JDHXP, SJZDWP_GZDJ, PCMDJFSL, HJMDJFSL, HLJTJFSL, HJHLJTJFSL, LLJFSL, HJLLJFSL, JJJFSL, HJJJJFSL, YLJFSL, HJYLJFSL,
YXGAJCZSL, SLZHKDSL, ZAPCRYSL, ZAPCCLSL, ZHZTRYSL, QFSFRYSL, CHWP_GZDJ from tb_xjxdzhxxb h left join sys_dept s on h.GAJGDM = s.dept_id ) d
<where>
1=1 ${params.dataScope}
<if test="XZQHDM != null and XZQHDM != ''"> and XZQHDM = #{XZQHDM}</if>
<if test="XZQHMC != null and XZQHMC != ''"> and XZQHMC = #{XZQHMC}</if>
<if test="GAJGDM != null and GAJGDM != ''">
and (d.GAJGDM = #{GAJGDM} OR d.GAJGDM IN ( SELECT t.dept_id FROM sys_dept t WHERE FIND_IN_SET (#{GAJGDM},ancestors) ))
</if>
<if test="GAJGMC != null and GAJGMC != ''"> and GAJGMC = #{GAJGMC}</if>
<if test="zafkrqStr != null and zafkrqStr != '' "> and ZAFKRQ = #{zafkrqStr}</if>
<if test="params.beginZAFKRQ != null and params.beginZAFKRQ != ''"><!-- 开始时间检索 -->
and date_format(ZAFKRQ,'%y%m%d') &gt;= date_format(#{params.beginZAFKRQ},'%y%m%d')
</if>
<if test="params.endZAFKRQ != null and params.endZAFKRQ != ''"><!-- 结束时间检索 -->
and date_format(ZAFKRQ,'%y%m%d') &lt;= date_format(#{params.endZAFKRQ},'%y%m%d')
</if>
<if test="TRXFJLSL != null "> and TRXFJLSL = #{TRXFJLSL}</if>
<if test="TRXFCLSL != null "> and TRXFCLSL = #{TRXFCLSL}</if>
<if test="QFQZSL != null "> and QFQZSL = #{QFQZSL}</if>
<if test="ZAKDSL != null "> and ZAKDSL = #{ZAKDSL}</if>
<if test="JCCLSL != null "> and JCCLSL = #{JCCLSL}</if>
<if test="PCRYSL != null "> and PCRYSL = #{PCRYSL}</if>
<if test="XCZDBWSL != null "> and XCZDBWSL = #{XCZDBWSL}</if>
<if test="JCFXYHCSSL != null "> and JCFXYHCSSL = #{JCFXYHCSSL}</if>
<if test="FxyhcsCzwsl != null "> and FXYHCS_CZWSL = #{FxyhcsCzwsl}</if>
<if test="FxyhcsLgsl != null "> and FXYHCS_LGSL = #{FxyhcsLgsl}</if>
<if test="FxyhcsYlcssl != null "> and FXYHCS_YLCSSL = #{FxyhcsYlcssl}</if>
<if test="PCAQYHSL != null "> and PCAQYHSL = #{PCAQYHSL}</if>
<if test="XCAQYHSL != null "> and XCAQYHSL = #{XCAQYHSL}</if>
<if test="SjzdwpQz != null "> and SJZDWP_QZ = #{SjzdwpQz}</if>
<if test="SjzdwpZd != null "> and SJZDWP_ZD = #{SjzdwpZd}</if>
<if test="SjzdwpZy != null "> and SJZDWP_ZY = #{SjzdwpZy}</if>
<if test="SjzdwpLg != null "> and SJZDWP_LG = #{SjzdwpLg}</if>
<if test="SjzdwpYzbhxp != null "> and SJZDWP_YZBHXP = #{SjzdwpYzbhxp}</if>
<if test="SjzdwpJdhxp != null "> and SJZDWP_JDHXP = #{SjzdwpJdhxp}</if>
<if test="SjzdwpGzdj != null "> and SJZDWP_GZDJ = #{SjzdwpGzdj}</if>
<if test="PCMDJFSL != null "> and PCMDJFSL = #{PCMDJFSL}</if>
<if test="HJMDJFSL != null "> and HJMDJFSL = #{HJMDJFSL}</if>
<if test="HLJTJFSL != null "> and HLJTJFSL = #{HLJTJFSL}</if>
<if test="HJHLJTJFSL != null "> and HJHLJTJFSL = #{HJHLJTJFSL}</if>
<if test="LLJFSL != null "> and LLJFSL = #{LLJFSL}</if>
<if test="HJLLJFSL != null "> and HJLLJFSL = #{HJLLJFSL}</if>
<if test="JJJFSL != null "> and JJJFSL = #{JJJFSL}</if>
<if test="HJJJJFSL != null "> and HJJJJFSL = #{HJJJJFSL}</if>
<if test="YLJFSL != null "> and YLJFSL = #{YLJFSL}</if>
<if test="HJYLJFSL != null "> and HJYLJFSL = #{HJYLJFSL}</if>
<if test="YXGAJCZSL != null "> and YXGAJCZSL = #{YXGAJCZSL}</if>
<if test="SLZHKDSL != null "> and SLZHKDSL = #{SLZHKDSL}</if>
<if test="ZAPCRYSL != null "> and ZAPCRYSL = #{ZAPCRYSL}</if>
<if test="ZAPCCLSL != null "> and ZAPCCLSL = #{ZAPCCLSL}</if>
<if test="ZHZTRYSL != null "> and ZHZTRYSL = #{ZHZTRYSL}</if>
<if test="QFSFRYSL != null "> and QFSFRYSL = #{QFSFRYSL}</if>
<if test="ChwpGzdj != null "> and CHWP_GZDJ = #{ChwpGzdj}</if>
</where>
</select>
<select id="selectTbXjxdzhxxbById" parameterType="String" resultMap="TbXjxdzhxxbResult">
<include refid="selectTbXjxdzhxxbVo"/> <include refid="selectTbXjxdzhxxbVo"/>
where id = #{Id} where id = #{Id}
</select> </select>
@ -272,11 +369,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="GAJGDM != null and GAJGDM != ''"> <if test="GAJGDM != null and GAJGDM != ''">
and jgdm = #{GAJGDM} and jgdm = #{GAJGDM}
</if> </if>
<if test="ZAFKRQ != null "> and tjsj = TO_DATE(#{ZAFKRQ}, 'yyyy-mm-dd') </if> <if test="zafkrqStr != null and zafkrqStr != '' "> and tjsj = TO_DATE(#{zafkrqStr}, 'yyyy-mm-dd') </if>
</where> </where>
</select> </select>
<delete id="deleteTbXjxdzhxxbById" parameterType="Long"> <delete id="deleteTbXjxdzhxxbById" parameterType="String">
delete from tb_xjxdzhxxb where id = #{Id} delete from tb_xjxdzhxxb where id = #{Id}
</delete> </delete>

View File

@ -20,7 +20,7 @@ public interface ITbXjxdzhxxbService
* @param Id ID * @param Id ID
* @return * @return
*/ */
public TbXjxdzhxxb selectTbXjxdzhxxbById(Long Id); public TbXjxdzhxxb selectTbXjxdzhxxbById(String Id);
/** /**
* *
@ -30,6 +30,8 @@ public interface ITbXjxdzhxxbService
*/ */
public TableDataInfo selectTbXjxdzhxxbList(TbXjxdzhxxb tbXjxdzhxxb, Integer pageNum, Integer pageSize); public TableDataInfo selectTbXjxdzhxxbList(TbXjxdzhxxb tbXjxdzhxxb, Integer pageNum, Integer pageSize);
public TableDataInfo selectTbXjxdzhxxbListNoPage(TbXjxdzhxxb tbXjxdzhxxb);
public List<TbXjxdzhxxb> selectXjxdzhxxbList(TbXjxdzhxxb tbXjxdzhxxb); public List<TbXjxdzhxxb> selectXjxdzhxxbList(TbXjxdzhxxb tbXjxdzhxxb);
/** /**
@ -60,17 +62,24 @@ public interface ITbXjxdzhxxbService
*/ */
public int deleteTbXjxdzhxxbByIds(String ids); public int deleteTbXjxdzhxxbByIds(String ids);
public int deleteTbXjxdzhxxbByIdsGs(String ids);
/** /**
* *
* *
* @param Id ID * @param Id ID
* @return * @return
*/ */
public int deleteTbXjxdzhxxbById(Long Id); public int deleteTbXjxdzhxxbById(String Id);
public int deleteTbXjxdzhxxbByIdGs(String Id);
public TbXjxdzhxxb getNumByPctj(String manageDeptId, String date); public TbXjxdzhxxb getNumByPctj(String manageDeptId, String date);
public List<TbXjxdzhxxb> xjxdStatics(TbXjxdzhxxb xjxdzhxxb); public List<TbXjxdzhxxb> xjxdStatics(TbXjxdzhxxb xjxdzhxxb);
public SysDeptXzqh selectSysDeptXzqhById(String DeptId); public SysDeptXzqh selectSysDeptXzqhById(String DeptId);
public int xjxdCount(TbXjxdzhxxb xjxdzhxxb);
} }

View File

@ -31,13 +31,22 @@ public class TbXjxdzhxxb extends BaseEntity
private String XZQHMC; private String XZQHMC;
/** 公安机关代码 */ /** 公安机关代码 */
@Excel(name = "公安机关代码")
private String GAJGDM; private String GAJGDM;
@Excel(name = "公安机关代码")
private String deptId;
/** 公安机关名称 */ /** 公安机关名称 */
@Excel(name = "公安机关名称")
private String GAJGMC; private String GAJGMC;
@Excel(name = "公安机关名称")
private String deptName;
@Excel(name = "是否上报")
private String sfdj;
/** 登记日期 */ /** 登记日期 */
@Excel(name = "登记日期", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "登记日期", width = 30, dateFormat = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@ -193,6 +202,8 @@ public class TbXjxdzhxxb extends BaseEntity
@Excel(name = "查获管制刀具数量", readConverterExp = "把=") @Excel(name = "查获管制刀具数量", readConverterExp = "把=")
private Long ChwpGzdj; private Long ChwpGzdj;
private List<TbStuck> stuckList; private List<TbStuck> stuckList;
public String getId() { public String getId() {
@ -598,6 +609,30 @@ public class TbXjxdzhxxb extends BaseEntity
this.zafkrqStr = zafkrqStr; this.zafkrqStr = zafkrqStr;
} }
public String getDeptId() {
return deptId;
}
public void setDeptId(String deptId) {
this.deptId = deptId;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
public String getSfdj() {
return sfdj;
}
public void setSfdj(String sfdj) {
this.sfdj = sfdj;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

View File

@ -91,8 +91,17 @@ public class TbChryxxbServiceImpl implements ITbChryxxbService
public int insertTbChryxxbGs(TbChryxxb tbChryxxb) public int insertTbChryxxbGs(TbChryxxb tbChryxxb)
{ {
DataSourceUtil.setDB("db2"); int num = 0;
return tbChryxxbMapper.insertTbChryxxb(tbChryxxb); try {
DataSourceUtil.setDB("db2");
num = tbChryxxbMapper.insertTbChryxxb(tbChryxxb);
}catch (Exception e){
e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
}
return num;
} }
/** /**
@ -108,8 +117,16 @@ public class TbChryxxbServiceImpl implements ITbChryxxbService
} }
public int updateTbChryxxbGs(TbChryxxb tbChryxxb) public int updateTbChryxxbGs(TbChryxxb tbChryxxb)
{ {
DataSourceUtil.setDB("db2"); int num = 0;
return tbChryxxbMapper.updateTbChryxxb(tbChryxxb); try {
DataSourceUtil.setDB("db2");
num = tbChryxxbMapper.updateTbChryxxb(tbChryxxb);
}catch (Exception e){
e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
}
return num;
} }
/** /**

View File

@ -1,5 +1,6 @@
package basepro.manager.service.impl; package basepro.manager.service.impl;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
@ -82,17 +83,21 @@ public class TbMdjfjxxxbServiceImpl implements ITbMdjfjxxxbService
} }
public int insertTbMdjfjxxxbGs(TbMdjfjxxxb tbMdjfjxxxb) public int insertTbMdjfjxxxbGs(TbMdjfjxxxb tbMdjfjxxxb)
{ {
DataSourceUtil.setDB("db2"); int num = 0;
try { try {
DataSourceUtil.setDB("db2");
tbMdjfjxxxb.setFssj(DateUtils.parseDate(tbMdjfjxxxb.getFssjStr(),"yyyy-MM-dd HH:mm:ss")); tbMdjfjxxxb.setFssj(DateUtils.parseDate(tbMdjfjxxxb.getFssjStr(),"yyyy-MM-dd HH:mm:ss"));
tbMdjfjxxxb.setDjsj(DateUtils.parseDate(tbMdjfjxxxb.getDjsjStr(),"yyyy-MM-dd HH:mm:ss")); tbMdjfjxxxb.setDjsj(DateUtils.parseDate(tbMdjfjxxxb.getDjsjStr(),"yyyy-MM-dd HH:mm:ss"));
tbMdjfjxxxb.setTcsj(DateUtils.parseDate(tbMdjfjxxxb.getTcsjStr(),"yyyy-MM-dd HH:mm:ss")); tbMdjfjxxxb.setTcsj(DateUtils.parseDate(tbMdjfjxxxb.getTcsjStr(),"yyyy-MM-dd HH:mm:ss"));
tbMdjfjxxxb.setJlgxsj(DateUtils.parseDate(tbMdjfjxxxb.getJlgxsjStr(),"yyyy-MM-dd HH:mm:ss")); tbMdjfjxxxb.setJlgxsj(DateUtils.parseDate(tbMdjfjxxxb.getJlgxsjStr(),"yyyy-MM-dd HH:mm:ss"));
num = tbMdjfjxxxbMapper.insertTbMdjfjxxxb(tbMdjfjxxxb);
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
} }
return tbMdjfjxxxbMapper.insertTbMdjfjxxxb(tbMdjfjxxxb); return num;
} }
@Override @Override
@ -130,17 +135,21 @@ public class TbMdjfjxxxbServiceImpl implements ITbMdjfjxxxbService
} }
public int updateTbMdjfjxxxbGs(TbMdjfjxxxb tbMdjfjxxxb) public int updateTbMdjfjxxxbGs(TbMdjfjxxxb tbMdjfjxxxb)
{ {
int num = 0;
try { try {
DataSourceUtil.setDB("db2"); DataSourceUtil.setDB("db2");
tbMdjfjxxxb.setFssj(DateUtils.parseDate(tbMdjfjxxxb.getFssjStr(),"yyyy-MM-dd HH:mm:ss")); tbMdjfjxxxb.setFssj(DateUtils.parseDate(tbMdjfjxxxb.getFssjStr(),"yyyy-MM-dd HH:mm:ss"));
tbMdjfjxxxb.setDjsj(DateUtils.parseDate(tbMdjfjxxxb.getDjsjStr(),"yyyy-MM-dd HH:mm:ss")); tbMdjfjxxxb.setDjsj(DateUtils.parseDate(tbMdjfjxxxb.getDjsjStr(),"yyyy-MM-dd HH:mm:ss"));
tbMdjfjxxxb.setTcsj(DateUtils.parseDate(tbMdjfjxxxb.getTcsjStr(),"yyyy-MM-dd HH:mm:ss")); tbMdjfjxxxb.setTcsj(DateUtils.parseDate(tbMdjfjxxxb.getTcsjStr(),"yyyy-MM-dd HH:mm:ss"));
tbMdjfjxxxb.setJlgxsj(DateUtils.parseDate(tbMdjfjxxxb.getJlgxsjStr(),"yyyy-MM-dd HH:mm:ss")); tbMdjfjxxxb.setJlgxsj(DateUtils.parseDate(tbMdjfjxxxb.getJlgxsjStr(),"yyyy-MM-dd HH:mm:ss"));
num = tbMdjfjxxxbMapper.updateTbMdjfjxxxb(tbMdjfjxxxb);
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
} }
tbMdjfjxxxbMapper.updateTbMdjfjxxxb(tbMdjfjxxxb);
return tbMdjfjxxxbMapper.updateTbMdjfjxxxb(tbMdjfjxxxb); return num;
} }
/** /**
@ -174,7 +183,15 @@ public class TbMdjfjxxxbServiceImpl implements ITbMdjfjxxxbService
@Override @Override
public List<TbMdjfjxxxb> selectMdjfList(String jlgxsj) { public List<TbMdjfjxxxb> selectMdjfList(String jlgxsj) {
DataSourceUtil.setDB("db3"); List<TbMdjfjxxxb> list = new ArrayList<>();
return tbMdjfjxxxbMapper.selectMdjfList(jlgxsj); try {
DataSourceUtil.setDB("db3");
list = tbMdjfjxxxbMapper.selectMdjfList(jlgxsj);
}catch (Exception e){
e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
}
return list;
} }
} }

View File

@ -53,9 +53,11 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
* @return * @return
*/ */
@Override @Override
public TbXjxdzhxxb selectTbXjxdzhxxbById(Long Id) public TbXjxdzhxxb selectTbXjxdzhxxbById(String Id)
{ {
return tbXjxdzhxxbMapper.selectTbXjxdzhxxbById(Id); TbXjxdzhxxb xjxd = tbXjxdzhxxbMapper.selectTbXjxdzhxxbById(Id);
xjxd.setZafkrqStr(DateUtils.parseDateToStr("yyyy-MM-dd",xjxd.getZAFKRQ()));
return xjxd;
} }
/** /**
@ -72,9 +74,15 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
return getDataTable(list); return getDataTable(list);
} }
@Override
public TableDataInfo selectTbXjxdzhxxbListNoPage(TbXjxdzhxxb tbXjxdzhxxb) {
List<TbXjxdzhxxb> list = tbXjxdzhxxbMapper.xjxdStatics(tbXjxdzhxxb);
return getDataTable(list);
}
@Override @Override
public List<TbXjxdzhxxb> selectXjxdzhxxbList(TbXjxdzhxxb tbXjxdzhxxb) { public List<TbXjxdzhxxb> selectXjxdzhxxbList(TbXjxdzhxxb tbXjxdzhxxb) {
return tbXjxdzhxxbMapper.selectTbXjxdzhxxbList(tbXjxdzhxxb); return tbXjxdzhxxbMapper.xjxdStatics(tbXjxdzhxxb);
} }
/** /**
@ -93,17 +101,34 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
@Override @Override
// @DataSource(DataSourceEnum.DB2) // @DataSource(DataSourceEnum.DB2)
public int insertTbXjxdzhxxbGs(TbXjxdzhxxb tbXjxdzhxxb) { public int insertTbXjxdzhxxbGs(TbXjxdzhxxb tbXjxdzhxxb) {
DataSourceUtil.setDB("db2"); int num = 0;
tbXjxdzhxxb.setZAFKRQ(DateUtils.parseDate(tbXjxdzhxxb.getZafkrqStr())); try {
return tbXjxdzhxxbMapper.insertTbXjxdzhxxb(tbXjxdzhxxb); DataSourceUtil.setDB("db2");
tbXjxdzhxxb.setZAFKRQ(DateUtils.parseDate(tbXjxdzhxxb.getZafkrqStr()));
num = tbXjxdzhxxbMapper.insertTbXjxdzhxxb(tbXjxdzhxxb);
}catch (Exception e){
e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
}
return num;
} }
@Override @Override
// @DataSource(DataSourceEnum.DB2) // @DataSource(DataSourceEnum.DB2)
public int updateTbXjxdzhxxbGs(TbXjxdzhxxb tbXjxdzhxxb) { public int updateTbXjxdzhxxbGs(TbXjxdzhxxb tbXjxdzhxxb) {
DataSourceUtil.setDB("db2"); int num = 0;
tbXjxdzhxxb.setZAFKRQ(DateUtils.parseDate(tbXjxdzhxxb.getZafkrqStr())); try {
int num = tbXjxdzhxxbMapper.updateTbXjxdzhxxb(tbXjxdzhxxb); DataSourceUtil.setDB("db2");
tbXjxdzhxxb.setZAFKRQ(DateUtils.parseDate(tbXjxdzhxxb.getZafkrqStr()));
num = tbXjxdzhxxbMapper.updateTbXjxdzhxxb(tbXjxdzhxxb);
}catch (Exception e){
e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
}
return num; return num;
} }
@ -133,6 +158,21 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
return tbXjxdzhxxbMapper.deleteTbXjxdzhxxbByIds(Convert.toStrArray(ids)); return tbXjxdzhxxbMapper.deleteTbXjxdzhxxbByIds(Convert.toStrArray(ids));
} }
@Override
public int deleteTbXjxdzhxxbByIdsGs(String ids) {
int num = 0;
try {
DataSourceUtil.setDB("db2");
num = tbXjxdzhxxbMapper.deleteTbXjxdzhxxbByIds(Convert.toStrArray(ids));
}catch (Exception e){
e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
}
return num;
}
/** /**
* *
* *
@ -140,11 +180,26 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
* @return * @return
*/ */
@Override @Override
public int deleteTbXjxdzhxxbById(Long Id) public int deleteTbXjxdzhxxbById(String Id)
{ {
return tbXjxdzhxxbMapper.deleteTbXjxdzhxxbById(Id); return tbXjxdzhxxbMapper.deleteTbXjxdzhxxbById(Id);
} }
@Override
public int deleteTbXjxdzhxxbByIdGs(String Id) {
int num = 0;
try {
DataSourceUtil.setDB("db2");
num = tbXjxdzhxxbMapper.deleteTbXjxdzhxxbById(Id);
}catch (Exception e){
e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
}
return num;
}
@Override @Override
public TbXjxdzhxxb getNumByPctj(String manageDeptId ,String date) { public TbXjxdzhxxb getNumByPctj(String manageDeptId ,String date) {
TbXjxdzhxxb xjxd = new TbXjxdzhxxb(); TbXjxdzhxxb xjxd = new TbXjxdzhxxb();
@ -154,15 +209,24 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
HashMap map = new HashMap(); HashMap map = new HashMap();
map.put("beginTime",date); map.put("beginTime",date);
map.put("endTime",date); map.put("endTime",date);
xjxd.setZafkrqStr(date);
RoadCheckStatistics statistics = new RoadCheckStatistics(); RoadCheckStatistics statistics = new RoadCheckStatistics();
statistics.setDeptId(manageDeptId); statistics.setDeptId(manageDeptId);
statistics.setParams(map); statistics.setParams(map);
//社会面统计 //社会面统计
RoadCheckStatistics shmstatics = checkStatisticsMapper.getRoadCheckStatistics(statistics); RoadCheckStatistics shmstatics = checkStatisticsMapper.getRoadStatistics(statistics);
if (null != shmstatics){ if (null != shmstatics){
xjxd.setZAKDSL(Long.valueOf(shmstatics.getUnusualPeopleCount()));
xjxd.setJCCLSL(Long.valueOf(shmstatics.getAllCarCount())); xjxd.setJCCLSL(Long.valueOf(shmstatics.getAllCarCount()));
xjxd.setPCRYSL(Long.valueOf(shmstatics.getAllPeopleCount())); xjxd.setPCRYSL(Long.valueOf(shmstatics.getAllPeopleCount()));
Long ztCount = 0L;
if (null != shmstatics.getPtype() && !"".equals(shmstatics.getPtype())){
JSONObject object = JSONObject.parseObject(shmstatics.getPtype());
Long zt = object.getLong("3");
if (null != zt){
ztCount = zt;
}
}
xjxd.setZAKDSL(ztCount);
}else { }else {
xjxd.setZAKDSL(0L); xjxd.setZAKDSL(0L);
xjxd.setJCCLSL(0L); xjxd.setJCCLSL(0L);
@ -170,20 +234,31 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
} }
//卡点统计 //卡点统计
RoadCheckStatistics kdstatics = checkStatisticsMapper.getCheckStatistics(statistics); List<RoadCheckStatistics> list = checkStatisticsMapper.getCheckStatistics(statistics);
if (null != kdstatics){ if (null != list && list.size() != 0){
xjxd.setZAPCRYSL(Long.valueOf(kdstatics.getAllPeopleCount())); Long pcount = 0L;
xjxd.setZAPCCLSL(Long.valueOf(kdstatics.getAllCarCount())); Long ccount = 0L;
if (null != kdstatics.getPtype() && !"".equals(kdstatics.getPtype())){ Long ztcount = 0L;
JSONObject object = JSONObject.parseObject(kdstatics.getPtype()); Long sfcount = 0L;
Long zt = object.getLong("3"); for (RoadCheckStatistics kdstatics : list) {
Long sf = object.getLong("7"); pcount = pcount + Long.valueOf(kdstatics.getAllPeopleCount());
xjxd.setZHZTRYSL(zt); ccount = ccount + Long.valueOf(kdstatics.getAllCarCount());
xjxd.setQFSFRYSL(sf); if (null != kdstatics.getPtype() && !"".equals(kdstatics.getPtype())){
}else { JSONObject object = JSONObject.parseObject(kdstatics.getPtype());
xjxd.setZHZTRYSL(0L); Long zt = object.getLong("3");
xjxd.setQFSFRYSL(0l); Long sf = object.getLong("7");
if (null != zt){
ztcount = ztcount + zt;
}
if (null != sf){
sfcount = sfcount +sf;
}
}
} }
xjxd.setZAPCRYSL(pcount);
xjxd.setZAPCCLSL(ccount);
xjxd.setZHZTRYSL(ztcount);
xjxd.setQFSFRYSL(sfcount);
}else { }else {
xjxd.setZAPCRYSL(0L); xjxd.setZAPCRYSL(0L);
xjxd.setZAPCCLSL(0L); xjxd.setZAPCCLSL(0L);
@ -209,34 +284,41 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
xjxd.setXZQHDM(xzqh.getXzqhdm()); xjxd.setXZQHDM(xzqh.getXzqhdm());
xjxd.setXZQHMC(xzqh.getXzqhmc()); xjxd.setXZQHMC(xzqh.getXzqhmc());
} }
TbXjxdzhxxb mdjfpara = new TbXjxdzhxxb(); try {
mdjfpara.setGAJGDM(manageDeptId); TbXjxdzhxxb mdjfpara = new TbXjxdzhxxb();
mdjfpara.setZAFKRQ(DateUtils.parseDate(date)); mdjfpara.setGAJGDM(manageDeptId);
DataSourceUtil.setDB("db3"); mdjfpara.setZafkrqStr(date);
TbXjxdzhxxb mdjf = tbXjxdzhxxbMapper.getMdjfTj(mdjfpara); DataSourceUtil.setDB("db3");
if (null != mdjf){ TbXjxdzhxxb mdjf = tbXjxdzhxxbMapper.getMdjfTj(mdjfpara);
xjxd.setPCMDJFSL(mdjf.getPCMDJFSL()); if (null != mdjf){
xjxd.setHJMDJFSL(mdjf.getHJMDJFSL()); xjxd.setPCMDJFSL(mdjf.getPCMDJFSL());
xjxd.setHLJTJFSL(mdjf.getHLJTJFSL()); xjxd.setHJMDJFSL(mdjf.getHJMDJFSL());
xjxd.setHJHLJTJFSL(mdjf.getHJHLJTJFSL()); xjxd.setHLJTJFSL(mdjf.getHLJTJFSL());
xjxd.setLLJFSL(mdjf.getLLJFSL()); xjxd.setHJHLJTJFSL(mdjf.getHJHLJTJFSL());
xjxd.setHJLLJFSL(mdjf.getHJLLJFSL()); xjxd.setLLJFSL(mdjf.getLLJFSL());
xjxd.setJJJFSL(mdjf.getJJJFSL()); xjxd.setHJLLJFSL(mdjf.getHJLLJFSL());
xjxd.setHJJJJFSL(mdjf.getHJJJJFSL()); xjxd.setJJJFSL(mdjf.getJJJFSL());
xjxd.setYLJFSL(mdjf.getYLJFSL()); xjxd.setHJJJJFSL(mdjf.getHJJJJFSL());
xjxd.setHJYLJFSL(mdjf.getHJYLJFSL()); xjxd.setYLJFSL(mdjf.getYLJFSL());
}else { xjxd.setHJYLJFSL(mdjf.getHJYLJFSL());
xjxd.setPCMDJFSL(0L); }else {
xjxd.setHJMDJFSL(0L); xjxd.setPCMDJFSL(0L);
xjxd.setHLJTJFSL(0L); xjxd.setHJMDJFSL(0L);
xjxd.setHJHLJTJFSL(0L); xjxd.setHLJTJFSL(0L);
xjxd.setLLJFSL(0L); xjxd.setHJHLJTJFSL(0L);
xjxd.setHJLLJFSL(0L); xjxd.setLLJFSL(0L);
xjxd.setJJJFSL(0L); xjxd.setHJLLJFSL(0L);
xjxd.setHJJJJFSL(0L); xjxd.setJJJFSL(0L);
xjxd.setYLJFSL(0L); xjxd.setHJJJJFSL(0L);
xjxd.setHJYLJFSL(0L); xjxd.setYLJFSL(0L);
xjxd.setHJYLJFSL(0L);
}
}catch (Exception e){
e.printStackTrace();
}finally {
DataSourceUtil.clearDB();
} }
return xjxd; return xjxd;
} }
@ -260,4 +342,9 @@ public class TbXjxdzhxxbServiceImpl implements ITbXjxdzhxxbService
public SysDeptXzqh selectSysDeptXzqhById(String DeptId) { public SysDeptXzqh selectSysDeptXzqhById(String DeptId) {
return xzqhMapper.selectSysDeptXzqhById(DeptId); return xzqhMapper.selectSysDeptXzqhById(DeptId);
} }
@Override
public int xjxdCount(TbXjxdzhxxb xjxdzhxxb) {
return tbXjxdzhxxbMapper.xjxdCount(xjxdzhxxb);
}
} }

View File

@ -69,7 +69,7 @@ public class TbMdjfjxxxbController extends BaseController
/** /**
* *
*/ */
@RequiresPermissions("system:mdjfjxxxb:export") // @RequiresPermissions("system:mdjfjxxxb:export")
@PostMapping("/export") @PostMapping("/export")
@ResponseBody @ResponseBody
public AjaxResult export(TbMdjfjxxxb tbMdjfjxxxb) public AjaxResult export(TbMdjfjxxxb tbMdjfjxxxb)
@ -139,7 +139,7 @@ public class TbMdjfjxxxbController extends BaseController
return toAjax(tbMdjfjxxxbService.deleteTbMdjfjxxxbByIds(ids)); return toAjax(tbMdjfjxxxbService.deleteTbMdjfjxxxbByIds(ids));
} }
@Scheduled(cron = "4 11/5 * ? * *") // @Scheduled(cron = "0 0/4 * * * ?")
public void mdjfDataScheduled(){ public void mdjfDataScheduled(){
Date exDate = tbMdjfjxxxbService.selectMaxJlsj(); Date exDate = tbMdjfjxxxbService.selectMaxJlsj();
List<TbMdjfjxxxb> mdjfjxxxbList = tbMdjfjxxxbService.selectMdjfList(DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss",exDate)); List<TbMdjfjxxxb> mdjfjxxxbList = tbMdjfjxxxbService.selectMdjfList(DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss",exDate));

View File

@ -17,6 +17,7 @@ import guo.ping.e3mall.common.page.PageDomain;
import guo.ping.e3mall.common.page.TableDataInfo; import guo.ping.e3mall.common.page.TableDataInfo;
import guo.ping.e3mall.common.page.TableSupport; import guo.ping.e3mall.common.page.TableSupport;
import guo.ping.e3mall.common.pojo.AjaxResult; import guo.ping.e3mall.common.pojo.AjaxResult;
import guo.ping.e3mall.common.utils.DateUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -59,29 +60,30 @@ public class TbXjxdzhxxbController extends BaseController
@ResponseBody @ResponseBody
public TableDataInfo list(TbXjxdzhxxb tbXjxdzhxxb) public TableDataInfo list(TbXjxdzhxxb tbXjxdzhxxb)
{ {
startPage(); // startPage();
PageDomain pageDomain = TableSupport.buildPageRequest(); // PageDomain pageDomain = TableSupport.buildPageRequest();
Integer pageNum = pageDomain.getPageNum(); // tbXjxdzhxxb.setZafkrqStr(DateUtils.parseDateToStr("yyyy-mm-dd",tbXjxdzhxxb.getZAFKRQ()));
Integer pageSize = pageDomain.getPageSize(); // Integer pageNum = pageDomain.getPageNum();
// Integer pageSize = pageDomain.getPageSize();
SysUser user = ShiroUtils.getSysUser(); SysUser user = ShiroUtils.getSysUser();
if ("340000000000".equals(user.getManageDeptId()) || "0".equals(user.getManageDeptId())){ if ("340000000000".equals(user.getManageDeptId()) || "0".equals(user.getManageDeptId())){
} }
TableDataInfo info = tbXjxdzhxxbService.selectTbXjxdzhxxbList(tbXjxdzhxxb,pageNum,pageSize); TableDataInfo info = tbXjxdzhxxbService.selectTbXjxdzhxxbListNoPage(tbXjxdzhxxb);
return info; return info;
} }
/** /**
* *
*/ */
@RequiresPermissions("system:xjxdzhxxb:export") // @RequiresPermissions("system:xjxdzhxxb:export")
@PostMapping("/export") @PostMapping("/export")
@ResponseBody @ResponseBody
public AjaxResult export(TbXjxdzhxxb tbXjxdzhxxb) public AjaxResult export(TbXjxdzhxxb tbXjxdzhxxb)
{ {
List<TbXjxdzhxxb> list = tbXjxdzhxxbService.selectXjxdzhxxbList(tbXjxdzhxxb); List<TbXjxdzhxxb> list = tbXjxdzhxxbService.selectXjxdzhxxbList(tbXjxdzhxxb);
ExcelUtil<TbXjxdzhxxb> util = new ExcelUtil<TbXjxdzhxxb>(TbXjxdzhxxb.class); ExcelUtil<TbXjxdzhxxb> util = new ExcelUtil<TbXjxdzhxxb>(TbXjxdzhxxb.class);
return util.exportExcel(list, "xjxdzhxxb"); return util.exportExcel(list, "数据上报");
} }
/** /**
@ -119,11 +121,21 @@ public class TbXjxdzhxxbController extends BaseController
return AjaxResult.success(xjxd); return AjaxResult.success(xjxd);
} }
@PostMapping("/getCountByDate")
@ResponseBody
public AjaxResult getCountByDate(String date,String zzjgdm){
TbXjxdzhxxb xjxdzhxxb = new TbXjxdzhxxb();
xjxdzhxxb.setZafkrqStr(date);
xjxdzhxxb.setGAJGDM(zzjgdm);
int num = tbXjxdzhxxbService.xjxdCount(xjxdzhxxb);
return AjaxResult.success(num);
}
/** /**
* *
*/ */
@GetMapping("/edit/{Id}") @GetMapping("/edit/{Id}")
public String edit(@PathVariable("Id") Long Id, ModelMap mmap) public String edit(@PathVariable("Id") String Id, ModelMap mmap)
{ {
TbXjxdzhxxb tbXjxdzhxxb = tbXjxdzhxxbService.selectTbXjxdzhxxbById(Id); TbXjxdzhxxb tbXjxdzhxxb = tbXjxdzhxxbService.selectTbXjxdzhxxbById(Id);
mmap.put("tbXjxdzhxxb", tbXjxdzhxxb); mmap.put("tbXjxdzhxxb", tbXjxdzhxxb);
@ -139,6 +151,7 @@ public class TbXjxdzhxxbController extends BaseController
@ResponseBody @ResponseBody
public AjaxResult editSave(TbXjxdzhxxb tbXjxdzhxxb) public AjaxResult editSave(TbXjxdzhxxb tbXjxdzhxxb)
{ {
tbXjxdzhxxbService.updateTbXjxdzhxxbGs(tbXjxdzhxxb);
return toAjax(tbXjxdzhxxbService.updateTbXjxdzhxxb(tbXjxdzhxxb)); return toAjax(tbXjxdzhxxbService.updateTbXjxdzhxxb(tbXjxdzhxxb));
} }
@ -151,6 +164,7 @@ public class TbXjxdzhxxbController extends BaseController
@ResponseBody @ResponseBody
public AjaxResult remove(String ids) public AjaxResult remove(String ids)
{ {
tbXjxdzhxxbService.deleteTbXjxdzhxxbByIdGs(ids);
return toAjax(tbXjxdzhxxbService.deleteTbXjxdzhxxbByIds(ids)); return toAjax(tbXjxdzhxxbService.deleteTbXjxdzhxxbByIds(ids));
} }
} }

View File

@ -54,6 +54,24 @@ $(function() {
} }
} }
}); });
var nowDate = laydate.render({
elem: '#nowTime',
theme: 'molv',
trigger: 'click',
// value: new Date(),
done: function(value, date) {
// 结束时间大于开始时间
if (value !== '') {
endDate.config.min.year = date.year;
endDate.config.min.month = date.month - 1;
endDate.config.min.date = date.date;
} else {
endDate.config.min.year = '';
endDate.config.min.month = '';
endDate.config.min.date = '';
}
}
});
var endDate = laydate.render({ var endDate = laydate.render({
elem: '#endTime', elem: '#endTime',
min: $('#startTime').val(), min: $('#startTime').val(),

View File

@ -105,6 +105,8 @@
updateUrl: prefix + "/edit/{id}", updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove", removeUrl: prefix + "/remove",
exportUrl: prefix + "/export", exportUrl: prefix + "/export",
sortName: "jcsj",
sortOrder: "desc",
modalName: "检查站查获人员信息", modalName: "检查站查获人员信息",
columns: [{ columns: [{
checkbox: true checkbox: true
@ -160,7 +162,7 @@
field : 'jcsjStr', field : 'jcsjStr',
title : '检查时间' title : '检查时间'
}, },
{ /*{
title: '操作', title: '操作',
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
@ -169,7 +171,7 @@
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}] }*/]
}; };
$.table.init(options); $.table.init(options);
}); });

View File

@ -100,6 +100,8 @@
removeUrl: prefix + "/remove", removeUrl: prefix + "/remove",
exportUrl: prefix + "/export", exportUrl: prefix + "/export",
modalName: "矛盾纠纷简项信息", modalName: "矛盾纠纷简项信息",
sortName: "djsj",
sortOrder: "desc",
columns: [{ columns: [{
checkbox: true checkbox: true
}, },
@ -108,10 +110,10 @@
title : '矛盾纠纷编号', title : '矛盾纠纷编号',
visible: false visible: false
}, },
{ /*{
field : 'fssj', field : 'fssj',
title : '纠纷发生时间' title : '纠纷发生时间'
}, },*/
/*{ /*{
field : 'xzqhdm', field : 'xzqhdm',
title : '矛盾纠纷地行政区划代码' title : '矛盾纠纷地行政区划代码'
@ -192,7 +194,7 @@
field : 'jlgxsj', field : 'jlgxsj',
title : '记录更新时间' title : '记录更新时间'
},*/ },*/
{ /*{
title: '操作', title: '操作',
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
@ -201,7 +203,7 @@
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.mdjfbh + '\')"><i class="fa fa-remove"></i>删除</a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.mdjfbh + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
}] }*/]
}; };
$.table.init(options); $.table.init(options);
}); });

View File

@ -13,7 +13,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">行政区划代码:</label> <label class="col-sm-4 control-label">行政区划代码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="XZQHDM" class="form-control" type="text" required> <input name="XZQHDM" class="form-control" th:value="*{xjxd.XZQHDM}" readonly type="text" required>
</div> </div>
</div> </div>
</div> </div>
@ -21,7 +21,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">行政区划名称:</label> <label class="col-sm-4 control-label">行政区划名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="XZQHMC" class="form-control" type="text" required> <input name="XZQHMC" class="form-control" th:value="*{xjxd.XZQHMC}" readonly type="text" required>
</div> </div>
</div> </div>
</div> </div>
@ -31,7 +31,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">公安机关代码:</label> <label class="col-sm-4 control-label">公安机关代码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="GAJGDM" class="form-control" type="text" th:value="*{xjxd.GAJGDM}" required> <input name="GAJGDM" id="zzjgdm" class="form-control" type="text" readonly th:value="*{xjxd.GAJGDM}" required>
</div> </div>
</div> </div>
</div> </div>
@ -39,7 +39,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">公安机关名称:</label> <label class="col-sm-4 control-label">公安机关名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="GAJGMC" class="form-control" type="text" th:value="*{xjxd.GAJGMC}" required> <input name="GAJGMC" class="form-control" type="text" readonly th:value="*{xjxd.GAJGMC}" required>
</div> </div>
</div> </div>
</div> </div>
@ -49,7 +49,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">登记日期:</label> <label class="col-sm-4 control-label">登记日期:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="zafkrqStr" class="form-control" type="text" required> <input name="zafkrqStr" id="zafkrqStr" th:value="*{xjxd.zafkrqStr}" readonly class="form-control" type="text" required>
</div> </div>
</div> </div>
</div> </div>
@ -63,7 +63,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">投入民辅警力数量:</label> <label class="col-sm-4 control-label">投入民辅警力数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="TRXFJLSL" class="form-control" type="number" value="0" required> <input name="TRXFJLSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
@ -72,7 +72,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">投入巡防车辆数量:</label> <label class="col-sm-4 control-label">投入巡防车辆数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="TRXFCLSL" class="form-control" type="number" value="0" required> <input name="TRXFCLSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -82,7 +82,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">发动群防群治力量数量(人次)</label> <label class="col-sm-4 control-label">发动群防群治力量数量(人次)</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="QFQZSL" class="form-control" type="number" value="0" required> <input name="QFQZSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -90,7 +90,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>抓获违法犯罪嫌疑人数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>抓获违法犯罪嫌疑人数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ZAKDSL" class="form-control" type="number" value="0" th:value="*{xjxd.ZAKDSL}" required> <input name="ZAKDSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.ZAKDSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -100,7 +100,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>检查车辆数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>检查车辆数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="JCCLSL" class="form-control" type="number" value="0" th:value="*{xjxd.JCCLSL}" required> <input name="JCCLSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.JCCLSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -108,7 +108,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>盘查人员数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>盘查人员数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="PCRYSL" class="form-control" type="number" value="0" th:value="*{xjxd.PCRYSL}" required> <input name="PCRYSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.PCRYSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -118,7 +118,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">巡查重点部位数量:</label> <label class="col-sm-4 control-label">巡查重点部位数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="XCZDBWSL" class="form-control" type="number" value="0" required> <input name="XCZDBWSL" class="form-control" min="0" type="number" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -126,14 +126,14 @@
</div> </div>
</div> </div>
<div class="row"><span style="color: red; ">注*数据来源为人车物平台路面盘查数据,可根据实际情况进行修改</span></div> <div class="row"><span style="color: red; ">注*数据来源为社会面人车物核验数据,请根据实际情况进行修改</span></div>
<h4 class="form-header h4">社会面防控总体情况</h4> <h4 class="form-header h4">安全隐患排查整治</h4>
<div class="row"> <div class="row">
<div class="col-sm-5"> <div class="col-sm-5">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查场所数量:</label> <label class="col-sm-4 control-label">检查场所数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="JCFXYHCSSL" class="form-control" type="number" value="0" required> <input name="JCFXYHCSSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -141,7 +141,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查出租屋、群租房数量:</label> <label class="col-sm-4 control-label">检查出租屋、群租房数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="FxyhcsCzwsl" class="form-control" type="number" value="0" required> <input name="FxyhcsCzwsl" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -151,7 +151,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查旅馆数量:</label> <label class="col-sm-4 control-label">检查旅馆数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="FxyhcsLgsl" class="form-control" type="number" value="0" required> <input name="FxyhcsLgsl" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -159,7 +159,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查娱乐场所数量:</label> <label class="col-sm-4 control-label">检查娱乐场所数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="FxyhcsYlcssl" class="form-control" type="number" value="0" required> <input name="FxyhcsYlcssl" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -169,7 +169,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">排查安全隐患数量:</label> <label class="col-sm-4 control-label">排查安全隐患数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="PCAQYHSL" class="form-control" type="number" value="0" required> <input name="PCAQYHSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -177,7 +177,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">消除安全隐患数量:</label> <label class="col-sm-4 control-label">消除安全隐患数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="XCAQYHSL" class="form-control" type="number" value="0" required> <input name="XCAQYHSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -188,7 +188,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴枪支数量:</label> <label class="col-sm-4 control-label">收缴枪支数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpQz" class="form-control" type="number" value="0" required> <input name="SjzdwpQz" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -196,7 +196,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴子弹数量:</label> <label class="col-sm-4 control-label">收缴子弹数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpZd" class="form-control" type="number" value="0" required> <input name="SjzdwpZd" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -206,7 +206,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴炸药、黑火药数量:</label> <label class="col-sm-4 control-label">收缴炸药、黑火药数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpZy" class="form-control" type="number" value="0" required> <input name="SjzdwpZy" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -214,7 +214,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴雷管数量:</label> <label class="col-sm-4 control-label">收缴雷管数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpLg" class="form-control" type="number" value="0" required> <input name="SjzdwpLg" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -224,7 +224,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴易制爆化学品数量:</label> <label class="col-sm-4 control-label">收缴易制爆化学品数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpYzbhxp" class="form-control" type="number" value="0" required> <input name="SjzdwpYzbhxp" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -232,7 +232,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴剧毒化学品数量:</label> <label class="col-sm-4 control-label">收缴剧毒化学品数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpJdhxp" class="form-control" type="number" value="0" required> <input name="SjzdwpJdhxp" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -242,7 +242,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴管制刀具数量:</label> <label class="col-sm-4 control-label">收缴管制刀具数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpGzdj" class="form-control" type="number" value="0" required> <input name="SjzdwpGzdj" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -256,7 +256,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>排查矛盾纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>排查矛盾纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="PCMDJFSL" class="form-control" type="number" value="0" required> <input name="PCMDJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -264,7 +264,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解矛盾纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解矛盾纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJMDJFSL" class="form-control" type="number" value="0" required> <input name="HJMDJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -274,7 +274,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>婚恋家庭纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>婚恋家庭纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HLJTJFSL" class="form-control" type="number" value="0" required> <input name="HLJTJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -282,7 +282,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解婚恋家庭纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解婚恋家庭纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJHLJTJFSL" class="form-control" type="number" value="0" required> <input name="HJHLJTJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -292,7 +292,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>邻里纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>邻里纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="LLJFSL" class="form-control" type="number" value="0" required> <input name="LLJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -300,7 +300,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解邻里纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解邻里纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJLLJFSL" class="form-control" type="number" value="0" required> <input name="HJLLJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -310,7 +310,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>经济纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>经济纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="JJJFSL" class="form-control" type="number" value="0" required> <input name="JJJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -318,7 +318,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解经济纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解经济纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJJJJFSL" class="form-control" type="number" value="0" required> <input name="HJJJJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -328,7 +328,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>医疗纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>医疗纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="YLJFSL" class="form-control" type="number" value="0" required> <input name="YLJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -336,19 +336,19 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解医疗纠纷数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>化解医疗纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJYLJFSL" class="form-control" type="number" value="0" required> <input name="HJYLJFSL" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"><span style="color: red; ">注*数据来源为瑞信矛盾纠纷平台数据,可根据实际情况进行修改</span></div> <div class="row"><span style="color: red; ">注*数据来源为治安总队矛盾纠纷数据,请根据实际情况进行修改</span></div>
<h4 class="form-header h4">检查站查控</h4> <h4 class="form-header h4">检查站查控</h4>
<div class="row"> <div class="row">
<div class="col-sm-5"> <div class="col-sm-5">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>运行公安检查站数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>运行公安检查站数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="YXGAJCZSL" class="form-control" type="number" value="0" th:value="*{xjxd.YXGAJCZSL}" required> <input name="YXGAJCZSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.YXGAJCZSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -356,7 +356,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>设立临时治安卡点数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>设立临时治安卡点数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SLZHKDSL" class="form-control" type="number" value="0" th:value="*{xjxd.SLZHKDSL}" required> <input name="SLZHKDSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.SLZHKDSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -366,7 +366,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>核查人员数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>核查人员数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ZAPCRYSL" class="form-control" type="number" value="0" th:value="*{xjxd.ZAPCRYSL}" required> <input name="ZAPCRYSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.ZAPCRYSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -374,7 +374,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>检查车辆数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>检查车辆数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ZAPCCLSL" class="form-control" type="number" value="0" th:value="*{xjxd.ZAPCCLSL}" required> <input name="ZAPCCLSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.ZAPCCLSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -384,7 +384,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>抓获在逃人员数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>抓获在逃人员数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ZHZTRYSL" class="form-control" type="number" value="0" th:value="*{xjxd.ZHZTRYSL}" required> <input name="ZHZTRYSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.ZHZTRYSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -392,7 +392,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label"><span style="color: red; ">*</span>劝返涉访人员数量:</label> <label class="col-sm-4 control-label"><span style="color: red; ">*</span>劝返涉访人员数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="QFSFRYSL" class="form-control" type="number" value="0" th:value="*{xjxd.QFSFRYSL}" required> <input name="QFSFRYSL" class="form-control" type="number" min="0" value="0" th:value="*{xjxd.QFSFRYSL}" required>
</div> </div>
</div> </div>
</div> </div>
@ -402,7 +402,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">查获管制刀具数量:</label> <label class="col-sm-4 control-label">查获管制刀具数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ChwpGzdj" class="form-control" type="number" value="0" required> <input name="ChwpGzdj" class="form-control" type="number" min="0" value="0" required>
</div> </div>
</div> </div>
</div> </div>
@ -410,7 +410,7 @@
</div> </div>
</div> </div>
<div class="row"><span style="color: red; ">注*数据来源为人车物平台卡点盘查数据,可根据实际情况进行修改</span></div> <div class="row"><span style="color: red; ">注*数据来源为社会面人车物核验数据,请根据实际情况进行修改</span></div>
</form> </form>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
@ -421,16 +421,36 @@
focusCleanup: true focusCleanup: true
}); });
var today = new Date();
function submitHandler() { function submitHandler() {
if ($.validate.form()) { var starttime=$('#zafkrqStr').val();
$.operate.save(prefix + "/add", $('#form-xjxdzhxxb-add').serialize()); $.ajax({
} url: prefix + '/getCountByDate',
type: 'POST',
data: {date: starttime,zzjgdm:$("#zzjgdm").val()},
success: function (res) {
var data = res.data;
debugger;
if (data > 0){
$.modal.alertWarning("本单位已上报当日数据,无需重复上报!");
return;
}else {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-xjxdzhxxb-add').serialize());
}
}
}
})
} }
$("input[name='zafkrqStr']").datetimepicker({ /*$("input[name='zafkrqStr']").datetimepicker({
format: "yyyy-mm-dd", format: "yyyy-mm-dd",
minView: 2, minView: 2,
autoclose: true autoclose: true,
initialDate:new Date(),
endDate: today,
}).on('changeDate',function(){ }).on('changeDate',function(){
var starttime=$('#zafkrqStr').val(); var starttime=$('#zafkrqStr').val();
$.ajax({ $.ajax({
@ -442,7 +462,7 @@
$(':input[name="ZAKDSL"]').val(data.zakdsl); $(':input[name="ZAKDSL"]').val(data.zakdsl);
$(':input[name="JCCLSL"]').val(data.jcclsl); $(':input[name="JCCLSL"]').val(data.jcclsl);
$(':input[name="PCRYSL"]').val(data.pcrysl); $(':input[name="PCRYSL"]').val(data.pcrysl);
/* $(':input[name="PCMDJFSL"]').val(data.pcmdjfsl); $(':input[name="PCMDJFSL"]').val(data.pcmdjfsl);
$(':input[name="HJMDJFSL"]').val(data.hjmdjfsl); $(':input[name="HJMDJFSL"]').val(data.hjmdjfsl);
$(':input[name="HLJTJFSL"]').val(data.hljtjfsl); $(':input[name="HLJTJFSL"]').val(data.hljtjfsl);
$(':input[name="HJHLJTJFSL"]').val(data.hjhljtjfsl); $(':input[name="HJHLJTJFSL"]').val(data.hjhljtjfsl);
@ -451,7 +471,7 @@
$(':input[name="JJJFSL"]').val(data.jjjfsl); $(':input[name="JJJFSL"]').val(data.jjjfsl);
$(':input[name="HJJJJFSL"]').val(data.hjjjjfsl); $(':input[name="HJJJJFSL"]').val(data.hjjjjfsl);
$(':input[name="YLJFSL"]').val(data.yljfsl); $(':input[name="YLJFSL"]').val(data.yljfsl);
$(':input[name="HJYLJFSL"]').val(data.hjyljfsl);*/ $(':input[name="HJYLJFSL"]').val(data.hjyljfsl);
$(':input[name="YXGAJCZSL"]').val(data.yxgajczsl); $(':input[name="YXGAJCZSL"]').val(data.yxgajczsl);
$(':input[name="SLZHKDSL"]').val(data.slzhkdsl); $(':input[name="SLZHKDSL"]').val(data.slzhkdsl);
$(':input[name="ZAPCRYSL"]').val(data.zapcrysl); $(':input[name="ZAPCRYSL"]').val(data.zapcrysl);
@ -464,6 +484,7 @@
} }
}) })
}); });
*/
</script> </script>
</body> </body>
</html> </html>

View File

@ -14,7 +14,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">行政区划代码:</label> <label class="col-sm-4 control-label">行政区划代码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="XZQHDM" th:field="*{XZQHDM}" class="form-control" type="text" required> <input name="XZQHDM" th:field="*{XZQHDM}" class="form-control" readonly type="text" required>
</div> </div>
</div> </div>
</div> </div>
@ -22,7 +22,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">行政区划名称:</label> <label class="col-sm-4 control-label">行政区划名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="XZQHMC" th:field="*{XZQHMC}" class="form-control" type="text" required> <input name="XZQHMC" th:field="*{XZQHMC}" class="form-control" readonly type="text" required>
</div> </div>
</div> </div>
</div> </div>
@ -32,7 +32,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">公安机关代码:</label> <label class="col-sm-4 control-label">公安机关代码:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="GAJGDM" th:field="*{GAJGDM}" class="form-control" type="text" required> <input name="GAJGDM" th:field="*{GAJGDM}" class="form-control" readonly type="text" required>
</div> </div>
</div> </div>
</div> </div>
@ -40,26 +40,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">公安机关名称:</label> <label class="col-sm-4 control-label">公安机关名称:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="GAJGMC" th:field="*{GAJGMC}" class="form-control" type="text" required> <input name="GAJGMC" th:field="*{GAJGMC}" class="form-control" readonly type="text" required>
</div>
</div>
</div>
</div>
<h4 class="form-header h4">社会面防控总体情况</h4>
<div class="row">
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">投入民辅警力数量:</label>
<div class="col-sm-8">
<input name="TRXFJLSL" th:field="*{TRXFJLSL}" class="form-control" type="number" required>
</div>
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">投入巡防车辆数量:</label>
<div class="col-sm-8">
<input name="TRXFCLSL" th:field="*{TRXFCLSL}" class="form-control" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -67,45 +48,9 @@
<div class="row"> <div class="row">
<div class="col-sm-5"> <div class="col-sm-5">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">发动群防群治力量数量(人次)</label> <label class="col-sm-4 control-label">登记日期</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="QFQZSL" th:field="*{QFQZSL}" class="form-control" type="number" required> <input id="zafkrqStr" th:field="*{zafkrqStr}" class="form-control" readonly type="text" readonly required>
</div>
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">抓获现行违法犯罪嫌疑人数量:</label>
<div class="col-sm-8">
<input name="ZAKDSL" th:field="*{ZAKDSL}" class="form-control" type="number" required>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">检查车辆数量:</label>
<div class="col-sm-8">
<input name="JCCLSL" th:field="*{JCCLSL}" class="form-control" type="text" required>
</div>
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">盘查人员数量:</label>
<div class="col-sm-8">
<input name="PCRYSL" th:field="*{PCRYSL}" class="form-control" type="number" required>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">巡查重点部位数量:</label>
<div class="col-sm-8">
<input name="XCZDBWSL" th:field="*{XCZDBWSL}" class="form-control" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -114,12 +59,80 @@
</div> </div>
</div> </div>
<h4 class="form-header h4">社会面防控总体情况</h4> <h4 class="form-header h4">社会面防控总体情况</h4>
<div class="row">
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">投入民辅警力数量:</label>
<div class="col-sm-8">
<input name="TRXFJLSL" th:field="*{TRXFJLSL}" class="form-control" min="0" type="number" required>
</div>
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">投入巡防车辆数量:</label>
<div class="col-sm-8">
<input name="TRXFCLSL" th:field="*{TRXFCLSL}" class="form-control" min="0" type="number" required>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">发动群防群治力量数量(人次)</label>
<div class="col-sm-8">
<input name="QFQZSL" th:field="*{QFQZSL}" class="form-control" min="0" type="number" required>
</div>
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">抓获现行违法犯罪嫌疑人数量:</label>
<div class="col-sm-8">
<input name="ZAKDSL" th:field="*{ZAKDSL}" class="form-control" min="0" type="number" required>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">检查车辆数量:</label>
<div class="col-sm-8">
<input name="JCCLSL" th:field="*{JCCLSL}" class="form-control" min="0" type="text" required>
</div>
</div>
</div>
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">盘查人员数量:</label>
<div class="col-sm-8">
<input name="PCRYSL" th:field="*{PCRYSL}" class="form-control" min="0" type="number" required>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<div class="form-group">
<label class="col-sm-4 control-label">巡查重点部位数量:</label>
<div class="col-sm-8">
<input name="XCZDBWSL" th:field="*{XCZDBWSL}" class="form-control" min="0" type="number" required>
</div>
</div>
</div>
<div class="col-sm-5">
</div>
</div>
<h4 class="form-header h4">安全隐患排查整治</h4>
<div class="row"> <div class="row">
<div class="col-sm-5"> <div class="col-sm-5">
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查场所数量:</label> <label class="col-sm-4 control-label">检查场所数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="JCFXYHCSSL" th:field="*{JCFXYHCSSL}" class="form-control" type="number" required> <input name="JCFXYHCSSL" th:field="*{JCFXYHCSSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -127,7 +140,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查出租屋、群租房数量:</label> <label class="col-sm-4 control-label">检查出租屋、群租房数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="FxyhcsCzwsl" th:field="*{FxyhcsCzwsl}" class="form-control" type="number" required> <input name="FxyhcsCzwsl" th:field="*{FxyhcsCzwsl}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -137,7 +150,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查旅馆数量:</label> <label class="col-sm-4 control-label">检查旅馆数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="FxyhcsLgsl" th:field="*{FxyhcsLgsl}" class="form-control" type="number" required> <input name="FxyhcsLgsl" th:field="*{FxyhcsLgsl}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -145,7 +158,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查娱乐场所数量:</label> <label class="col-sm-4 control-label">检查娱乐场所数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="FxyhcsYlcssl" th:field="*{FxyhcsYlcssl}" class="form-control" type="number" required> <input name="FxyhcsYlcssl" th:field="*{FxyhcsYlcssl}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -155,7 +168,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">排查安全隐患数量:</label> <label class="col-sm-4 control-label">排查安全隐患数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="PCAQYHSL" th:field="*{PCAQYHSL}" class="form-control" type="number" required> <input name="PCAQYHSL" th:field="*{PCAQYHSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -163,7 +176,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">消除安全隐患数量:</label> <label class="col-sm-4 control-label">消除安全隐患数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="XCAQYHSL" th:field="*{XCAQYHSL}" class="form-control" type="number" required> <input name="XCAQYHSL" th:field="*{XCAQYHSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -174,7 +187,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴枪支数量:</label> <label class="col-sm-4 control-label">收缴枪支数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpQz" th:field="*{SjzdwpQz}" class="form-control" type="number" required> <input name="SjzdwpQz" th:field="*{SjzdwpQz}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -182,7 +195,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴子弹数量:</label> <label class="col-sm-4 control-label">收缴子弹数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpZd" th:field="*{SjzdwpZd}" class="form-control" type="number" required> <input name="SjzdwpZd" th:field="*{SjzdwpZd}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -192,7 +205,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴炸药、黑火药数量:</label> <label class="col-sm-4 control-label">收缴炸药、黑火药数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpZy" th:field="*{SjzdwpZy}" class="form-control" type="number" required> <input name="SjzdwpZy" th:field="*{SjzdwpZy}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -200,7 +213,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴雷管数量:</label> <label class="col-sm-4 control-label">收缴雷管数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpLg" th:field="*{SjzdwpLg}" class="form-control" type="number" required> <input name="SjzdwpLg" th:field="*{SjzdwpLg}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -210,7 +223,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴易制爆化学品数量:</label> <label class="col-sm-4 control-label">收缴易制爆化学品数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpYzbhxp" th:field="*{SjzdwpYzbhxp}" class="form-control" type="number" required> <input name="SjzdwpYzbhxp" th:field="*{SjzdwpYzbhxp}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -218,7 +231,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴剧毒化学品数量:</label> <label class="col-sm-4 control-label">收缴剧毒化学品数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpJdhxp" th:field="*{SjzdwpJdhxp}" class="form-control" type="number" required> <input name="SjzdwpJdhxp" th:field="*{SjzdwpJdhxp}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -228,7 +241,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">收缴管制刀具数量:</label> <label class="col-sm-4 control-label">收缴管制刀具数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SjzdwpGzdj" th:field="*{SjzdwpGzdj}" class="form-control" type="number" required> <input name="SjzdwpGzdj" th:field="*{SjzdwpGzdj}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -242,7 +255,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">排查矛盾纠纷数量:</label> <label class="col-sm-4 control-label">排查矛盾纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="PCMDJFSL" th:field="*{PCMDJFSL}" class="form-control" type="number" required> <input name="PCMDJFSL" th:field="*{PCMDJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -250,7 +263,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">化解矛盾纠纷数量:</label> <label class="col-sm-4 control-label">化解矛盾纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJMDJFSL" th:field="*{HJMDJFSL}" class="form-control" type="number" required> <input name="HJMDJFSL" th:field="*{HJMDJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -260,7 +273,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">婚恋家庭纠纷数量:</label> <label class="col-sm-4 control-label">婚恋家庭纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HLJTJFSL" th:field="*{HLJTJFSL}" class="form-control" type="number" required> <input name="HLJTJFSL" th:field="*{HLJTJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -268,7 +281,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">化解婚恋家庭纠纷数量:</label> <label class="col-sm-4 control-label">化解婚恋家庭纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJHLJTJFSL" th:field="*{HJHLJTJFSL}" class="form-control" type="number" required> <input name="HJHLJTJFSL" th:field="*{HJHLJTJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -278,7 +291,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">邻里纠纷数量:</label> <label class="col-sm-4 control-label">邻里纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="LLJFSL" th:field="*{LLJFSL}" class="form-control" type="number" required> <input name="LLJFSL" th:field="*{LLJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -286,7 +299,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">化解邻里纠纷数量:</label> <label class="col-sm-4 control-label">化解邻里纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJLLJFSL" th:field="*{HJLLJFSL}" class="form-control" type="number" required> <input name="HJLLJFSL" th:field="*{HJLLJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -296,7 +309,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">经济纠纷数量:</label> <label class="col-sm-4 control-label">经济纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="JJJFSL" th:field="*{JJJFSL}" class="form-control" type="number" required> <input name="JJJFSL" th:field="*{JJJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -304,7 +317,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">化解经济纠纷数量:</label> <label class="col-sm-4 control-label">化解经济纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJJJJFSL" th:field="*{HJJJJFSL}" class="form-control" type="number" required> <input name="HJJJJFSL" th:field="*{HJJJJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -314,7 +327,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">医疗纠纷数量:</label> <label class="col-sm-4 control-label">医疗纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="YLJFSL" th:field="*{YLJFSL}" class="form-control" type="number" required> <input name="YLJFSL" th:field="*{YLJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -322,7 +335,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">化解医疗纠纷数量:</label> <label class="col-sm-4 control-label">化解医疗纠纷数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="HJYLJFSL" th:field="*{HJYLJFSL}" class="form-control" type="number" required> <input name="HJYLJFSL" th:field="*{HJYLJFSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -333,7 +346,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">运行公安检查站数量:</label> <label class="col-sm-4 control-label">运行公安检查站数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="YXGAJCZSL" th:field="*{YXGAJCZSL}" class="form-control" type="number" required> <input name="YXGAJCZSL" th:field="*{YXGAJCZSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -341,7 +354,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">设立临时治安卡点数量:</label> <label class="col-sm-4 control-label">设立临时治安卡点数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="SLZHKDSL" th:field="*{SLZHKDSL}" class="form-control" type="number" required> <input name="SLZHKDSL" th:field="*{SLZHKDSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -351,7 +364,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">核查人员数量:</label> <label class="col-sm-4 control-label">核查人员数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ZAPCRYSL" th:field="*{ZAPCRYSL}" class="form-control" type="number" required> <input name="ZAPCRYSL" th:field="*{ZAPCRYSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -359,7 +372,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">检查车辆数量:</label> <label class="col-sm-4 control-label">检查车辆数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ZAPCCLSL" th:field="*{ZAPCCLSL}" class="form-control" type="number" required> <input name="ZAPCCLSL" th:field="*{ZAPCCLSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -369,7 +382,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">抓获在逃人员数量:</label> <label class="col-sm-4 control-label">抓获在逃人员数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ZHZTRYSL" th:field="*{ZHZTRYSL}" class="form-control" type="number" required> <input name="ZHZTRYSL" th:field="*{ZHZTRYSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -377,7 +390,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">劝返涉访人员数量:</label> <label class="col-sm-4 control-label">劝返涉访人员数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="QFSFRYSL" th:field="*{QFSFRYSL}" class="form-control" type="number" required> <input name="QFSFRYSL" th:field="*{QFSFRYSL}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -387,7 +400,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">查获管制刀具数量:</label> <label class="col-sm-4 control-label">查获管制刀具数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ChwpGzdj" th:field="*{ChwpGzdj}" class="form-control" type="number" required> <input name="ChwpGzdj" th:field="*{ChwpGzdj}" class="form-control" min="0" type="number" required>
</div> </div>
</div> </div>
</div> </div>
@ -413,11 +426,11 @@
} }
} }
$("input[name='ZAFKRQ']").datetimepicker({ /*$("input[name='ZAFKRQ']").datetimepicker({
format: "yyyy-mm-dd", format: "yyyy-mm-dd",
minView: "month", minView: "month",
autoclose: true autoclose: true
}); });*/
</script> </script>
</body> </body>
</html> </html>

View File

@ -1,9 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head> <head>
<th:block th:include="include :: header('夏季行动综合信息列表')" /> <th:block th:include="include :: header('数据上报')" />
<th:block th:include="include :: layout-latest-css" /> <th:block th:include="include :: layout-latest-css" />
<th:block th:include="include :: westMedia-css"/> <th:block th:include="include :: westMedia-css"/>
<style>
.table-cell-nowrap {
white-space: nowrap;
overflow: hidden;
}
</style>
</head> </head>
<body class="gray-bg"> <body class="gray-bg">
<div class="container-div"> <div class="container-div">
@ -13,19 +21,17 @@
<input type="hidden" id="treeId" name="GAJGDM"> <input type="hidden" id="treeId" name="GAJGDM">
<div class="select-list"> <div class="select-list">
<ul> <ul>
<li> <!--<li>
<label>行政区划名称:</label> <label>行政区划名称:</label>
<input type="text" name="XZQHMC"/> <input type="text" name="XZQHMC"/>
</li> </li>-->
<li> <li>
<label>公安机关名称:</label> <label>公安机关名称:</label>
<input type="text" name="GAJGMC" onclick="selectDeptTree()" id="treeName" placeholder="请选择机构" /> <input type="text" onclick="selectDeptTree()" id="treeName" placeholder="请选择机构" />
</li> </li>
<li class="select-time"> <li class="select-time">
<label>登记日期:</label> <label>登记日期:</label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginZAFKRQ]"/> <input type="text" class="time-input" id="nowTime" placeholder="开始时间" name="zafkrqStr"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endZAFKRQ]"/>
</li> </li>
<li> <li>
@ -44,12 +50,12 @@
<!--<a class="btn btn-primary single disabled" onclick="$.operate.editFull()" shiro:hasPermission="system:xjxdzhxxb:edit"> <!--<a class="btn btn-primary single disabled" onclick="$.operate.editFull()" shiro:hasPermission="system:xjxdzhxxb:edit">
<i class="fa fa-edit"></i> 修改 <i class="fa fa-edit"></i> 修改
</a>--> </a>-->
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:xjxdzhxxb:remove"> <!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:xjxdzhxxb:remove">
<i class="fa fa-remove"></i> 删除 <i class="fa fa-remove"></i> 删除
</a> </a>-->
<!--<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:xjxdzhxxb:export"> <a class="btn btn-warning" onclick="$.table.exportExcel()" >
<i class="fa fa-download"></i> 导出 <i class="fa fa-download"></i> 导出
</a>--> </a>
</div> </div>
<div class="col-sm-12 select-table table-striped"> <div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table> <table id="bootstrap-table"></table>
@ -62,6 +68,39 @@
var editFlag = [[${@permission.hasPermi('system:xjxdzhxxb:edit')}]]; var editFlag = [[${@permission.hasPermi('system:xjxdzhxxb:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:xjxdzhxxb:remove')}]]; var removeFlag = [[${@permission.hasPermi('system:xjxdzhxxb:remove')}]];
var prefix = ctx + "system/xjxdzhxxb"; var prefix = ctx + "system/xjxdzhxxb";
$("#nowTime").val(getdate());
function getdate(){
var currentTime = new Date();
var year = currentTime.getFullYear();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
if(month < 10){
month = "0"+month;
}
if (day < 10){
day = "0"+day;
}
var formattedTime = year + "-" + month + "-" + day;
return formattedTime;
}
function yesterday (){
var today = new Date();
var yesterday = new Date(today);
yesterday.setDate(today.getDate() - 1);
var yy = yesterday.getFullYear();
var mm = yesterday.getMonth() + 1;
var dd = yesterday.getDate();
if(mm < 10){
mm = "0"+mm;
}
if (dd < 10){
dd = "0"+dd;
}
var formattedTime = yy + "-" + mm + "-" + dd;
return formattedTime;
}
$(function() { $(function() {
var options = { var options = {
@ -70,9 +109,10 @@
updateUrl: prefix + "/edit/{id}", updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove", removeUrl: prefix + "/remove",
exportUrl: prefix + "/export", exportUrl: prefix + "/export",
modalName: "夏季行动综合信息", modalName: "数据上报",
pagination: false,
columns: [{ columns: [{
checkbox: true checkbox: false
}, },
{ {
field : 'Id', field : 'Id',
@ -92,12 +132,24 @@
title : '公安机关代码' title : '公安机关代码'
},*/ },*/
{ {
field : 'gajgmc', field : 'deptName',
title : '公安机关名称', title : '公安机关名称',
}, },
{
field : 'sfdj',
title : '是否上报',
formatter: function(value, row, index) {
if (value == '未上报'){
return '<span style="color: red">'+value+' </span>'
}else {
return '<span style="color: green">'+value+' </span>'
}
}
},
{ {
field : 'ZAFKRQ', field : 'ZAFKRQ',
title : '登记日期', title : '登记日期',
class: 'table-cell-nowrap'
}, },
{ {
field : 'trxfjlsl', field : 'trxfjlsl',
@ -250,10 +302,12 @@
{ {
title: '操作', title: '操作',
align: 'center', align: 'center',
width:'20%', class: 'table-cell-nowrap',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editFull(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); if ((row.sfdj == '已上报' && row.ZAFKRQ == getdate())){
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editFull(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
}
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join(''); return actions.join('');
} }
@ -262,6 +316,13 @@
$.table.init(options); $.table.init(options);
}); });
function isCurrentTimeAfterNoon() {
var now = new Date();
var hours = now.getHours();
return hours < 10;
}
function reset() { function reset() {
$("#treeId").val(""); $("#treeId").val("");
$.form.reset() $.form.reset()
@ -270,7 +331,7 @@
function selectDeptTree() { function selectDeptTree() {
var treeId = $("#treeId").val(); var treeId = $("#treeId").val();
var deptId = $.common.isEmpty(treeId) ? "340000000000" : treeId; var deptId = $.common.isEmpty(treeId) ? "340000000000" : treeId;
var type = 1; var type = 4;
var url = ctx + "system/dept/selectDeptTree/" + deptId+"/"+type; var url = ctx + "system/dept/selectDeptTree/" + deptId+"/"+type;
var options = { var options = {
title: '选择机构', title: '选择机构',