|
@ -266,7 +266,7 @@ public class TnyyEntranceService {
|
|
|
public JSONArray findTnYpxx(String ypdm,String ypmc,String kusl,String pydm ,String hisCode) throws Exception {
|
|
|
String sql ="SELECT yp.YPXH,yp.XTSB,yp.YPMC,yp.YPGG,yp.YFGG,yp.BFGG,yp.YPSX,yp.TSYP,yp.YPDW,yp.ZXDW,yp.ZXBZ,yp.YFBZ,yp.YFDW,yp.BFBZ," +
|
|
|
"yp.BFDW,yp.ZFPB,yp.YLXZ,yp.FYFS,yp.PYDM,yp.YPBH,yp.MESS,yp.GYFF,yp.TYPE,yp.YPDM,yp.YPJL,yp.JLDW,yp.YKZF,yp.YFZF,yp.ZXCD,yp.YCYL," +
|
|
|
"kc.YPCD,kc.LSJG,kc.KCSL,kc.BZLJ,yp. FROM YK_TYPK yp,YK_KCMX kc where 1=1 and kc.YPXH=yp.YPXH ";
|
|
|
"kc.YPCD,kc.LSJG,kc.KCSL,kc.BZLJ,yp.UNITCODE,yp.UNITCODENAME FROM YK_TYPK yp,YK_KCMX kc where 1=1 and kc.YPXH=yp.YPXH ";
|
|
|
if (StringUtils.isNoneBlank(ypdm)){
|
|
|
sql+=" and lower(YPDM) like '%"+ypdm.toLowerCase()+"%' ";
|
|
|
}
|