Commit 72987709 authored by suichenguang's avatar suichenguang

数据核验

parent a8938764
...@@ -69,11 +69,6 @@ ...@@ -69,11 +69,6 @@
<artifactId>commons-fileupload</artifactId> <artifactId>commons-fileupload</artifactId>
<version>1.3.3</version> <version>1.3.3</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.14</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.poi</groupId> <groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId> <artifactId>poi-ooxml-schemas</artifactId>
......
...@@ -30,7 +30,7 @@ public class ReceiptApi { ...@@ -30,7 +30,7 @@ public class ReceiptApi {
*/ */
@RequestMapping("createReceiptList") @RequestMapping("createReceiptList")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean createReceiptList(@RequestParam("id") String id) { public Map<String, Object> createReceiptList(@RequestParam("id") String id) {
//判断是否是特证 //判断是否是特证
if (receiptService.selectSpecialCardByAcceptNo(id)==1){ if (receiptService.selectSpecialCardByAcceptNo(id)==1){
...@@ -87,23 +87,28 @@ public class ReceiptApi { ...@@ -87,23 +87,28 @@ public class ReceiptApi {
int specialCardCount =receiptService.selectSpecialCard(groupNo); int specialCardCount =receiptService.selectSpecialCard(groupNo);
receiptService.detailedTallyDown(specialCardCount,groupNo); receiptService.detailedTallyDown(specialCardCount,groupNo);
} }
return true;
}
/**
* 根据身份证号查询任务单
* @param id
* @return
*/
@RequestMapping("selectReceipt")
public Map<String,Object> selectReceipt(@RequestParam("id") String id){
Map<String,Object> resultMap=receiptService.selectReceiptListOfSpecialCard(id); Map<String,Object> resultMap=receiptService.selectReceiptListOfSpecialCard(id);
if (resultMap==null){ if (resultMap==null){
resultMap= receiptService.selectReceiptList(id); resultMap= receiptService.selectReceiptList(id);
} }
return resultMap; return resultMap;
} }
// /**
// * 根据身份证号查询任务单
// * @param id
// * @return
// */
// @RequestMapping("selectReceipt")
// public Map<String,Object> selectReceipt(@RequestParam("id") String id){
// Map<String,Object> resultMap=receiptService.selectReceiptListOfSpecialCard(id);
// if (resultMap==null){
// resultMap= receiptService.selectReceiptList(id);
// }
// return resultMap;
// }
/** /**
* 根据任务单查询详细信息 * 根据任务单查询详细信息
* @param receiptId * @param receiptId
......
...@@ -9,21 +9,14 @@ import com.yxproject.start.mapper.PreproPersonMapper; ...@@ -9,21 +9,14 @@ import com.yxproject.start.mapper.PreproPersonMapper;
import com.yxproject.start.service.PersonPostService; import com.yxproject.start.service.PersonPostService;
import net.sf.json.JSONArray; import net.sf.json.JSONArray;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.xml.crypto.Data;
import java.io.OutputStream;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.sql.Time;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
......
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