Commit acb90ac7 by yangliang

修改人员反馈加载方式

parent 9cff3ed8
......@@ -12,7 +12,5 @@ import java.util.List;
*/
public interface TbywztryService {
TbStZtryxx getZtryByztbh(String zjhm);
List<TbStZtryxx> getZtryByzjhm(String zjhm);;
ResultMap getZtryByzjhm(String zjhm);;
}
package com.founder.ztry.service.impl;
import com.founder.model.ResultMap;
import com.founder.model.TbStZtryxx;
import com.founder.ztry.service.TbywztryService;
import com.founder.ztryDao.TbstZtryMapper;
......@@ -19,9 +20,11 @@ public class TbywztryServiceImpl implements TbywztryService {
}
@Override
public List<TbStZtryxx> getZtryByzjhm(String zjhm) {
List<TbStZtryxx> ztrylist= new ArrayList<TbStZtryxx>();
ztrylist = tbstZtryMapper.getZtryByzjhm(zjhm);
return ztrylist ;
public ResultMap getZtryByzjhm(String zjhm) {
List<TbStZtryxx> ztrylist= tbstZtryMapper.getZtryByzjhm(zjhm);
ResultMap resultMap=new ResultMap();
resultMap.setCount(ztrylist.size());
resultMap.setData(ztrylist);
return resultMap ;
}
}
......@@ -242,7 +242,36 @@
</select>
<select id="getRycjInfoByzjhmorder" resultMap="baseMap" parameterType="java.lang.String">
select * from TB_RY_RYCJ where (SCBZ='0' or SCBZ is null) and (ZJHM = #{zjhm , jdbcType=VARCHAR } OR GMSFHM = #{zjhm , jdbcType=VARCHAR }) order by lrsj desc
SELECT RYBH,
XM,
ZJHM,
GMSFHM,
EDZZPXXBH,
ZMZPXXBH,
CMZPXXBH,
YCMZPXXBH,
SZZWBH,
ZWCJSJ,
BZW,
R_SJLXDH,
ZWFKXX,
TBBZ,
LRDWDM,
LRR,
LRSJ,
(select count(1) from tb_xw_ythcj_hm s where s.rybh=TB_RY_RYCJ.rybh) as HM,
(select count(1) from tb_xw_ythcj_sw s where s.rybh=TB_RY_RYCJ.rybh) as SW,
(select count(1) from tb_xw_ythcj_zj s where s.rybh=TB_RY_RYCJ.rybh) as ZJ,
(select count(1) from tb_xw_ythcj_yhkjbxx s where s.rybh=TB_RY_RYCJ.rybh) as YHK,
(select count(1) from tb_ph_fzxyrsjgl s where s.xyrbh=TB_RY_RYCJ.rybh) as SJJBXX,
(select count(1) from tb_ph_lxrxx s where s.xyrbh=TB_RY_RYCJ.rybh) as SJLXRXX,
TB_RY_RYCJ.SCBZ,
(select name from sys_dictitem s where s.groupid='CODE_XB' and s.code = TB_RY_RYCJ.XBDM) as XBDM,
(select name from sys_dictitem s where s.groupid='CODE_UNIT' and s.code = TB_RY_RYCJ.ZWCJDWDM) as ZWCJDWDM,
to_char(TB_RY_RYCJ.ZWCJSJ,'YYYY-MM-DD') ZWCJSJSTR,
AFIS_QUALITY_CK.R_GDZW,AFIS_QUALITY_CK.R_WZXX,AFIS_QUALITY_CK.R_PMZW,AFIS_QUALITY_CK.R_RX,AFIS_QUALITY_CK.BZ,AFIS_QUALITY_CK.JCJG
from TB_RY_RYCJ,AFIS_QUALITY_CK where TB_RY_RYCJ.RYBH=AFIS_QUALITY_CK.R_RYBH(+)
and (SCBZ='0' or SCBZ is null) and (ZJHM = #{zjhm , jdbcType=VARCHAR } OR GMSFHM = #{zjhm , jdbcType=VARCHAR }) order by lrsj desc
</select>
<update id="deleteRyxx" parameterType="map">
......
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