//接口
@Select("{call ecc_bj.pro_2022_questionnaire(" +
"#{IN_OPENID , jdbcType=VARCHAR, mode=IN}," +
"#{IN_DATE , jdbcType=VARCHAR, mode=IN}," +
"#{IN_EVENT_ID , jdbcType=VARCHAR, mode=IN}," +
"#{OUT_CARD_ID , jdbcType=VARCHAR, mode=OUT}," +
"#{OUT_STATUS , jdbcType=VARCHAR, mode=OUT}," +
"#{OUT_MSG , jdbcType=VARCHAR, mode=OUT})}")
@Options(statementType = StatementType.CALLABLE)
void callPr(Map<String, String> map);
调用接口:
if(num>0){//插入成功 调用接口
Map<String, String> map = new HashMap<>();
map.put("IN_OPENID",openId);
map.put("IN_DATE", DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
map.put("IN_EVENT_ID","56");
map.put("OUT_CARD_ID","");
map.put("OUT_STATUS","");
map.put("OUT_MSG","");
answerDao.callPr(map);
errorid = map.get("OUT_STATUS");
if(!"0".equals(errorid)){
//删除数据
answerDao.deleteAnswer(openId);
}
|