|
@@ -38,9 +38,6 @@ public class WxProfitSharingReceiverApplyServiceImpl implements WxProfitSharingR |
|
|
@Autowired |
|
|
@Autowired |
|
|
WxProfitSharingReceiverApplyMapper wxProfitSharingReceiverApplyMapper; |
|
|
WxProfitSharingReceiverApplyMapper wxProfitSharingReceiverApplyMapper; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
WxProfitSharingReceiverService wxProfitSharingReceiverService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
WxAppinfoService wxAppinfoService; |
|
|
WxAppinfoService wxAppinfoService; |
|
|
|
|
|
|
|
@@ -143,23 +140,6 @@ public class WxProfitSharingReceiverApplyServiceImpl implements WxProfitSharingR |
|
|
} |
|
|
} |
|
|
receiverApplyUpd.setUpdateTime(new Date()); |
|
|
receiverApplyUpd.setUpdateTime(new Date()); |
|
|
wxProfitSharingReceiverApplyMapper.updateById(receiverApplyUpd); |
|
|
wxProfitSharingReceiverApplyMapper.updateById(receiverApplyUpd); |
|
|
if(enumApplymentState.equals(EnumSharingReceiverApplymentState.APPLYMENT_STATE_FINISHED)){ |
|
|
|
|
|
WxProfitSharingReceiver receiver = wxProfitSharingReceiverService.findReceiver(receiverApply, receiverApply.getMerchantId(), EnumAppPlat.WX, EnumProfitSharingType.PROFIT_SHARING_TYPE_WECHAT_v2); |
|
|
|
|
|
WxProfitSharingReceiver receiverUpd = new WxProfitSharingReceiver(); |
|
|
|
|
|
receiverUpd.updateTenantInfo(receiverApply); |
|
|
|
|
|
if(receiver != null){ |
|
|
|
|
|
receiverUpd.setId(receiver.getId()); |
|
|
|
|
|
receiverUpd.setReceiverAccount(receiverApplyUpd.getSubMchid()); |
|
|
|
|
|
}else{ |
|
|
|
|
|
receiverUpd.setPlat(EnumAppPlat.WX.getCode()); |
|
|
|
|
|
receiverUpd.setMerchantId(receiverApply.getMerchantId()); |
|
|
|
|
|
receiverUpd.setReceiverType(EnumProfitSharingReceiverType.PROFIT_SHARING_RECEIVER_MERCHANT_ID.getCode()); |
|
|
|
|
|
receiverUpd.setReceiverAccount(receiverApplyUpd.getSubMchid()); |
|
|
|
|
|
receiverUpd.setSharingType(EnumProfitSharingType.PROFIT_SHARING_TYPE_WECHAT_v2.getCode()); |
|
|
|
|
|
receiverUpd.setStatus(EnumProfitSharingReceiverStatus.PROFIT_SHARING_RECEIVER_STATUS_VALID.getCode()); |
|
|
|
|
|
} |
|
|
|
|
|
wxProfitSharingReceiverService.saveOrUpdate(receiverUpd); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
receiverApply.setSubMchid(receiverApplyUpd.getSubMchid()); |
|
|
receiverApply.setSubMchid(receiverApplyUpd.getSubMchid()); |
|
|
receiverApply.setSignUrl(receiverApplyUpd.getSignUrl()); |
|
|
receiverApply.setSignUrl(receiverApplyUpd.getSignUrl()); |
|
|