Commit 1b5e0aab authored by suichenguang's avatar suichenguang

excel添加更改备注

parent 9f63d4a5
...@@ -24,8 +24,10 @@ import java.nio.charset.StandardCharsets; ...@@ -24,8 +24,10 @@ import java.nio.charset.StandardCharsets;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 自主选择删除个人邮寄信息 * 自主选择删除个人邮寄信息
...@@ -51,6 +53,29 @@ public class PersonPostApi { ...@@ -51,6 +53,29 @@ public class PersonPostApi {
return null; return null;
} }
@RequestMapping("selectNote")
public List<Map<String,Object>>selectNote(@RequestBody String jsonStr){
List<Map<String,Object>> resultList = new ArrayList<>();
JSONArray jsonArray = JSONArray.fromObject(jsonStr);
for (int i=0;i<jsonArray.size();i++){
Map<String,Object> resultMap=personPostService.selectNote((String) jsonArray.get(i));
resultList.add(resultMap);
}
return resultList;
}
@RequestMapping("addNote")
public boolean addNote(@RequestBody String jsonStr){
JSONArray jsonArray = JSONArray.fromObject(jsonStr);
for (int i=0;i<jsonArray.size();i++){
Map<String,Object> noteMap = (Map<String, Object>) jsonArray.get(i);
personPostService.addNote(noteMap.get("id").toString(),noteMap.get("note").toString());
}
return true;
}
/** /**
* 按条件查询个人邮寄信息 * 按条件查询个人邮寄信息
* @param jsonStr * @param jsonStr
......
...@@ -5,6 +5,7 @@ import org.apache.ibatis.annotations.*; ...@@ -5,6 +5,7 @@ import org.apache.ibatis.annotations.*;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
...@@ -56,6 +57,13 @@ public interface PersonPostMapper { ...@@ -56,6 +57,13 @@ public interface PersonPostMapper {
public List<PersonPostEntity> findAllPersonalData(@Param("applicantName")String applicantName,@Param("orderNumber")String orderNumber,@Param("state")String state,@Param("latticeMouthInformation")String latticeMouthInformation,@Param("getToCounty")String getToCounty,@Param("uploadDate")String uploadDate,@Param("firstIndex")long firstIndex,@Param("pageSize")long pageSize,@Param("emailNo")String emailNo,@Param("notNull")int notNull); public List<PersonPostEntity> findAllPersonalData(@Param("applicantName")String applicantName,@Param("orderNumber")String orderNumber,@Param("state")String state,@Param("latticeMouthInformation")String latticeMouthInformation,@Param("getToCounty")String getToCounty,@Param("uploadDate")String uploadDate,@Param("firstIndex")long firstIndex,@Param("pageSize")long pageSize,@Param("emailNo")String emailNo,@Param("notNull")int notNull);
@Select("select ID,FIRST_WHITE,APPLICANT_NAME,NOTE from person_post where ID=#{id}")
public Map<String,Object>selectNote(@Param("id")String id);
@Update("UPDATE PERSON_POST SET NOTE = #{note} where ID = #{id}")
public boolean addNote(@Param("id")String id,@Param("note")String note);
@Select("<script> " + @Select("<script> " +
"SELECT COUNT(*) FROM PERSON_POST \n" + "SELECT COUNT(*) FROM PERSON_POST \n" +
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID " + " LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID " +
......
...@@ -10,6 +10,7 @@ import javax.servlet.http.HttpServletRequest; ...@@ -10,6 +10,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
...@@ -42,4 +43,9 @@ public interface PersonPostService { ...@@ -42,4 +43,9 @@ public interface PersonPostService {
public int findPersonalDataCountByImportDate(String importDate); public int findPersonalDataCountByImportDate(String importDate);
public List<PersonPostEntity> downLoadReportForm(HttpServletRequest request,HttpServletResponse response,String sqrxm, String ddh, String hasPrinted, String gkxx, JSONArray jsonArray, String uploadDate,String emailNo); public List<PersonPostEntity> downLoadReportForm(HttpServletRequest request,HttpServletResponse response,String sqrxm, String ddh, String hasPrinted, String gkxx, JSONArray jsonArray, String uploadDate,String emailNo);
public Map<String,Object> selectNote(@Param("id")String id);
public boolean addNote(@Param("id")String id,@Param("note")String note);
} }
...@@ -19,6 +19,7 @@ import javax.servlet.http.HttpServletResponse; ...@@ -19,6 +19,7 @@ import javax.servlet.http.HttpServletResponse;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
...@@ -132,6 +133,18 @@ public class PersonPostServiceImpl implements PersonPostService { ...@@ -132,6 +133,18 @@ public class PersonPostServiceImpl implements PersonPostService {
return list; return list;
} }
@Override
public Map<String, Object> selectNote(String id) {
Map<String, Object> resultMap = personPostMapper.selectNote(id);
return resultMap;
}
@Override
public boolean addNote(String id, String note) {
personPostMapper.addNote(id, note);
return true;
}
// /** // /**
// * 查询个人邮寄信息 // * 查询个人邮寄信息
// * @param fileName 文件名 // * @param fileName 文件名
......
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