Commit d22f0d42 authored by suichenguang's avatar suichenguang

交接单修改

parent 72987709
...@@ -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 Map<String, Object> createReceiptList(@RequestParam("id") String id) { public List<Map<String, Object>> createReceiptList(@RequestParam("id") String id) {
//判断是否是特证 //判断是否是特证
if (receiptService.selectSpecialCardByAcceptNo(id)==1){ if (receiptService.selectSpecialCardByAcceptNo(id)==1){
...@@ -87,11 +87,8 @@ public class ReceiptApi { ...@@ -87,11 +87,8 @@ public class ReceiptApi {
int specialCardCount =receiptService.selectSpecialCard(groupNo); int specialCardCount =receiptService.selectSpecialCard(groupNo);
receiptService.detailedTallyDown(specialCardCount,groupNo); receiptService.detailedTallyDown(specialCardCount,groupNo);
} }
Map<String,Object> resultMap=receiptService.selectReceiptListOfSpecialCard(id); List<Map<String,Object>> resultList=receiptService.selectReceiptListOfSpecialCard();
if (resultMap==null){ return resultList;
resultMap= receiptService.selectReceiptList(id);
}
return resultMap;
} }
......
...@@ -64,10 +64,8 @@ public interface ReceiptMapper { ...@@ -64,10 +64,8 @@ public interface ReceiptMapper {
//根据身份证号查询特证交接单 //根据身份证号查询特证交接单
@Select("SELECT RECEIPT_LIST.* FROM RECEIPT_LIST \n" + @Select("SELECT RECEIPT_LIST.* FROM RECEIPT_LIST where state=0\n")
"LEFT JOIN PROD_CARD_T@PROD_LINK ON PROD_CARD_T.ACCEPT_NO =RECEIPT_LIST.QR_CODE\n" + public List<Map<String,Object>>selectReceiptListOfSpecialCard ();
"WHERE PROD_CARD_T.ID_NO =#{id}")
public Map<String,Object>selectReceiptListOfSpecialCard (String id);
//根据身份证号查询普通证交接单 //根据身份证号查询普通证交接单
......
...@@ -24,7 +24,7 @@ public interface ReceiptService { ...@@ -24,7 +24,7 @@ public interface ReceiptService {
public int selectSpecialCardByAcceptNo(String id); public int selectSpecialCardByAcceptNo(String id);
public Map<String,Object>selectReceiptListOfSpecialCard (String id); public List<Map<String,Object>>selectReceiptListOfSpecialCard ();
public Map<String,Object> selectReceiptList(String id); public Map<String,Object> selectReceiptList(String id);
......
...@@ -63,9 +63,9 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -63,9 +63,9 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override @Override
public Map<String, Object> selectReceiptListOfSpecialCard(String id) { public List<Map<String, Object>> selectReceiptListOfSpecialCard() {
Map<String,Object> resultMap= receiptMapper.selectReceiptListOfSpecialCard(id); List<Map<String,Object>> resultList= receiptMapper.selectReceiptListOfSpecialCard();
return resultMap; return resultList;
} }
@Override @Override
......
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