| | |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.commons.lang.time.DateFormatUtils; |
| | | import org.codehaus.jackson.map.ObjectMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | reqData.setUid(conf.getUserName()); |
| | | //应用码 |
| | | reqData.setAppcode(conf.getAppCode()); |
| | | if(null != param.getStart()){ |
| | | reqData.setStarttime(DateFormatUtils.format(param.getStart(), "yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | if(null != param.getEnd()){ |
| | | reqData.setEndtime(DateFormatUtils.format(param.getEnd(), "yyyy-MM-dd HH:mm:ss")); |
| | | } |
| | | |
| | | //时间戳 |
| | | reqData.setTimestamp(Long.valueOf(ContextUtil.getCurTimeMillis())); |
| | | //身份签名,对应用码_授权码_站点编码_报文ID_时间戳进行MD5算法签名 |