Commit 6a466128 authored by Administrator's avatar Administrator

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

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