| | |
| | | |
| | | // 新增sap请求日志 |
| | | public Integer addSapLog(@Param("matnr") String matnr, @Param("request") String request, @Param("response") String response, @Param("create_time") Date create_time, @Param("type") Integer type, @Param("remark") String remark); |
| | | |
| | | // 删除sap的2天前的日志内容 |
| | | public Integer clearSapLog(); |
| | | } |
| | |
| | | updateWaitPakInData(); // 入库 |
| | | sendPickPrintCmd(); // 打印 |
| | | updateWaitPakOutData(); // 出库 |
| | | // 清空2天前的日志 |
| | | sapRequestLogService.clearSapLog(); |
| | | // updateWaitCheckData(); |
| | | Thread.sleep(5000); |
| | | } catch (InterruptedException e) { |
| | |
| | | public List<SapRequestLogBean> querySapLog(String condition); |
| | | |
| | | public Integer addSapLog(SapRequestLogBean param); |
| | | |
| | | public Integer clearSapLog(); |
| | | } |
| | |
| | | Integer result = sapRequestLogDao.addSapLog(param.getMatnr(), param.getRequest(), param.getResponse(), param.getCreate_time(), param.getType(), param.getRemark()); |
| | | return result; |
| | | } |
| | | |
| | | public Integer clearSapLog() { |
| | | Integer result = sapRequestLogDao.clearSapLog(); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | <result column="type" property="type"></result> |
| | | </resultMap> |
| | | |
| | | <!-- 查询sap日志 --> |
| | | <select id="querySapLog" resultMap="BaseResult"> |
| | | SELECT * FROM sap_request_log |
| | | where 1 = 1 |
| | |
| | | ORDER BY create_time desc |
| | | </select> |
| | | |
| | | <!-- 插入sap日志 --> |
| | | <insert id="addSapLog"> |
| | | INSERT INTO sap_request_log(matnr, request, response, create_time, type, remark) VALUES (#{matnr}, #{request}, #{response}, #{create_time}, #{type}, #{remark}) |
| | | </insert> |
| | | |
| | | |
| | | <!-- 删除sap的2天前的日志内容 --> |
| | | <delete id="clearSapLog"> |
| | | delete from sap_request_log where DateDiff(dd,create_time,getdate()) > 2 |
| | | </delete> |
| | | |
| | | </mapper> |