九月 发表于 2018-6-6 15:55
调用的地方
logger.info("----into --34-getRedpacketReward----userId:"+userId+"__dateStr:"+dateStr+" ...
调用的地方
logger.info("----into --34-getRedpacketReward----userId:"+userId+"__dateStr:"+dateStr+"__sendflag:"+sendflag);
Map<String, BigDecimal> storeInfo = appRedpacketMiniDao.getRedEnvelopesReward(userId, dateStr, sendflag);
String sum=storeInfo.get("redprem")+"";
if (sum.equals("null")) {
sum="";
}
logger.info("----into --34-getRedpacketReward----sum:"+sum+"__dateStr:"+dateStr);
定义的地方
@Arguments({"phone","pdate","sendflag"})
@Sql("select SUM(outprem) redprem from lc_rptotalpay WHERE STR_TO_DATE(create_date,'%Y-%m-%d %H:%i:%s') BETWEEN startdate AND enddate AND userid=:phone AND sendflag=:sendflag")
Map<String, BigDecimal> getRedEnvelopesReward(String phone,String pdate, String sendflag);
日志:
[2018-06-06 15:29:51] [INFO] [com.txsc.app.controller.AppRedpacketController:107] ----into --34-getRedpacketReward----userId:13716837204__dateStr:2018-06-06 15:29:51__sendflag:R
[2018-06-06 15:29:52] [INFO] [org.jeecgframework.minidao.aop.MiniDaoHandler:114] MiniDao-SQL:
select SUM(outprem) redprem from lc_rptotalpay WHERE STR_TO_DATE(create_date,'%Y-%m-%d %H:%i:%s') BETWEEN startdate AND enddate AND userid=:phone AND sendflag=:sendflag
[2018-06-06 15:29:52] [INFO] [com.txsc.app.controller.AppRedpacketController:113] ----into --34-getRedpacketReward----sum:45.32__dateStr:2018-06-06 15:29:51 |