手机号、邮箱加密

This commit is contained in:
梁琦涛
2021-09-02 14:25:05 +08:00
parent cc1b30616f
commit 797ec35257
16 changed files with 312 additions and 103 deletions
@@ -0,0 +1,18 @@
package com.jero.common.service;
import com.alibaba.fastjson.JSONObject;
public interface ProjectDetailService {
/**
* @Description 获取企业信息,联系人信息,到账信息,开票邮寄记录
* @Author lqt
* @Date 2021/9/2
* @Param projectId项目id
* @Param companyId 企业id
* @Param contactsId 联系人id
* @Return
* @Exception
*/
JSONObject getProjectDetail(String projectId,String companyId,String contactsId);
}
@@ -0,0 +1,54 @@
package com.jero.common.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jero.common.exception.JeroBootException;
import com.jero.common.service.ProjectDetailService;
import com.jero.mail.entity.PayMailBill;
import com.jero.mail.service.IPayMailBillService;
import com.jero.payment.entity.PayPaymentRecord;
import com.jero.payment.service.IPayPaymentRecordService;
import com.jero.temporary.entity.PayCompanyManagementTemporary;
import com.jero.temporary.entity.PayContactsManagementTemporary;
import com.jero.temporary.service.IPayCompanyManagementTemporaryService;
import com.jero.temporary.service.IPayContactsManagementTemporaryService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ProjectDetailServiceImpl implements ProjectDetailService {
@Autowired
IPayCompanyManagementTemporaryService payCompanyManagementTemporaryService;
@Autowired
IPayContactsManagementTemporaryService payContactsManagementTemporaryService;
@Autowired
IPayPaymentRecordService payPaymentRecordService;
@Autowired
IPayMailBillService payMailBillService;
@Override
public JSONObject getProjectDetail(String projectId, String companyId, String contactsId) {
if(StringUtils.isBlank(projectId) || StringUtils.isBlank(companyId) || StringUtils.isBlank(contactsId)){
throw new JeroBootException("项目id、企业id、联系人id不能为空!");
}
JSONObject json = new JSONObject();
// 企业信息
PayCompanyManagementTemporary payCompanyManagementTemporary = payCompanyManagementTemporaryService.getById(companyId);
json.put("company",payCompanyManagementTemporary);
// 联系人信息
PayContactsManagementTemporary payContactsManagementTemporary = payContactsManagementTemporaryService.getById(contactsId);
json.put("contacts",payContactsManagementTemporary);
// 到账信息
LambdaQueryWrapper<PayPaymentRecord> queryWrapperPayPaymentRecord = new LambdaQueryWrapper<>();
queryWrapperPayPaymentRecord.eq(PayPaymentRecord::getProjectId,projectId);
List<PayPaymentRecord> payPaymentRecordList = payPaymentRecordService.list(queryWrapperPayPaymentRecord);
json.put("paymentRecord",payPaymentRecordList);
// 开票邮寄记录
List<PayMailBill> listMailBillVO = payMailBillService.selectMailBillVO(projectId);
json.put("mailBill",listMailBillVO);
return json;
}
}