Commit 919c3736 by liulianglang

行政案件统计

parent be688a7a
......@@ -3,10 +3,13 @@ package com.founder.zyfw.controller;
import com.founder.checkAuthorization.annotation.CheckAuthorization;
import com.founder.checkAuthorization.entity.CheckType;
import com.founder.model.R;
import com.founder.zyfw.entity.TbStAsj;
import com.founder.zyfw.entity.TbStAsjXzVo;
import com.founder.zyfw.entity.ZyfwQueryParam;
import com.founder.zyfw.service.ZyfwService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -689,4 +692,20 @@ public class ZyfwController {
return R.error(e.getMessage());
}
}
@PostMapping("/xk/getXzxtXzAj")
// @CheckAuthorization(type = CheckType.ZY, checkIp = false)
public R getXzxtXzAj(@RequestBody TbStAsjXzVo asj) {
try {
if(StringUtils.isEmpty(asj.getAsjbh())){
return R.error("案件编号为空,不能查询");
}
TbStAsjXzVo xzaj = zyfwService.getXzxtXzAj(asj.getAsjbh());
return R.ok().data("rows", xzaj);
} catch (Exception e) {
log.error("错误日志", e);
return R.error(e.getMessage());
}
}
}
package com.founder.zyfw.entity;
import lombok.Data;
@Data
public class TbStAsjXzVo {
/**
* 案事件编号
*/
private String asjbh;
private String ajmc;
private String ajlbmc;
private String asjfsddXzqhdm;
private String asjfsddDzmc;
private String larq;
private String jyaq;
}
package com.founder.zyfw.mysqldao;
import com.founder.zyfw.entity.TbStAsjXzVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
......@@ -57,4 +58,6 @@ public interface XzZyfwMapper {
int getCbajCount(@Param("isZl") String isZl);
int getFlwsCount(@Param("isZl") String isZl);
TbStAsjXzVo getXzxtXzAj(@Param("asjbh") String asjbh);
}
package com.founder.zyfw.service;
import com.founder.zyfw.entity.TbStAsjXzVo;
import java.util.List;
/**
* 省级资源服务
*
......@@ -116,4 +120,6 @@ public interface ZyfwService {
int getZjcbCount(String isZl);
int getZjbzCount(String isZl);
TbStAsjXzVo getXzxtXzAj(String asjbh);
}
package com.founder.zyfw.service.impl;
import com.founder.zyfw.ajzwdao.AjzwZyfwMapper;
import com.founder.zyfw.entity.TbStAsjXzVo;
import com.founder.zyfw.mysqldao.XzZyfwMapper;
import com.founder.zyfw.service.ZyfwService;
import com.founder.zyfw.shcedao.ShceZyfwMapper;
......@@ -12,6 +13,8 @@ import com.founder.zyfw.zwbzdao.ZwbzZyfwMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 省级资源服务
*
......@@ -315,4 +318,9 @@ public class ZyfwServiceImpl implements ZyfwService {
public int getZjbzCount(String isZl) {
return "1".equals(isZl) ? 0 : xzZyfwMapper.getZjbzCount();
}
@Override
public TbStAsjXzVo getXzxtXzAj(String asjbh) {
return xzZyfwMapper.getXzxtXzAj( asjbh);
}
}
......@@ -159,4 +159,14 @@
and djsj >= DATE_FORMAT(NOW(),'%Y-%m-%d 00:00:00')
</if>
</select>
<select id="getXzxtXzAj" resultType="com.founder.zyfw.entity.TbStAsjXzVo">
select asjbh as asjbh,
ajmc as ajmc,
(SELECT name FROM sys_dictitem WHERE groupid = 'CODE_AJLB_JZ' AND code = ajlbdm_jz) as ajlbmc,
asjfsdd_xzqhdm as asjfsddXzqhdm,
asjfsdd_dzmc as asjfsddDzmc,
larq as larq,jyaq
from tb_st_asj_xz where xxsc_pdbz='0' and asjbh=#{asjbh}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment