|
@@ -68,7 +68,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectCwXxTb" parameterType="SysCwxxTb" resultMap="SysCwxxTbResult">
|
|
|
- select * from sys_cwxx_tb
|
|
|
+ select
|
|
|
+ id,tblx,jglx,lx,gmjjhyfl,dh,dwszdxzqhdm,fddbr,dz,dwmc,tyxydm,djsj,
|
|
|
+ (
|
|
|
+ CASE
|
|
|
+ WHEN SUBSTR(tyxydm,1,2) IN ('91','92') THEN 1
|
|
|
+ WHEN SUBSTR(tyxydm,1,2) IN ('52') THEN 2
|
|
|
+ WHEN SUBSTR(tyxydm,1,2) IN ('12','19') THEN 3
|
|
|
+ ELSE 4
|
|
|
+ END
|
|
|
+ ) AS djbm,
|
|
|
+ zlshgzsrs,shgzsrs,dxbkjysrs,dxzkrs,yhry,nzgrs,nmzgrs,xgdwmc,xgdwtyshxydm,jgjzmj,ylbxddyljgzgzjbm,yljgzyxkzdjh,isfl,xbzt,xz,
|
|
|
+ bnzchj, jysr, bnsrtj, zczj, gdzcyj, ylhly, zyjsjnry, jgglry, gdzcyj, fiftysix, gdzcyj, fiftyfive, fortyfive, thirtyfive, gjshgzsrs,
|
|
|
+ wqsn, bfsn, nlwh, et, qzn, lnr, zfry, tkryjzgydx, qtrx, nmzynxrs, nmzyzrs, nzyzrs, hlxcw, hlxcw, hlxcw, nmcws, fzzj, zfbtsr, gzflzc, qnf
|
|
|
+ from sys_cwxx_tb
|
|
|
<where>
|
|
|
<if test="id != null and id != ''"> and id = #{id}</if>
|
|
|
<if test="jgId != null and jgId != ''"> and jg_id = #{jgId}</if>
|
|
@@ -102,7 +115,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
getxzqhmcbycode(ssxzqh) as ssxzqh_name,
|
|
|
getxzqhmcbycode(szxzqh) as szxzqh_name,
|
|
|
a.id as jg_id , a.jlrq djsj, a.cwtyshxydm tyxydm, a.cwjgmc dwmc, a.frxm fddbr, a.txdz dz, substring(a.ssxzqh,1,6) dwszdxzqhdm,
|
|
|
- a.frdjjg djbm, a.frlxfs dh, a.sczt bdlx, a.cwbj lx,
|
|
|
+ ( CASE WHEN SUBSTR(a.cwtyshxydm,1,2) IN ('91','92') THEN 1
|
|
|
+ WHEN SUBSTR(a.cwtyshxydm,1,2) IN ('52') THEN 2
|
|
|
+ WHEN SUBSTR(a.cwtyshxydm,1,2) IN ('12','19') THEN 3
|
|
|
+ ELSE 4 END ) AS djbm, a.frlxfs dh, a.sczt bdlx, a.cwbj lx,
|
|
|
( case when SUBSTRING(dwxz,1,1) =3 then 10 when SUBSTRING(dwxz,1,1) =2 then 30 when dwxz =42 then 42 else null end) jglx,
|
|
|
( case when SUBSTRING(dwxz,1,1) =3 then 2 when SUBSTRING(dwxz,1,1) =2 then 1 when dwxz =42 then 3 else null end ) xz,
|
|
|
a.xbzt, a.jzmj jgjzmj,
|