Commit 93c8538f authored by 38823's avatar 38823

机易查优化

parent ac0c2df4
......@@ -76,20 +76,21 @@ public class JYCInterfaceController extends BaseController {
//BusinessModelService bms = dsf.getModelService(BM_PATH, context);
List<Map> result = jYCInterfaceMapper.selectJycList(equNo);
if (result != null) {
Map map = result.get(0);
if (!ObjectUtils.isEmpty(map)) {
if(result.size() > 0) {
Map map = result.get(0);
if (!ObjectUtils.isEmpty(map)) {
existsFlag = true;
JSONObject JYCResponseBody= new JSONObject();
JYCResponseBody.put("equNm",map.get("EQUNM"));
JYCResponseBody.put("brandName",map.get("BRANDNAME"));
JYCResponseBody.put("equMdl",map.get("EQUMDL"));
JYCResponseBody.put("vinNo",map.get("VINNO"));
JYCResponseBody.put("machineNo",map.get("MACHINENO"));
JYCResponseBody.put("status",map.get("STATUS"));
JYCResponseBody.put("platform",WJFL_FIELD);
resultjson.put("JYCResponseBody",JYCResponseBody);
resultjson.put("ResponseCode","01");
resultjson.put("ResponseMsg","交易正常");
JSONObject JYCResponseBody = new JSONObject();
JYCResponseBody.put("equNm", map.get("EQUNM"));
JYCResponseBody.put("brandName", map.get("BRANDNAME"));
JYCResponseBody.put("equMdl", map.get("EQUMDL"));
JYCResponseBody.put("vinNo", map.get("VINNO"));
JYCResponseBody.put("machineNo", map.get("MACHINENO"));
JYCResponseBody.put("status", map.get("STATUS"));
JYCResponseBody.put("platform", WJFL_FIELD);
resultjson.put("JYCResponseBody", JYCResponseBody);
resultjson.put("ResponseCode", "01");
resultjson.put("ResponseMsg", "交易正常");
/*for (CompositeMap child : valueList) {3
existsFlag = true;
if (child == null) {
......@@ -100,6 +101,7 @@ public class JYCInterfaceController extends BaseController {
}
}*/
}
}
}
if (!existsFlag) {
......
......@@ -9,7 +9,10 @@
select nvl(t2.equnm,'') equnm,
nvl(t2.brandname,'')brandname,
nvl(t2.equmdl,'')equmdl,
nvl(t2.vinno,'')vinno,
(case when length(t2.vinno) >7 then
nvl(SUBSTR(t2.vinno,1,3)||TRIM( LPAD(' ', LENGTH( TRIM(t2.vinno))-6,'*') )||SUBSTR(t2.vinno,LENGTH( TRIM(t2.vinno)) - 3),'')
else
t2.vinno end) vinno,
nvl(t2.machineno,'')machineno,
t2.status
from (select t1.*
......
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