Commit 360749cd authored by hongguangwu's avatar hongguangwu

MVP1.7.2 工行5次提交_明细发放状态更新

parent 3f76336d
...@@ -42,5 +42,10 @@ public interface EkpBankGrantDetailMapper extends BaseMapper<EkpBankGrantDetail> ...@@ -42,5 +42,10 @@ public interface EkpBankGrantDetailMapper extends BaseMapper<EkpBankGrantDetail>
// 查询详情里的1条数据 // 查询详情里的1条数据
List<EkpBankExcelVo> getEkpBankExcelVoByIdAndDetail(@Param("fdId") String fdId); List<EkpBankExcelVo> getEkpBankExcelVoByIdAndDetail(@Param("fdId") String fdId);
// 编号查重
String getWxNoByWxNo(@Param("wxNo") String wxNo); String getWxNoByWxNo(@Param("wxNo") String wxNo);
// 主表发放时,更新明细表的发放时间与状态
void updateStatusByGrant(@Param("fdParentId") String fdParentId);
} }
...@@ -43,4 +43,7 @@ public interface EkpBankGrantDetailService extends IService<EkpBankGrantDetail> ...@@ -43,4 +43,7 @@ public interface EkpBankGrantDetailService extends IService<EkpBankGrantDetail>
// 查询编码是否重复 // 查询编码是否重复
String getWxNoByWxNo(String wxNo); String getWxNoByWxNo(String wxNo);
// 主表发放时,更新明细表的发放时间与状态
void updateStatusByGrant(String fdParentId);
} }
...@@ -56,4 +56,9 @@ public class EkpBankGrantDetailServiceImpl extends ServiceImpl<EkpBankGrantDetai ...@@ -56,4 +56,9 @@ public class EkpBankGrantDetailServiceImpl extends ServiceImpl<EkpBankGrantDetai
public String getWxNoByWxNo(String wxNo) { public String getWxNoByWxNo(String wxNo) {
return baseMapper.getWxNoByWxNo(wxNo); return baseMapper.getWxNoByWxNo(wxNo);
} }
@Override
public void updateStatusByGrant(String fdParentId) {
baseMapper.updateStatusByGrant(fdParentId);
}
} }
...@@ -136,7 +136,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -136,7 +136,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
return R.ok(result); return R.ok(result);
} }
} catch (IcbcApiException e) { } catch (IcbcApiException e) {
e.printStackTrace(); log.error("银企付款发放失败", e);
return R.failed("发放失败"); return R.failed("发放失败");
} }
return R.failed("发放失败!"); return R.failed("发放失败!");
...@@ -666,6 +666,8 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -666,6 +666,8 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
main.setFdGrantStatus("发放中"); main.setFdGrantStatus("发放中");
main.setFdGrantNum(main.getFdGrantNum() + 1); main.setFdGrantNum(main.getFdGrantNum() + 1);
ekpBankPayTaskService.updateById(main); ekpBankPayTaskService.updateById(main);
// 同步更新明细的发放时间、发放状态
ekpBankGrantDetailService.updateStatusByGrant(fdId);
} }
return returnR; return returnR;
} else { } else {
...@@ -696,7 +698,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -696,7 +698,7 @@ public class IcbcTransactionFlowIssueServiceImpl extends ServiceImpl<EkpSocialIn
R<String> returnR = submitIcbcTransactionFlow(totalAmt, totalCount, wxNo, url, mdCode); R<String> returnR = submitIcbcTransactionFlow(totalAmt, totalCount, wxNo, url, mdCode);
if (returnR.getCode() == CommonConstants.SUCCESS) { if (returnR.getCode() == CommonConstants.SUCCESS) {
// 发放次数+1,改主表或明细表“发放状态”为“发放中” // 发放次数+1,改主表或明细表“发放状态”为“发放中”
detail.setFdGrantStatus("发放中"); detail.setFdHandleStatus("发放中");
detail.setFdGrantNum(detail.getFdGrantNum() + 1); detail.setFdGrantNum(detail.getFdGrantNum() + 1);
ekpBankGrantDetailService.updateById(detail); ekpBankGrantDetailService.updateById(detail);
} }
......
...@@ -106,4 +106,9 @@ ...@@ -106,4 +106,9 @@
) a limit 1 ) a limit 1
</select> </select>
<!-- 主表发放时,更新明细表的发放时间与状态 -->
<update id="updateStatusByGrant">
update ekp_bank_grant_detail a set a.fd_create_time = NOW(),a.fd_grant_status='发放中' where a.fd_parent_id = #{fdParentId}
</update>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment