Commit f53684f7 authored by Administrator's avatar Administrator

添加了通过身份证号或受理号查找特殊证

parent aadfafdc
...@@ -501,6 +501,22 @@ public class UserApi { ...@@ -501,6 +501,22 @@ public class UserApi {
return yxjsonResponse.toJSONString(); return yxjsonResponse.toJSONString();
} }
/**
* 简易查询退证信息;
*
* @return
*/
@RequestMapping("selectProdCard")
// @RequiresPermissions("userInfo.add")//权限管理;
public String selectProdCard(@RequestParam("idNo") String idNo,@RequestParam("acceptNo") String acceptNo, HttpServletResponse resp) {
List<Map<String,Object>> taskEntity = taskService.getProdCard(idNo,acceptNo);
YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
yxjsonResponse.outPutSuccess(taskEntity);
Map map = new HashMap();
return yxjsonResponse.toJSONString();
}
/** /**
* 更新循环单 * 更新循环单
* 添加异常状态; * 添加异常状态;
......
...@@ -2,8 +2,10 @@ package com.yxproject.start.mapper; ...@@ -2,8 +2,10 @@ package com.yxproject.start.mapper;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* Created by zhangyusheng on 2018/11/7 15:06 * Created by zhangyusheng on 2018/11/7 15:06
...@@ -17,4 +19,5 @@ public interface SpecialCardMapper { ...@@ -17,4 +19,5 @@ public interface SpecialCardMapper {
public List <SpecialCardEntity> findSpecialCardList( String groupNo); public List <SpecialCardEntity> findSpecialCardList( String groupNo);
public List <SpecialCardEntity> addTuiZheng(String acceptNumber); public List <SpecialCardEntity> addTuiZheng(String acceptNumber);
public List<SpecialCardEntity> addRemainingCard(String accept_Number); public List<SpecialCardEntity> addRemainingCard(String accept_Number);
public List<Map<String,Object>> getProdCard ( @Param("idNo")String idNo, @Param("acceptNo") String acceptNo);
} }
...@@ -28,6 +28,8 @@ public interface TaskService { ...@@ -28,6 +28,8 @@ public interface TaskService {
public int addExceptionState(String taskId, String exceptionInformation); public int addExceptionState(String taskId, String exceptionInformation);
public List<Map<String,Object>> getProdCard (String idNo,String acceptNo);
// public int updateStorageDate(String taskListId,String inStorageCount,String outStorageCount); // public int updateStorageDate(String taskListId,String inStorageCount,String outStorageCount);
......
...@@ -434,25 +434,15 @@ public class TaskServiceImpl implements TaskService { ...@@ -434,25 +434,15 @@ public class TaskServiceImpl implements TaskService {
return i; return i;
} }
// /** /**
// * 更新出入库时间 * 查询废证
// * @param * @return
// * @return */
// */ @Override
// @Override public List<Map<String,Object>> getProdCard (String idNo,String acceptNo){
// public int updateStorageDate(String taskListId,String inStorageCount,String outStorageCount ) { List<Map<String,Object>> getProdCard = specialCardMapper.getProdCard(idNo,acceptNo);
// int j=0; return getProdCard;
// j= taskMapper.totalNum(j); }
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
// if (inStorageCount.equals(j)){
// taskMapper.updateInStorageDate(taskListId,inStorageCount,outStorageCount);
// }
// if(outStorageCount.equals(j)){
// taskMapper.updateOutStorageDate(taskListId,inStorageCount,outStorageCount);
// }
// return 0;
// }
/** /**
* 测试查询 * 测试查询
......
...@@ -41,4 +41,12 @@ ...@@ -41,4 +41,12 @@
<select id="addRemainingCard" resultType="com.yxproject.start.entity.SpecialCardEntity" parameterType="String"> <select id="addRemainingCard" resultType="com.yxproject.start.entity.SpecialCardEntity" parameterType="String">
INSERT INTO SPECIAL_CARD (ACCEPT_NO, TASK_ID, SPECIAL_TYPE,GROUP_NO) VALUES (#{accept_Number},(SELECT TASK_ID FROM GROUP_NO WHERE GROUP_NO.GROUP_NO=SUBSTR(#{accept_Number},1,8)),0,SUBSTR(#{accept_Number},1,8)) INSERT INTO SPECIAL_CARD (ACCEPT_NO, TASK_ID, SPECIAL_TYPE,GROUP_NO) VALUES (#{accept_Number},(SELECT TASK_ID FROM GROUP_NO WHERE GROUP_NO.GROUP_NO=SUBSTR(#{accept_Number},1,8)),0,SUBSTR(#{accept_Number},1,8))
</select> </select>
<select id="getProdCard" resultType="java.util.HashMap" parameterType="String">
SELECT NAME,ID_NO,PROD_CARD_T.ACCEPT_NO,SPECIAL_TYPE FROM (select ACCEPT_NO,NAME,ID_NO from prod_card_t@prod_link) PROD_CARD_T
LEFT JOIN (select ACCEPT_NO,SPECIAL_TYPE from SPECIAL_CARD)SPECIAL_CARD ON SPECIAL_CARD.ACCEPT_NO = PROD_CARD_T.ACCEPT_NO
WHERE PROD_CARD_T.ID_NO =#{idNo} OR PROD_CARD_T.ACCEPT_NO =#{acceptNo}
</select>
</mapper> </mapper>
\ No newline at end of file
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