|
|
|
@ -12,6 +12,7 @@ import au.com.royalpay.payment.manage.fund.core.impls.XPlanFundConfigServiceImpl
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.AppMessageLogMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ClearingDetailAnalysisMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.ClearingDetailMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.notice.NoticePartnerMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.OrderMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.TransactionMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
|
|
|
|
@ -140,6 +141,8 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
private ClientContractService clientContractService;
|
|
|
|
|
@Resource
|
|
|
|
|
private SysConfigManager sysConfigManager;
|
|
|
|
|
@Resource
|
|
|
|
|
private NoticePartnerMapper noticePartnerMapper;
|
|
|
|
|
|
|
|
|
|
private Map<String, AppMsgSender> senderMap = new HashMap<>();
|
|
|
|
|
|
|
|
|
@ -869,6 +872,28 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<JSONObject> getLatestNotice(int client_id) {
|
|
|
|
|
JSONObject notice = new JSONObject();
|
|
|
|
|
JSONObject lastNotice = noticeManage.getLatestWindowNotice(client_id);
|
|
|
|
|
if(lastNotice!=null){
|
|
|
|
|
lastNotice.put("id",lastNotice.getString("notice_id"));
|
|
|
|
|
lastNotice.remove("notice_id");
|
|
|
|
|
}
|
|
|
|
|
notice.put("data",lastNotice);
|
|
|
|
|
JSONObject unReadParams = new JSONObject();
|
|
|
|
|
unReadParams.put("client_id",client_id);
|
|
|
|
|
unReadParams.put("status",0);
|
|
|
|
|
int counts = noticePartnerMapper.countNoticePartner(unReadParams);
|
|
|
|
|
notice.put("unReadCounts",counts);
|
|
|
|
|
notice.put("type","notice");
|
|
|
|
|
List<JSONObject> result = new ArrayList<>();
|
|
|
|
|
result.add(notice);
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void changeAccountPassword(JSONObject device, ChangePwdBean change, String account_id) {
|
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
@ -1345,6 +1370,7 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
public JSONObject getCheckClientInfo(JSONObject device) {
|
|
|
|
|
return clientManager.getCheckClientInfo(device.getIntValue("client_id"), device.getString("account_id"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static boolean mathchLetterorNum(String str) {
|
|
|
|
|
String regex = "[A-Za-z0-9]{8}";
|
|
|
|
|
return str.matches(regex);
|
|
|
|
|