|
|
@@ -454,6 +454,30 @@ public class ProjectPaySettingServiceImpl extends SuperService {
|
|
|
return model;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查找结构在项目的支付配置参数
|
|
|
+ *
|
|
|
+ * @param projectOid
|
|
|
+ * @param oid
|
|
|
+ * @param paymentType
|
|
|
+ * @param isMain
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public OrgPayConfigModel getOrgPayConfig(
|
|
|
+ String projectOid,
|
|
|
+ String oid,
|
|
|
+ PaymentType paymentType,
|
|
|
+ Boolean isMain) {
|
|
|
+ OrgPayConfigModel model = null;
|
|
|
+ ProjectOrgPaySettingInfo temp = projectPaySettingInfoDao.findTopByBelongOigAndProjectOidAndChannelTypeAAndIsDefault(
|
|
|
+ oid, projectOid, paymentType, isMain);
|
|
|
+ if (ObjectUtils.isNotEmpty(temp)) {
|
|
|
+ model = new OrgPayConfigModel();
|
|
|
+ BeanUtils.copyProperties(temp, model);
|
|
|
+ }
|
|
|
+ return model;
|
|
|
+ }
|
|
|
+
|
|
|
public ResultContent initChangeDefault(String id, String belongOig, String projectOid, PaymentType paymentType) {
|
|
|
// List<ProjectOrgPaySettingInfo> list = projectPaySettingInfoDao.findByBelongOigAndProjectOidAndChannelType(belongOig, projectOid, paymentType);
|
|
|
// if (ObjectUtils.isNotEmpty(list)) {
|