|
|
@ -24,11 +24,11 @@ import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.config.device.SoundService; |
|
|
|
import com.hfkj.config.device.SoundService; |
|
|
|
import com.hfkj.config.mqtt.MqttProviderService; |
|
|
|
import com.hfkj.config.mqtt.MqttProviderService; |
|
|
|
import com.hfkj.entity.BsLklMcc; |
|
|
|
import com.hfkj.entity.BsLklMcc; |
|
|
|
|
|
|
|
import com.hfkj.entity.BsTradeOrder; |
|
|
|
|
|
|
|
import com.hfkj.entity.BsTradeOrderProfitSharing; |
|
|
|
import com.hfkj.entity.SecRegion; |
|
|
|
import com.hfkj.entity.SecRegion; |
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
import com.hfkj.service.BsLklMccService; |
|
|
|
import com.hfkj.service.*; |
|
|
|
import com.hfkj.service.CommonService; |
|
|
|
|
|
|
|
import com.hfkj.service.SecRegionService; |
|
|
|
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
@ -81,20 +81,10 @@ public class TestController { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private LaKaLaLedgerService laKaLaLedgerService; |
|
|
|
private LaKaLaLedgerService laKaLaLedgerService; |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/rotationQueryTrade",method = RequestMethod.GET) |
|
|
|
@Resource |
|
|
|
@ResponseBody |
|
|
|
private BsTradeOrderService tradeOrderService; |
|
|
|
@ApiOperation(value = "交易【被扫】") |
|
|
|
@Resource |
|
|
|
public ResponseData rotationQueryTrade() { |
|
|
|
private BsTradeOrderProfitSharingService tradeOrderProfitSharingService; |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return ResponseMsgUtil.success(LaKaLaConfig.queryCardBin("3100020709200056842"));
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(laKaLaLedgerService.queryLedgerMer("8221210701101SB")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error(e.getMessage(), e); |
|
|
|
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/saasGetToken",method = RequestMethod.GET) |
|
|
|
@RequestMapping(value="/saasGetToken",method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
@ -121,7 +111,8 @@ public class TestController { |
|
|
|
// return ResponseMsgUtil.success(saasCommon.getArea("1"));
|
|
|
|
// return ResponseMsgUtil.success(saasCommon.getArea("1"));
|
|
|
|
// return ResponseMsgUtil.success(saasCommon.getBank("6530", "大坪支行"));
|
|
|
|
// return ResponseMsgUtil.success(saasCommon.getBank("6530", "大坪支行"));
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(laKaLaLedgerService); |
|
|
|
tradeOrderProfitSharingService.createProfitSharing(tradeOrderService.getOrderByOutTradeNo("")); |
|
|
|
|
|
|
|
return ResponseMsgUtil.success(""); |
|
|
|
// return ResponseMsgUtil.success("");
|
|
|
|
// return ResponseMsgUtil.success("");
|
|
|
|
// 1200
|
|
|
|
// 1200
|
|
|
|
// return ResponseMsgUtil.success(saasCommon.fileUpload(new HashMap<>()));
|
|
|
|
// return ResponseMsgUtil.success(saasCommon.fileUpload(new HashMap<>()));
|
|
|
@ -142,47 +133,6 @@ public class TestController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static String test(String str, Integer type) { |
|
|
|
|
|
|
|
char[] chars = str.toCharArray(); |
|
|
|
|
|
|
|
// oP: '省' 的偏移, oC: '市' 的偏移, oR: "自治区" 的偏移
|
|
|
|
|
|
|
|
int oP = -1, oC = -1, oR = -1; |
|
|
|
|
|
|
|
char ch; |
|
|
|
|
|
|
|
for (int i = 0; i < chars.length; i++) { |
|
|
|
|
|
|
|
ch = chars[i]; |
|
|
|
|
|
|
|
// 一般来说 '省' 的位置会比 '市' 早出现
|
|
|
|
|
|
|
|
if (ch == '省') { |
|
|
|
|
|
|
|
oP = i; |
|
|
|
|
|
|
|
} else if (ch == '市') { |
|
|
|
|
|
|
|
oC = i; |
|
|
|
|
|
|
|
// 找到 '市' 后就可以跳出循环了
|
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} else if (ch == '自' |
|
|
|
|
|
|
|
&& i + 2 < chars.length |
|
|
|
|
|
|
|
&& chars[i + 1] == '治' |
|
|
|
|
|
|
|
&& chars[i + 2] == '区') { |
|
|
|
|
|
|
|
// "自治区" 出现的几率挺小
|
|
|
|
|
|
|
|
oR = i + 2; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (type == 1) { |
|
|
|
|
|
|
|
if (oC != -1) { |
|
|
|
|
|
|
|
str = str.substring(oC + 1); |
|
|
|
|
|
|
|
} else if (oP != -1) { |
|
|
|
|
|
|
|
str = str.substring(oP + 1); |
|
|
|
|
|
|
|
} else if (oR != -1) { |
|
|
|
|
|
|
|
str = str.substring(oR + 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (type == 2) { |
|
|
|
|
|
|
|
if (oP != -1) { |
|
|
|
|
|
|
|
str = str.substring(oP + 1); |
|
|
|
|
|
|
|
} else if (oR != -1) { |
|
|
|
|
|
|
|
str = str.substring(oR + 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return str; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping(value="/soundSendMsg",method = RequestMethod.GET) |
|
|
|
@RequestMapping(value="/soundSendMsg",method = RequestMethod.GET) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
@ApiOperation(value = "音响发送消息") |
|
|
|
@ApiOperation(value = "音响发送消息") |
|
|
|