Commit 6cf487fd authored by dahai's avatar dahai

修改查询打印封签信息

parent 53d63f10
...@@ -334,12 +334,12 @@ public class ReceiptApi { ...@@ -334,12 +334,12 @@ public class ReceiptApi {
/** /**
* 查询分局名称 * 查询分局名称
* *
* @param policeCode 派出所代码 * @param qrCode 派出所代码
* @return * @return
*/ */
@RequestMapping("queryPoliceName") @RequestMapping("queryPoliceName")
public List<Map<String, Object>> queryPoliceName(@RequestParam("policeCode") String policeCode) { public List<Map<String, Object>> queryPoliceName(@RequestParam("qrCode") String qrCode) {
return receiptService.queryPoliceName(policeCode); return receiptService.queryPoliceName(qrCode);
} }
/** /**
......
...@@ -178,11 +178,9 @@ public interface ReceiptMapper { ...@@ -178,11 +178,9 @@ public interface ReceiptMapper {
"WHERE ACCEPT_NO=#{groupNo}") "WHERE ACCEPT_NO=#{groupNo}")
public Map<String,Object> selectCountTimeT(@Param("groupNo") String groupNo); public Map<String,Object> selectCountTimeT(@Param("groupNo") String groupNo);
@Select("select police_name \n" + @Select("select POLICE_dic.POLICE_NAME from PROD_GROUP_RELATION_T@PRODYD_LINK \n" +
"from (select DISTINCT substr(#{policeCode},5,2)||'000' POLICE_CODE \n" + "left join POLICE_dic on POLICE_dic.POLICE_CODE = substr(PROD_GROUP_RELATION_T.UPLOAD_UNIT_NO,0,9)||'000'\n" +
" from POLICE_DIC where substr(#{policeCode},5,2) =substr(POLICE_DIC.POLICE_CODE,5,2) ) p1 \n" + "where group_no = #{policeCode} ")
"left join POLICE_DIC on substr(p1.POLICE_CODE,0,2) = substr(POLICE_DIC.POLICE_CODE,5,2) \n" +
"order by POLICE_DIC.POLICE_CODE")
public List<Map<String,Object>> queryPoliceName(@Param("policeCode") String policeCode); public List<Map<String,Object>> queryPoliceName(@Param("policeCode") String policeCode);
@Select("select \n" + @Select("select \n" +
......
...@@ -41,7 +41,7 @@ public interface ReceiptService { ...@@ -41,7 +41,7 @@ public interface ReceiptService {
// public boolean updateFinishCount(String GROUP_NO,int count); // public boolean updateFinishCount(String GROUP_NO,int count);
public List<Map<String,Object>> queryPoliceName(String policeCode); public List<Map<String,Object>> queryPoliceName(String qrCode);
//特证查询是否生成交接单 //特证查询是否生成交接单
public List<Map<String, Object>> selectCountById(String id,String beginDate,String expireDate); public List<Map<String, Object>> selectCountById(String id,String beginDate,String expireDate);
......
...@@ -231,8 +231,8 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -231,8 +231,8 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override @Override
public List<Map<String, Object>> queryPoliceName(String policeCode) { public List<Map<String, Object>> queryPoliceName(String qrCode) {
List<Map<String, Object>> mapList = receiptMapper.queryPoliceName(policeCode); List<Map<String, Object>> mapList = receiptMapper.queryPoliceName(qrCode.substring(0,8));
List<Map<String,Object>> maps = new ArrayList<>(); List<Map<String,Object>> maps = new ArrayList<>();
if (mapList.size()>0){ if (mapList.size()>0){
maps.add(mapList.get(0)); maps.add(mapList.get(0));
......
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