Commit 6a466128 authored by Administrator's avatar Administrator

修改更新受理库导入时间 更新受理库处理标志

parent 42066b6a
...@@ -28,13 +28,12 @@ public class UtilApi { ...@@ -28,13 +28,12 @@ public class UtilApi {
* @return * @return
*/ */
@RequestMapping("updateImportTime") @RequestMapping("updateImportTime")
public boolean updateImportTime(@RequestParam("groupNo") String groupNo, HttpServletRequest requ) { public boolean updateImportTime(HttpServletRequest requ) {
String remoteAddr = requ.getRemoteAddr(); String remoteAddr = requ.getRemoteAddr();
MDC.put("ip", remoteAddr); MDC.put("ip", remoteAddr);
try { try {
utilService.updateImportTime(groupNo); utilService.updateImportTime();
}catch (Exception e){ }catch (Exception e){
logger.error("组号:" + groupNo);
logger.error("Exception 更新受理库导入时间异常", e); logger.error("Exception 更新受理库导入时间异常", e);
} }
return true; return true;
...@@ -45,13 +44,13 @@ public class UtilApi { ...@@ -45,13 +44,13 @@ public class UtilApi {
* @return * @return
*/ */
@RequestMapping("updateDealFlag") @RequestMapping("updateDealFlag")
public boolean updateDealFlag(@RequestParam("dealFlag") String dealFlag, @RequestParam("groupNo") String groupNo, HttpServletRequest requ) { public boolean updateDealFlag(@RequestParam("dealFlag") String dealFlag, HttpServletRequest requ) {
String remoteAddr = requ.getRemoteAddr(); String remoteAddr = requ.getRemoteAddr();
MDC.put("ip", remoteAddr); MDC.put("ip", remoteAddr);
try { try {
utilService.updateDealFlag(dealFlag,groupNo); utilService.updateDealFlag(dealFlag);
}catch (Exception e){ }catch (Exception e){
logger.error("处理标志:" + dealFlag + "组号:" + groupNo); logger.error("处理标志:" + dealFlag);
logger.error("Exception 更新受理库处理标志异常", e); logger.error("Exception 更新受理库处理标志异常", e);
} }
return true; return true;
......
...@@ -13,13 +13,13 @@ public interface UtilMapper { ...@@ -13,13 +13,13 @@ public interface UtilMapper {
/** /**
* 更新受理库导入时间 * 更新受理库导入时间
*/ */
@Update("UPDATE ACC_GROUP_T@ACCU_LINK SET IMPORT_TIME = SYSDATE WHERE GROUP_NO = #{groupNo}") @Update("UPDATE ACC_GROUP_T@ACCU_LINK SET IMPORT_TIME = SYSDATE")
public boolean updateImportTime( String groupNo ); public boolean updateImportTime();
/** /**
* 更新受理库处理标志 * 更新受理库处理标志
*/ */
@Update("UPDATE ACC_GROUP_T@ACCU_LINK SET SUBMIT_DATE = SYSDATE, DEAL_FLAG = #{dealFlag} WHERE GROUP_NO = #{groupNo}") @Update("UPDATE ACC_GROUP_T@ACCU_LINK SET SUBMIT_DATE = SYSDATE, DEAL_FLAG = #{dealFlag}")
public boolean updateDealFlag( @Param("dealFlag") String dealFlag, @Param("groupNo") String groupNo ); public boolean updateDealFlag(String dealFlag);
} }
...@@ -4,6 +4,6 @@ package com.yxproject.start.service; ...@@ -4,6 +4,6 @@ package com.yxproject.start.service;
* Created by Administrator on 2019/6/18. * Created by Administrator on 2019/6/18.
*/ */
public interface UtilService { public interface UtilService {
public boolean updateImportTime( String groupNo ); public boolean updateImportTime();
public boolean updateDealFlag( String dealFlag, String groupNo ); public boolean updateDealFlag( String dealFlag );
} }
...@@ -16,14 +16,14 @@ public class UtilServiceImpl implements UtilService { ...@@ -16,14 +16,14 @@ public class UtilServiceImpl implements UtilService {
private UtilMapper utilMapper; private UtilMapper utilMapper;
@Override @Override
public boolean updateImportTime (String groupNo) { public boolean updateImportTime () {
utilMapper.updateImportTime(groupNo); utilMapper.updateImportTime();
return true; return true;
} }
@Override @Override
public boolean updateDealFlag(String dealFlag,String groupNo) { public boolean updateDealFlag(String dealFlag) {
utilMapper.updateDealFlag(dealFlag, groupNo); utilMapper.updateDealFlag(dealFlag);
return true; return true;
} }
......
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