Commit 1999a2ad authored by suichenguang's avatar suichenguang

制证包管理添加删除

parent c7bc9b4f
......@@ -5,9 +5,7 @@ import com.yxproject.start.entity.CountyDicEntity;
import com.yxproject.start.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.xml.crypto.Data;
......@@ -115,6 +113,14 @@ public class LogApi {
}
@RequestMapping("deleteFiles")
@Transactional(rollbackFor = Exception.class)
public boolean deleteFiles(@RequestParam("fileId")String fileId){
logService.deleteFilesData(fileId);
logService.deleteFile(fileId);
return true;
}
/**
* 去除字符串中中线
......
......@@ -133,4 +133,24 @@ public interface LogMapper {
"</if>" +
"</script>")
public int selectAnalysisLogCount(@Param("fileName")String fileName, @Param("analysisDate")String analysisDate);
@Delete("delete from PREPRO_PERSON where file_id = #{fileId}")
public boolean deleteFilesData(@Param("fileId")String fileId);
@Delete("delete from files where id=#{fileId}")
public boolean deleteFile(@Param("fileId")String fileId);
}
......@@ -2,6 +2,7 @@ package com.yxproject.start.service;
import com.yxproject.start.entity.CountyDicEntity;
import org.apache.ibatis.annotations.Param;
import javax.xml.crypto.Data;
import java.util.Date;
......@@ -25,4 +26,9 @@ public interface LogService {
public boolean changeCardType(String printDate,String latticeMouthInformation);
public boolean insertAnalysisDate(String printDate,String latticeMouthInformation);
public boolean deleteFilesData(@Param("fileId")String fileId);
public boolean deleteFile(@Param("fileId")String fileId);
}
......@@ -61,4 +61,16 @@ public class LogServiceImpl implements LogService {
logMapper.insertAnalysisDate(printDate,latticeMouthInformation);
return true;
}
@Override
public boolean deleteFilesData(String fileId) {
logMapper.deleteFilesData(fileId);
return true;
}
@Override
public boolean deleteFile(String fileId) {
logMapper.deleteFile(fileId);
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