修改进件资料时 判断修改进件状态
This commit is contained in:
@@ -100,15 +100,19 @@ public class ShopDirectMerchantServiceImpl extends ServiceImpl<ShopDirectMerchan
|
|||||||
merchant.setBusinessLicenceInfo(JSONObject.toJSONString(reqDto.getBusinessLicenceInfo()));
|
merchant.setBusinessLicenceInfo(JSONObject.toJSONString(reqDto.getBusinessLicenceInfo()));
|
||||||
merchant.setStoreInfo(JSONObject.toJSONString(reqDto.getStoreInfo()));
|
merchant.setStoreInfo(JSONObject.toJSONString(reqDto.getStoreInfo()));
|
||||||
merchant.setSettlementInfo(JSONObject.toJSONString(reqDto.getSettlementInfo()));
|
merchant.setSettlementInfo(JSONObject.toJSONString(reqDto.getSettlementInfo()));
|
||||||
if (merchant.getAlipayStatus().equals(PayCst.EntryStatus.INIT) || merchant.getAlipayStatus().equals(PayCst.EntryStatus.REJECTED)) {
|
|
||||||
merchant.setAlipayStatus(PayCst.EntryStatus.WAIT);
|
|
||||||
}
|
|
||||||
if (merchant.getWechatStatus().equals(PayCst.EntryStatus.INIT) || merchant.getWechatStatus().equals(PayCst.EntryStatus.REJECTED)) {
|
|
||||||
merchant.setWechatStatus(PayCst.EntryStatus.WAIT);
|
|
||||||
}
|
|
||||||
if (isSave) {
|
if (isSave) {
|
||||||
|
merchant.setAlipayStatus(PayCst.EntryStatus.WAIT);
|
||||||
|
merchant.setWechatStatus(PayCst.EntryStatus.WAIT);
|
||||||
result = save(merchant);
|
result = save(merchant);
|
||||||
} else {
|
} else {
|
||||||
|
ShopDirectMerchant directMerchant = getById(reqDto.getShopId());
|
||||||
|
if (directMerchant.getAlipayStatus().equals(PayCst.EntryStatus.INIT) || directMerchant.getAlipayStatus().equals(PayCst.EntryStatus.REJECTED)) {
|
||||||
|
merchant.setAlipayStatus(PayCst.EntryStatus.WAIT);
|
||||||
|
}
|
||||||
|
if (directMerchant.getWechatStatus().equals(PayCst.EntryStatus.INIT) || directMerchant.getWechatStatus().equals(PayCst.EntryStatus.REJECTED)) {
|
||||||
|
merchant.setWechatStatus(PayCst.EntryStatus.WAIT);
|
||||||
|
}
|
||||||
result = updateById(merchant);
|
result = updateById(merchant);
|
||||||
}
|
}
|
||||||
//发送进件队列消息
|
//发送进件队列消息
|
||||||
|
|||||||
Reference in New Issue
Block a user