|
@@ -103,6 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
getxzqhmcbycode(szxzqh) as szxzqh_name,
|
|
|
a.id as jg_id , a.jlrq djsj, a.tyshxydm tyxydm, a.jgmc 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 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.yljgzyxkzh yljgzyxkzdjh, a.jzmj jgjzmj,
|
|
@@ -120,6 +121,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
(select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and zylx not in ('11','99')) zyjsjnry,
|
|
|
(select count(0) from yljg_yg_jbxx where jg_id = a.id and state = '1' and zylx = '01') ylhly,
|
|
|
a.cwzs nmcws, a.hlxcws hlxcw,
|
|
|
+-- ((select count(0) FROM yljg_kh_jbxx WHERE status = '0' AND is_qy = '1' AND is_rz = '1' AND jg_id = a.id ) * FLOOR(182 + RAND() * (365 - 182 + 1))) nzyzrs,
|
|
|
+ CONVERT(((select count(0) FROM yljg_kh_jbxx WHERE status = '0' AND is_qy = '1' AND is_rz = '1' AND jg_id = a.id ) * FLOOR(182 + RAND() * (365 - 182 + 1))),SIGNED) nzyzrs,
|
|
|
(select count(0) FROM yljg_kh_jbxx WHERE status = '0' AND is_qy = '1' AND is_rz = '1' AND jg_id = a.id ) nmzyzrs,
|
|
|
(select count(0) FROM yljg_kh_jbxx WHERE status = '0' AND is_qy = '1' AND is_rz = '1' AND jg_id = a.id AND xb = '2') nmzynxrs,
|
|
|
(select count(0) FROM yljg_kh_jbxx WHERE status = '0' AND is_qy = '1' AND is_rz = '1' AND jg_id = a.id AND (is_tk = '1' or is_db = '1')) tkryjzgydx,
|