Commit f97ca76b authored by dahai's avatar dahai

修改提前领取登记 添加登记时间、登记人姓名

添加查询提前领取登记记录
parent b7e30dfd
...@@ -356,7 +356,7 @@ public class ReceiptApi { ...@@ -356,7 +356,7 @@ public class ReceiptApi {
jsonArray = JSONArray.fromObject(jsonStr); jsonArray = JSONArray.fromObject(jsonStr);
for (int i = 0; i < jsonArray.size(); i++) { for (int i = 0; i < jsonArray.size(); i++) {
Map<String, Object> resultMap = (Map<String, Object>) jsonArray.get(i); Map<String, Object> resultMap = (Map<String, Object>) jsonArray.get(i);
receiptService.updateDetail(formateAcceptNo(resultMap.get("acceptNo").toString()), resultMap.get("note").toString()); receiptService.updateDetail(formateAcceptNo(resultMap.get("acceptNo").toString()), resultMap.get("note").toString(), resultMap.get("name").toString());
} }
}catch (Exception e) { }catch (Exception e) {
logger.error("备注信息:" + jsonStr ); logger.error("备注信息:" + jsonStr );
...@@ -365,6 +365,17 @@ public class ReceiptApi { ...@@ -365,6 +365,17 @@ public class ReceiptApi {
return true; return true;
} }
/**
* 查询提前领取登记记录
*
* @return
*/
@RequestMapping("queryDetailNote")
public List<DetailReceiptListEntity> queryDetailNote(@RequestParam("startDate") String startDate,@RequestParam("endDate") String endDate,@RequestParam("name") String name) {
List<DetailReceiptListEntity> detailReceiptListEntityList = receiptService.selectDetailNote(replaceDate(startDate), replaceDate(endDate), replaceNullString(name));
return detailReceiptListEntityList;
}
/** /**
* 生成交接单 * 生成交接单
......
...@@ -232,8 +232,8 @@ public interface ReceiptMapper { ...@@ -232,8 +232,8 @@ public interface ReceiptMapper {
public DetailReceiptListEntity selectDetailByAcceptNo(@Param("acceptNo") String acceptNo); public DetailReceiptListEntity selectDetailByAcceptNo(@Param("acceptNo") String acceptNo);
@Update("update DETAIL_RECEIPT_LIST set NOTE = #{note} WHERE ACCEPT_NO=#{acceptNo} or CARD_ID= #{acceptNo}") @Update("update DETAIL_RECEIPT_LIST set NOTE = #{note},submit_date = sysdate,submit_name = #{name} WHERE ACCEPT_NO=#{acceptNo} or CARD_ID= #{acceptNo}")
public boolean updateDetail(@Param("acceptNo")String accept,@Param("note")String note); public boolean updateDetail(@Param("acceptNo")String accept,@Param("note")String note,@Param("name")String name);
/** /**
* 更新交接单是否已打印 * 更新交接单是否已打印
...@@ -269,4 +269,13 @@ public interface ReceiptMapper { ...@@ -269,4 +269,13 @@ public interface ReceiptMapper {
"where to_char(DOWNLOAD_DATE,'yyyyMMdd') BETWEEN #{startDate} and #{endDate}") "where to_char(DOWNLOAD_DATE,'yyyyMMdd') BETWEEN #{startDate} and #{endDate}")
public List<Map<String, Object>> selectPoliceDataByDownLoadDate(@Param("startDate") String startDate,@Param("endDate") String endDate); public List<Map<String, Object>> selectPoliceDataByDownLoadDate(@Param("startDate") String startDate,@Param("endDate") String endDate);
@Select("<script> select * from DETAIL_RECEIPT_LIST " +
"where to_char(SUBMIT_DATE,'yyyyMMdd') between #{startDate} and #{endDate} " +
"<if test = 'name != null'> " +
" and SUBMIT_NAME = #{name} " +
" </if>" +
"</script>")
public List<DetailReceiptListEntity> selectDetailNote(@Param("startDate") String startDate,@Param("endDate") String endDate ,@Param("name")String name);
} }
...@@ -62,7 +62,9 @@ public interface ReceiptService { ...@@ -62,7 +62,9 @@ public interface ReceiptService {
public DetailReceiptListEntity selectDetailByAcceptNo(String acceptNo); public DetailReceiptListEntity selectDetailByAcceptNo(String acceptNo);
public boolean updateDetail(String accept,String note); public boolean updateDetail(String accept,String note,String name);
public List<DetailReceiptListEntity> selectDetailNote(String startDate,String endDate,String name);
public Map<String, Object> selectReceiptList(List<Integer> stringList,long typeCode); public Map<String, Object> selectReceiptList(List<Integer> stringList,long typeCode);
......
...@@ -143,9 +143,9 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -143,9 +143,9 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override @Override
public boolean updateDetail(String accept, String note) { public boolean updateDetail(String accept,String note,String name) {
return receiptMapper.updateDetail(accept,note); return receiptMapper.updateDetail(accept,note,name);
} }
@Override @Override
...@@ -341,6 +341,13 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -341,6 +341,13 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override
public List<DetailReceiptListEntity> selectDetailNote(String startDate, String endDate, String name) {
List<DetailReceiptListEntity> detailReceiptListEntityList = receiptMapper.selectDetailNote(startDate, endDate, name);
return detailReceiptListEntityList;
}
private List<Map<String, Object>> formateMap(List<Map<String, Object>> maplist) { private List<Map<String, Object>> formateMap(List<Map<String, Object>> maplist) {
Map<String, Object> typeMap = new LinkedHashMap<>(); Map<String, Object> typeMap = new LinkedHashMap<>();
for (Map o : maplist) { for (Map o : maplist) {
......
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