|
@@ -38,6 +38,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
|
|
|
|
|
|
|
|
* 自有车 用户卡列表查询接口
|
|
* 自有车 用户卡列表查询接口
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
@@ -56,24 +57,24 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.customerETCQuery-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.customerETCQuery-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
- JSONObject jsonObject = JSONObject.parseObject(data);
|
|
+ JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String cardId = jsonObject.getString("cardId");
|
|
+ String cardId = jsonObject.getString("cardId");
|
|
- String plateNum = jsonObject.getString("plateNum");
|
|
+ String plateNum = jsonObject.getString("plateNum");
|
|
- Integer plateColor = jsonObject.getInteger("plateColor");
|
|
+ Integer plateColor = jsonObject.getInteger("plateColor");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)){
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)) {
|
|
- result.setData(3);
|
|
+ result.setData(3);
|
|
- result.setMsg("请输入必输项!");
|
|
+ result.setMsg("请输入必输项!");
|
|
- return result;
|
|
+ return result;
|
|
- }
|
|
+ }
|
|
|
|
|
|
- CustomerRec customerRec = new CustomerRec();
|
|
+ CustomerRec customerRec = new CustomerRec();
|
|
- customerRec.setCustomerName(appKey);
|
|
+ customerRec.setCustomerName(appKey);
|
|
- customerRec.setCompanyNum(companyNum);
|
|
+ customerRec.setCompanyNum(companyNum);
|
|
- customerRec.setInterType(0);
|
|
+ customerRec.setInterType(0);
|
|
- CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
+ CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
@@ -85,49 +86,47 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
etcQueryVo.setPlateNum(plateNum);
|
|
etcQueryVo.setPlateNum(plateNum);
|
|
etcQueryVo.setCardId(cardId);
|
|
etcQueryVo.setCardId(cardId);
|
|
etcQueryVo.setPlateColor(plateColor);
|
|
etcQueryVo.setPlateColor(plateColor);
|
|
- RespR rs = selfCarService.getEtcInfo(etcQueryVo);
|
|
+ RespR rs = selfCarService.getEtcInfo(etcQueryVo);
|
|
- long costtimeend = System.currentTimeMillis();
|
|
+ long costtimeend = System.currentTimeMillis();
|
|
- log.info("[-SelfCarInterServiceImpl.customerETCQuery-] result is "
|
|
+ log.info("[-SelfCarInterServiceImpl.customerETCQuery-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
- result.setData(1);
|
|
+ result.setData(1);
|
|
- result.setCode(200);
|
|
+ result.setCode(200);
|
|
-
|
|
+
|
|
- result.setMsg(rs.getData().toString());
|
|
+ result.setMsg(rs.getData().toString());
|
|
- return result;
|
|
+ return result;
|
|
- } else {
|
|
+ } else {
|
|
- if(rs!=null && rs.getCode() == TWO_NUM){
|
|
+ if (rs != null && rs.getCode() == TWO_NUM) {
|
|
- result.setData(2);
|
|
+ result.setData(2);
|
|
|
|
+ result.setCode(200);
|
|
|
|
+ result.setMsg("未查得");
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
|
|
+ result.setData(3);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
- result.setMsg("未查得");
|
|
+ result.setMsg(rs.getMsg());
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
- result.setData(3);
|
|
|
|
- result.setCode(200);
|
|
|
|
- result.setMsg(rs.getMsg());
|
|
|
|
- return result;
|
|
|
|
- }
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("[-SelfCarInterServiceImpl.customerETCQuery-] get httpclient exception is "
|
|
log.error("[-SelfCarInterServiceImpl.customerETCQuery-] get httpclient exception is "
|
|
- + e + ", request is " + data);
|
|
+ + e + ", request is " + data);
|
|
}
|
|
}
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
* 自有车 卡信息查询接口
|
|
* 自有车 卡信息查询接口
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public DataResult customerQueryEtcInfo(String appKey, String api, String data,String requestid) {
|
|
+ public DataResult customerQueryEtcInfo(String appKey, String api, String data, String requestid) {
|
|
|
|
|
|
long costtimestart = System.currentTimeMillis();
|
|
long costtimestart = System.currentTimeMillis();
|
|
|
|
|
|
@@ -139,16 +138,16 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.customerQueryEtcInfo-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.customerQueryEtcInfo-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
JSONArray vehicleList = jsonObject.getJSONArray("vehicleList");
|
|
JSONArray vehicleList = jsonObject.getJSONArray("vehicleList");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| null == vehicleList
|
|
|| null == vehicleList
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
@@ -156,7 +155,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
|
|
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
@@ -166,15 +165,15 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
etcQueryVo.setCompanyName(customerRec1.getCompanyName());
|
|
etcQueryVo.setCompanyName(customerRec1.getCompanyName());
|
|
|
|
|
|
List<CarVo> cards = new ArrayList<CarVo>();
|
|
List<CarVo> cards = new ArrayList<CarVo>();
|
|
- for(int i=0;i<vehicleList.size();i++) {
|
|
+ for (int i = 0; i < vehicleList.size(); i++) {
|
|
JSONObject jb = vehicleList.getJSONObject(i);
|
|
JSONObject jb = vehicleList.getJSONObject(i);
|
|
String plateNum = jb.getString("plateNum");
|
|
String plateNum = jb.getString("plateNum");
|
|
Integer plateColor = jb.getInteger("plateColor");
|
|
Integer plateColor = jb.getInteger("plateColor");
|
|
- if(null == jb || StringUtils.isEmpty(plateNum)
|
|
+ if (null == jb || StringUtils.isEmpty(plateNum)
|
|
|| null == plateColor
|
|
|| null == plateColor
|
|
- ){
|
|
+ ) {
|
|
result.setMsg("参数格式错误");
|
|
result.setMsg("参数格式错误");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CarVo carVo = new CarVo();
|
|
CarVo carVo = new CarVo();
|
|
@@ -189,7 +188,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.customerQueryEtcInfo-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.customerQueryEtcInfo-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
@@ -198,7 +197,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setData(3);
|
|
result.setData(3);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getMsg());
|
|
result.setMsg(rs.getMsg());
|
|
- if(NOT_FOUND . equals(rs.getMsg())){
|
|
+ if (NOT_FOUND.equals(rs.getMsg())) {
|
|
result.setData(2);
|
|
result.setData(2);
|
|
}
|
|
}
|
|
return result;
|
|
return result;
|
|
@@ -211,11 +210,9 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
* 自有车下发短信通知接口
|
|
* 自有车下发短信通知接口
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
@@ -234,26 +231,26 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.customerETCRec-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.customerETCRec-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String mobile = jsonObject.getString("mobile");
|
|
+ String mobile = jsonObject.getString("mobile");
|
|
JSONArray cardIdList = jsonObject.getJSONArray("cardIdList");
|
|
JSONArray cardIdList = jsonObject.getJSONArray("cardIdList");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(mobile)
|
|
|| StringUtils.isEmpty(mobile)
|
|
|| null == cardIdList
|
|
|| null == cardIdList
|
|
|
|
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
@@ -263,15 +260,15 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
etcQueryVo.setCompanyName(customerRec1.getCompanyName());
|
|
etcQueryVo.setCompanyName(customerRec1.getCompanyName());
|
|
etcQueryVo.setMobile(mobile);
|
|
etcQueryVo.setMobile(mobile);
|
|
List<CarVo> cards = new ArrayList<CarVo>();
|
|
List<CarVo> cards = new ArrayList<CarVo>();
|
|
- for(int i=0;i<cardIdList.size();i++) {
|
|
+ for (int i = 0; i < cardIdList.size(); i++) {
|
|
JSONObject jb = cardIdList.getJSONObject(i);
|
|
JSONObject jb = cardIdList.getJSONObject(i);
|
|
String cardId = jb.getString("cardId");
|
|
String cardId = jb.getString("cardId");
|
|
|
|
|
|
- if(null == jb || StringUtils.isEmpty(cardId)
|
|
+ if (null == jb || StringUtils.isEmpty(cardId)
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("用户卡为空!");
|
|
result.setMsg("用户卡为空!");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -285,7 +282,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.customerETCRec-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.customerETCRec-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
@@ -304,10 +301,9 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
* 自有车 卡绑定接口 渠道调用此接口,上传用户收到的短信验证码
|
|
* 自有车 卡绑定接口 渠道调用此接口,上传用户收到的短信验证码
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
@@ -326,31 +322,31 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.customerETCRecValid-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.customerETCRecValid-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String mobile = jsonObject.getString("mobile");
|
|
+ String mobile = jsonObject.getString("mobile");
|
|
- String validCode = jsonObject.getString("validCode");
|
|
+ String validCode = jsonObject.getString("validCode");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(mobile)
|
|
|| StringUtils.isEmpty(mobile)
|
|
|| StringUtils.isEmpty(validCode)
|
|
|| StringUtils.isEmpty(validCode)
|
|
|
|
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
- EtcValidVo etcValidVo = new EtcValidVo();
|
|
+ EtcValidVo etcValidVo = new EtcValidVo();
|
|
etcValidVo.setCustomerName(appKey);
|
|
etcValidVo.setCustomerName(appKey);
|
|
etcValidVo.setCompanyName(customerRec1.getCompanyName());
|
|
etcValidVo.setCompanyName(customerRec1.getCompanyName());
|
|
etcValidVo.setValidCode(validCode);
|
|
etcValidVo.setValidCode(validCode);
|
|
@@ -362,7 +358,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.customerETCRecValid-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.customerETCRecValid-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
@@ -381,18 +377,16 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
* 自有车 交易查询接口 渠道通过此接口可以查询单张卡连续90天内的交易(待开票、开票中、已开票)
|
|
* 自有车 交易查询接口 渠道通过此接口可以查询单张卡连续90天内的交易(待开票、开票中、已开票)
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public DataResult getTradeList(String appKey, String api, String data,String requestid) {
|
|
+ public DataResult getTradeList(String appKey, String api, String data, String requestid) {
|
|
|
|
|
|
long costtimestart = System.currentTimeMillis();
|
|
long costtimestart = System.currentTimeMillis();
|
|
|
|
|
|
@@ -404,45 +398,45 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.getTradeList-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.getTradeList-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String cardId = jsonObject.getString("cardId");
|
|
+ String cardId = jsonObject.getString("cardId");
|
|
- Integer tradeStatus = jsonObject.getInteger("tradeStatus");
|
|
+ Integer tradeStatus = jsonObject.getInteger("tradeStatus");
|
|
- String startExTime = jsonObject.getString("startExTime");
|
|
+ String startExTime = jsonObject.getString("startExTime");
|
|
- String endExTime = jsonObject.getString("endExTime");
|
|
+ String endExTime = jsonObject.getString("endExTime");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| null == tradeStatus
|
|
|| null == tradeStatus
|
|
|| StringUtils.isEmpty(startExTime)
|
|
|| StringUtils.isEmpty(startExTime)
|
|
|| StringUtils.isEmpty(endExTime)
|
|
|| StringUtils.isEmpty(endExTime)
|
|
|
|
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
- if(!DateUtil.isValidDate(startExTime)){
|
|
+ if (!DateUtil.isValidDate(startExTime)) {
|
|
result.setMsg("日期格式有误");
|
|
result.setMsg("日期格式有误");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
- if(!DateUtil.isValidDate(endExTime)){
|
|
+ if (!DateUtil.isValidDate(endExTime)) {
|
|
result.setMsg("日期格式有误");
|
|
result.setMsg("日期格式有误");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
- TradeRequestVo tradeRequestVo = new TradeRequestVo();
|
|
+ TradeRequestVo tradeRequestVo = new TradeRequestVo();
|
|
tradeRequestVo.setCustomerName(appKey);
|
|
tradeRequestVo.setCustomerName(appKey);
|
|
tradeRequestVo.setCompanyName(customerRec1.getCompanyName());
|
|
tradeRequestVo.setCompanyName(customerRec1.getCompanyName());
|
|
tradeRequestVo.setStartTime(DateUtil.getDistanceHoursFormat(startExTime));
|
|
tradeRequestVo.setStartTime(DateUtil.getDistanceHoursFormat(startExTime));
|
|
@@ -451,7 +445,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
tradeRequestVo.setTradeStatus(tradeStatus);
|
|
tradeRequestVo.setTradeStatus(tradeStatus);
|
|
tradeRequestVo.setInterType(0);
|
|
tradeRequestVo.setInterType(0);
|
|
|
|
|
|
- if(tradeRequestVo.getTradeStatus() ==null){
|
|
+ if (tradeRequestVo.getTradeStatus() == null) {
|
|
tradeRequestVo.setTradeStatus(1);
|
|
tradeRequestVo.setTradeStatus(1);
|
|
RespR<List<CardTradeModel>> respRbefore = selfCarService.getTradeList(tradeRequestVo);
|
|
RespR<List<CardTradeModel>> respRbefore = selfCarService.getTradeList(tradeRequestVo);
|
|
tradeRequestVo.setTradeStatus(2);
|
|
tradeRequestVo.setTradeStatus(2);
|
|
@@ -460,13 +454,13 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
RespR<List<CardTradeModel>> tradeList = selfCarService.getTradeList(tradeRequestVo);
|
|
RespR<List<CardTradeModel>> tradeList = selfCarService.getTradeList(tradeRequestVo);
|
|
|
|
|
|
List<CardTradeModel> cardTradeModels = new ArrayList<>();
|
|
List<CardTradeModel> cardTradeModels = new ArrayList<>();
|
|
- if(respRbefore.getCode() == 0){
|
|
+ if (respRbefore.getCode() == 0) {
|
|
cardTradeModels.addAll(respRbefore.getData());
|
|
cardTradeModels.addAll(respRbefore.getData());
|
|
}
|
|
}
|
|
- if(listRespR.getCode() == 0){
|
|
+ if (listRespR.getCode() == 0) {
|
|
cardTradeModels.addAll(listRespR.getData());
|
|
cardTradeModels.addAll(listRespR.getData());
|
|
}
|
|
}
|
|
- if(tradeList.getCode() == 0){
|
|
+ if (tradeList.getCode() == 0) {
|
|
cardTradeModels.addAll(tradeList.getData());
|
|
cardTradeModels.addAll(tradeList.getData());
|
|
}
|
|
}
|
|
|
|
|
|
@@ -480,14 +474,14 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.getTradeList-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.getTradeList-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
return result;
|
|
return result;
|
|
} else {
|
|
} else {
|
|
result.setData(3);
|
|
result.setData(3);
|
|
- if(NOT_FOUND . equals(rs.getMsg())){
|
|
+ if (NOT_FOUND.equals(rs.getMsg())) {
|
|
result.setData(2);
|
|
result.setData(2);
|
|
}
|
|
}
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
@@ -502,17 +496,16 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
* 自有车 交易查询接口 渠道通过此接口可以查询单张卡连续90天内的交易(待开票、开票中、已开票)
|
|
* 自有车 交易查询接口 渠道通过此接口可以查询单张卡连续90天内的交易(待开票、开票中、已开票)
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public DataResult applInvoice(String appKey, String api, String data,String requestid) {
|
|
+ public DataResult applInvoice(String appKey, String api, String data, String requestid) {
|
|
|
|
|
|
long costtimestart = System.currentTimeMillis();
|
|
long costtimestart = System.currentTimeMillis();
|
|
|
|
|
|
@@ -524,31 +517,31 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.applInvoice-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.applInvoice-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String cardId = jsonObject.getString("cardId");
|
|
+ String cardId = jsonObject.getString("cardId");
|
|
JSONArray tradeIdModel = jsonObject.getJSONArray("tradeIdModel");
|
|
JSONArray tradeIdModel = jsonObject.getJSONArray("tradeIdModel");
|
|
|
|
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| null == tradeIdModel
|
|
|| null == tradeIdModel
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1 ){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
- InvoiceApplVo invoiceApplVo = new InvoiceApplVo();
|
|
+ InvoiceApplVo invoiceApplVo = new InvoiceApplVo();
|
|
invoiceApplVo.setCustomerName(appKey);
|
|
invoiceApplVo.setCustomerName(appKey);
|
|
invoiceApplVo.setCompanyName(customerRec1.getCompanyName());
|
|
invoiceApplVo.setCompanyName(customerRec1.getCompanyName());
|
|
invoiceApplVo.setCardId(cardId);
|
|
invoiceApplVo.setCardId(cardId);
|
|
@@ -556,12 +549,12 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
|
|
|
|
|
|
|
|
List<String> tradeIds = new ArrayList<String>();
|
|
List<String> tradeIds = new ArrayList<String>();
|
|
- for(int i=0;i<tradeIdModel.size();i++) {
|
|
+ for (int i = 0; i < tradeIdModel.size(); i++) {
|
|
JSONObject jb = tradeIdModel.getJSONObject(i);
|
|
JSONObject jb = tradeIdModel.getJSONObject(i);
|
|
String tradeId = jb.getString("tradeId");
|
|
String tradeId = jb.getString("tradeId");
|
|
- if(null == jb || StringUtils.isEmpty(tradeId)
|
|
+ if (null == jb || StringUtils.isEmpty(tradeId)
|
|
- ){
|
|
+ ) {
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
tradeIds.add(tradeId);
|
|
tradeIds.add(tradeId);
|
|
}
|
|
}
|
|
@@ -572,7 +565,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.applInvoice-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.applInvoice-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
@@ -603,30 +596,30 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicesByAppl-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicesByAppl-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String cardId = jsonObject.getString("cardId");
|
|
+ String cardId = jsonObject.getString("cardId");
|
|
- String applyId = jsonObject.getString("applyId");
|
|
+ String applyId = jsonObject.getString("applyId");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(applyId)
|
|
|| StringUtils.isEmpty(applyId)
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
- ApplQueryInvVo applQueryInvVo = new ApplQueryInvVo();
|
|
+ ApplQueryInvVo applQueryInvVo = new ApplQueryInvVo();
|
|
applQueryInvVo.setApplId(applyId);
|
|
applQueryInvVo.setApplId(applyId);
|
|
applQueryInvVo.setEtcNum(cardId);
|
|
applQueryInvVo.setEtcNum(cardId);
|
|
applQueryInvVo.setCompanyNum(companyNum);
|
|
applQueryInvVo.setCompanyNum(companyNum);
|
|
@@ -635,14 +628,14 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicesByAppl-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicesByAppl-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getMsg());
|
|
result.setMsg(rs.getMsg());
|
|
return result;
|
|
return result;
|
|
} else {
|
|
} else {
|
|
result.setData(3);
|
|
result.setData(3);
|
|
- if(NOT_FOUND .equals (rs.getMsg())){
|
|
+ if (NOT_FOUND.equals(rs.getMsg())) {
|
|
result.setData(2);
|
|
result.setData(2);
|
|
}
|
|
}
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
@@ -658,13 +651,14 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
|
|
|
|
|
|
|
|
* 自有车 已开发票查询接口 渠道通过此接口可以根据该公司绑定的单张卡查询此卡在某个月开具的发票
|
|
* 自有车 已开发票查询接口 渠道通过此接口可以根据该公司绑定的单张卡查询此卡在某个月开具的发票
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public DataResult getSelfCarInvoicesByTime(String appKey, String api, String data,String requestid) {
|
|
+ public DataResult getSelfCarInvoicesByTime(String appKey, String api, String data, String requestid) {
|
|
|
|
|
|
long costtimestart = System.currentTimeMillis();
|
|
long costtimestart = System.currentTimeMillis();
|
|
|
|
|
|
@@ -676,62 +670,62 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicesByTime-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicesByTime-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String cardId = jsonObject.getString("cardId");
|
|
+ String cardId = jsonObject.getString("cardId");
|
|
- String startInvoiceMakeTime = jsonObject.getString("startInvoiceMakeTime");
|
|
+ String startInvoiceMakeTime = jsonObject.getString("startInvoiceMakeTime");
|
|
- String endInvoiceMakeTime = jsonObject.getString("endInvoiceMakeTime");
|
|
+ String endInvoiceMakeTime = jsonObject.getString("endInvoiceMakeTime");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(startInvoiceMakeTime)
|
|
|| StringUtils.isEmpty(startInvoiceMakeTime)
|
|
|| StringUtils.isEmpty(endInvoiceMakeTime)
|
|
|| StringUtils.isEmpty(endInvoiceMakeTime)
|
|
|
|
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
- if(!DateUtil.isValidDate(startInvoiceMakeTime)){
|
|
+ if (!DateUtil.isValidDate(startInvoiceMakeTime)) {
|
|
result.setMsg("日期格式有误");
|
|
result.setMsg("日期格式有误");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
- if(!DateUtil.isValidDate(endInvoiceMakeTime)){
|
|
+ if (!DateUtil.isValidDate(endInvoiceMakeTime)) {
|
|
result.setMsg("日期格式有误");
|
|
result.setMsg("日期格式有误");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
- SelfCarDueQueryVo selfCarDueQueryVo = new SelfCarDueQueryVo();
|
|
+ SelfCarDueQueryVo selfCarDueQueryVo = new SelfCarDueQueryVo();
|
|
selfCarDueQueryVo.setCustomername(appKey);
|
|
selfCarDueQueryVo.setCustomername(appKey);
|
|
selfCarDueQueryVo.setCompanyName(customerRec1.getCompanyName());
|
|
selfCarDueQueryVo.setCompanyName(customerRec1.getCompanyName());
|
|
selfCarDueQueryVo.setCardId(cardId);
|
|
selfCarDueQueryVo.setCardId(cardId);
|
|
selfCarDueQueryVo.setStartTime(startInvoiceMakeTime);
|
|
selfCarDueQueryVo.setStartTime(startInvoiceMakeTime);
|
|
selfCarDueQueryVo.setEndTime(endInvoiceMakeTime);
|
|
selfCarDueQueryVo.setEndTime(endInvoiceMakeTime);
|
|
|
|
|
|
- RespR rs = selfCarService.getSelfCarInvoicesByTime(selfCarDueQueryVo,customerRec1);
|
|
+ RespR rs = selfCarService.getSelfCarInvoicesByTime(selfCarDueQueryVo, customerRec1);
|
|
long costtimeend = System.currentTimeMillis();
|
|
long costtimeend = System.currentTimeMillis();
|
|
log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicesByTime-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicesByTime-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getMsg());
|
|
result.setMsg(rs.getMsg());
|
|
return result;
|
|
return result;
|
|
} else {
|
|
} else {
|
|
result.setData(3);
|
|
result.setData(3);
|
|
- if(NOT_FOUND .equals (rs.getMsg())){
|
|
+ if (NOT_FOUND.equals(rs.getMsg())) {
|
|
result.setData(2);
|
|
result.setData(2);
|
|
}
|
|
}
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
@@ -746,18 +740,16 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
* 自有车 发票下载 渠道通过此接口可以下载某公司某个月份开具的发票。
|
|
* 自有车 发票下载 渠道通过此接口可以下载某公司某个月份开具的发票。
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public DataResult getSelfCarInvoicePackage(String appKey, String api, String data,String requestid) {
|
|
+ public DataResult getSelfCarInvoicePackage(String appKey, String api, String data, String requestid) {
|
|
|
|
|
|
long costtimestart = System.currentTimeMillis();
|
|
long costtimestart = System.currentTimeMillis();
|
|
|
|
|
|
@@ -769,29 +761,29 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicePackage-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicePackage-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String makeMonth = jsonObject.getString("makeMonth");
|
|
+ String makeMonth = jsonObject.getString("makeMonth");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(makeMonth)
|
|
|| StringUtils.isEmpty(makeMonth)
|
|
|
|
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
- InvoicePackageVo invoicePackageVo = new InvoicePackageVo();
|
|
+ InvoicePackageVo invoicePackageVo = new InvoicePackageVo();
|
|
invoicePackageVo.setCustomerName(appKey);
|
|
invoicePackageVo.setCustomerName(appKey);
|
|
invoicePackageVo.setCompanyName(customerRec1.getCompanyName());
|
|
invoicePackageVo.setCompanyName(customerRec1.getCompanyName());
|
|
invoicePackageVo.setMonth(makeMonth);
|
|
invoicePackageVo.setMonth(makeMonth);
|
|
@@ -801,14 +793,14 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicePackage-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.getSelfCarInvoicePackage-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
return result;
|
|
return result;
|
|
} else {
|
|
} else {
|
|
result.setData(3);
|
|
result.setData(3);
|
|
- if(NOT_FOUND .equals (rs.getMsg())){
|
|
+ if (NOT_FOUND.equals(rs.getMsg())) {
|
|
result.setData(2);
|
|
result.setData(2);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -824,18 +816,16 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
* 自有车 卡解绑接口
|
|
* 自有车 卡解绑接口
|
|
|
|
+ *
|
|
* @param appKey
|
|
* @param appKey
|
|
* @param api
|
|
* @param api
|
|
* @param data
|
|
* @param data
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public DataResult customerCarUnRec(String appKey, String api, String data,String requestid) {
|
|
+ public DataResult customerCarUnRec(String appKey, String api, String data, String requestid) {
|
|
|
|
|
|
long costtimestart = System.currentTimeMillis();
|
|
long costtimestart = System.currentTimeMillis();
|
|
|
|
|
|
@@ -847,28 +837,28 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String cardId = jsonObject.getString("cardId");
|
|
+ String cardId = jsonObject.getString("cardId");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|
|
|
|
- ){
|
|
+ ) {
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setMsg("该企业编号未注册企业!");
|
|
result.setMsg("该企业编号未注册企业!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
List<CustomerCarRec> customerCarRecList = new ArrayList<CustomerCarRec>();
|
|
List<CustomerCarRec> customerCarRecList = new ArrayList<CustomerCarRec>();
|
|
|
|
|
|
- CustomerCarRec customerCarRec = new CustomerCarRec();
|
|
+ CustomerCarRec customerCarRec = new CustomerCarRec();
|
|
customerCarRec.setCustomerName(appKey);
|
|
customerCarRec.setCustomerName(appKey);
|
|
customerCarRec.setCompanyName(customerRec1.getCompanyName());
|
|
customerCarRec.setCompanyName(customerRec1.getCompanyName());
|
|
customerCarRec.setEtcNum(cardId);
|
|
customerCarRec.setEtcNum(cardId);
|
|
@@ -879,7 +869,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
@@ -907,22 +897,21 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
|
|
|
|
- CardChangeQueryDto cardChangeQueryDto = JSON.parseObject(data,CardChangeQueryDto.class);
|
|
+ CardChangeQueryDto cardChangeQueryDto = JSON.parseObject(data, CardChangeQueryDto.class);
|
|
|
|
|
|
- if(cardChangeQueryDto == null || StringUtils.isEmpty(cardChangeQueryDto.getCompanyNum())
|
|
+ if (cardChangeQueryDto == null || StringUtils.isEmpty(cardChangeQueryDto.getCompanyNum())
|
|
- || StringUtils.isEmpty(cardChangeQueryDto.getApplyId()) || StringUtils.isEmpty(cardChangeQueryDto.getCardId()))
|
|
+ || StringUtils.isEmpty(cardChangeQueryDto.getApplyId()) || StringUtils.isEmpty(cardChangeQueryDto.getCardId())) {
|
|
- {
|
|
|
|
result.setMsg("必传参数不足");
|
|
result.setMsg("必传参数不足");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(cardChangeQueryDto.getCompanyNum());
|
|
customerRec.setCompanyNum(cardChangeQueryDto.getCompanyNum());
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setMsg("该企业编号未注册企业!");
|
|
result.setMsg("该企业编号未注册企业!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
@@ -931,7 +920,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
@@ -939,7 +928,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
} else {
|
|
} else {
|
|
result.setData(3);
|
|
result.setData(3);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
- result.setMsg(rs==null?"结果为空":rs.getMsg());
|
|
+ result.setMsg(rs == null ? "结果为空" : rs.getMsg());
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -959,23 +948,22 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
|
|
|
|
- CardChangeDto cardChangeDto = JSON.parseObject(data,CardChangeDto.class);
|
|
+ CardChangeDto cardChangeDto = JSON.parseObject(data, CardChangeDto.class);
|
|
|
|
|
|
- if(cardChangeDto == null || StringUtils.isEmpty(cardChangeDto.getCompanyNum())
|
|
+ if (cardChangeDto == null || StringUtils.isEmpty(cardChangeDto.getCompanyNum())
|
|
- || StringUtils.isEmpty(cardChangeDto.getTargetCompanyNum()) || cardChangeDto.getCardIdList()==null
|
|
+ || StringUtils.isEmpty(cardChangeDto.getTargetCompanyNum()) || cardChangeDto.getCardIdList() == null
|
|
- || cardChangeDto.getCardIdList().size()==0)
|
|
+ || cardChangeDto.getCardIdList().size() == 0) {
|
|
- {
|
|
|
|
result.setMsg("必传参数不足");
|
|
result.setMsg("必传参数不足");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
CustomerRec customerRec = new CustomerRec();
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(cardChangeDto.getCompanyNum());
|
|
customerRec.setCompanyNum(cardChangeDto.getCompanyNum());
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setMsg("该企业编号未注册企业!");
|
|
result.setMsg("该企业编号未注册企业!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
@@ -986,7 +974,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.customerCarUnRec-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|
|
@@ -1005,7 +993,6 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
@Override
|
|
@Override
|
|
public DataResult tradeApplyQuery(String appKey, String api, String data, String requestid) {
|
|
public DataResult tradeApplyQuery(String appKey, String api, String data, String requestid) {
|
|
long costtimestart = System.currentTimeMillis();
|
|
long costtimestart = System.currentTimeMillis();
|
|
@@ -1018,18 +1005,18 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
result.setMsg("无法认证");
|
|
result.setMsg("无法认证");
|
|
|
|
|
|
try {
|
|
try {
|
|
- log.info("[-SelfCarInterServiceImpl.tradeApplyQuery-] request appKey=" + appKey + " ,api=" + api + " ,data=" +data+ " ,requestid=" +requestid);
|
|
+ log.info("[-SelfCarInterServiceImpl.tradeApplyQuery-] request appKey=" + appKey + " ,api=" + api + " ,data=" + data + " ,requestid=" + requestid);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
JSONObject jsonObject = JSONObject.parseObject(data);
|
|
- String companyNum = jsonObject.getString("companyNum");
|
|
+ String companyNum = jsonObject.getString("companyNum");
|
|
- String cardId = jsonObject.getString("cardId");
|
|
+ String cardId = jsonObject.getString("cardId");
|
|
- String tradeId = jsonObject.getString("tradeId");
|
|
+ String tradeId = jsonObject.getString("tradeId");
|
|
- if(StringUtils.isEmpty(data)|| null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
+ if (StringUtils.isEmpty(data) || null == jsonObject || StringUtils.isEmpty(companyNum)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(cardId)
|
|
|| StringUtils.isEmpty(tradeId)
|
|
|| StringUtils.isEmpty(tradeId)
|
|
- ){
|
|
+ ) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
result.setMsg("必传参数有为空情况,请核实后再试");
|
|
- return result;
|
|
+ return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1037,13 +1024,13 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCustomerName(appKey);
|
|
customerRec.setCompanyNum(companyNum);
|
|
customerRec.setCompanyNum(companyNum);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
CustomerRec customerRec1 = customerRecMapper.selectByCustomerNameAndCompanyNum(customerRec);
|
|
- if (null == customerRec1){
|
|
+ if (null == customerRec1) {
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
result.setMsg("该企业编号在平台中不存在,请联系管理员核实!");
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
- TradeApplyQueryInvVo tradeApplyQueryInvVo = new TradeApplyQueryInvVo();
|
|
+ TradeApplyQueryInvVo tradeApplyQueryInvVo = new TradeApplyQueryInvVo();
|
|
tradeApplyQueryInvVo.setCompanyNum(companyNum);
|
|
tradeApplyQueryInvVo.setCompanyNum(companyNum);
|
|
tradeApplyQueryInvVo.setCardId(cardId);
|
|
tradeApplyQueryInvVo.setCardId(cardId);
|
|
tradeApplyQueryInvVo.setTradeId(tradeId);
|
|
tradeApplyQueryInvVo.setTradeId(tradeId);
|
|
@@ -1054,7 +1041,7 @@ public class SelfCarInterServiceImpl implements SelfCarInterService {
|
|
log.info("[-SelfCarInterServiceImpl.tradeApplyQuery-] result is "
|
|
log.info("[-SelfCarInterServiceImpl.tradeApplyQuery-] result is "
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ rs.toString() + ", request is " + data + " ,costtime="
|
|
+ (costtimeend - costtimestart));
|
|
+ (costtimeend - costtimestart));
|
|
- if(null != rs && rs.getCode() == 0){
|
|
+ if (null != rs && rs.getCode() == 0) {
|
|
result.setData(1);
|
|
result.setData(1);
|
|
result.setCode(200);
|
|
result.setCode(200);
|
|
result.setMsg(rs.getData().toString());
|
|
result.setMsg(rs.getData().toString());
|