|
@@ -1197,4 +1197,36 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
}
|
|
|
return mchnt.getMchnt();
|
|
|
}
|
|
|
+
|
|
|
+ public void tongyuLrxx() {
|
|
|
+ List<InLnstLrxx> tyList = zwywLrJbxxMapper.selectList(new LambdaQueryWrapper<InLnstLrxx>()
|
|
|
+ .like(InLnstLrxx::getLrHjdz, "220822"));
|
|
|
+ tyList = tyList.stream().filter(t -> StringUtils.isEmpty(t.getYlcard())).collect(Collectors.toList());
|
|
|
+ for (InLnstLrxx lr: tyList) {
|
|
|
+ if (StringUtils.isAnyEmpty(lr.getYlcode(), lr.getYlcard(), lr.getMchnt())) {
|
|
|
+ EncryptionUtils.decryptForPlaintext(lr);
|
|
|
+ InLnstLrxx query = new InLnstLrxx();
|
|
|
+ query.setLrZjhm(lr.getLrZjhm());
|
|
|
+ query.setMchnt("10002253");
|
|
|
+ JSONObject res = ylServer.ylQuery(query);
|
|
|
+ if (ObjectUtils.isNotEmpty(res) && res.containsKey("respCode") && StringUtils.equals(res.getString("respCode"), "0000")) {
|
|
|
+ lr.setYlcode(res.getJSONObject("member").getString("memberCode"));
|
|
|
+ lr.setYlcard(res.getJSONObject("member").getString("cardCode"));
|
|
|
+ lr.setMchnt("10002253");
|
|
|
+ if (StringUtils.equals(res.getJSONObject("member").getString("state"), "1")) {
|
|
|
+ lr.setLzzt("3");
|
|
|
+ lr.setState("1");
|
|
|
+ } else {
|
|
|
+ lr.setLzzt("4");
|
|
|
+ lr.setState("0");
|
|
|
+ }
|
|
|
+ zwywLrJbxxMapper.updateById(lr);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public void mrYcxx() {
|
|
|
+
|
|
|
+ }
|
|
|
}
|