Commit 4591fdea authored by suichenguang's avatar suichenguang

解析更改2.0

parent 32841cef
......@@ -107,8 +107,8 @@ public class LogApi {
@Transactional(rollbackFor = Exception.class)
public boolean analysis(@RequestParam("printDate")String printDate,@RequestParam("fileId")String fileId){
logService.changeCardType(printDate,fileId);
SimpleDateFormat df = new SimpleDateFormat("yyyy-mm-dd hh24:mi:ss");
logService.insertAnalysisDate(df.format(new Date()));
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
logService.insertAnalysisDate(df.format(new Date()),fileId);
return true;
}
......@@ -125,7 +125,6 @@ public class LogApi {
for (int i=0;i<idList.size();i++){
logService.deleteFilesData(idList.get(i));
}
for (int i=0;i<idList.size();i++){
logService.deleteFile(idList.get(i));
}
......
......@@ -28,14 +28,14 @@ public interface LogMapper {
"SELECT PREPRO_PERSON.JMSFZSLH \n" +
"FROM PREPRO_PERSON \n" +
"LEFT JOIN PERSON_POST ON PERSON_POST.FIRST_WHITE = PREPRO_PERSON.JMSFZSLH\n" +
"LEFT JOIN FILES ON FILES.ID=PREPRO_PERSON.FILE_ID"+
"WHERE TO_CHAR(PREPRO_PERSON.UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss')=#{printDate} AND PERSON_POST.file_id=#{fileId}\n" +
"LEFT JOIN FILES ON FILES.ID=PREPRO_PERSON.FILE_ID "+
" WHERE TO_CHAR(FILES.UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss')=#{printDate} AND PERSON_POST.file_id=#{fileId}\n" +
")")
public boolean changeCardType(@Param("printDate")String printDate,@Param("fileId")String fileId);
@Insert("INSERT INTO FILE_NAME_DIC ( TO_CHAR(FILE_NAME_DIC.ANALYSIS_DATE,'yyyy-mm-dd hh24:mi:ss')) VALUES (#{printDate}) ")
public boolean insertAnalysisDate(@Param("printDate")String printDate);
@Update(" update FILE_NAME_DIC set FILE_NAME_DIC.ANALYSIS_DATE = to_date(#{printDate},'yyyy-mm-dd hh24:mi:ss') where file_id=#{fileId} ")
public boolean insertAnalysisDate(@Param("printDate")String printDate,@Param("fileId")String fileId);
@Select("<script> " +
......
......@@ -22,7 +22,7 @@ public interface LogService {
public boolean changeCardType(String printDate,String latticeMouthInformation);
public boolean insertAnalysisDate(String printDate);
public boolean insertAnalysisDate(String printDate,String fileId);
public boolean deleteFilesData(@Param("id")String id);
......
......@@ -57,8 +57,8 @@ public class LogServiceImpl implements LogService {
}
@Override
public boolean insertAnalysisDate(String printDate) {
logMapper.insertAnalysisDate(printDate);
public boolean insertAnalysisDate(String printDate,String fileId) {
logMapper.insertAnalysisDate(printDate,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