Commit 3a1614ea authored by xuwang's avatar xuwang

完成添加退证及余证

parent ecddba2d
package com.yxproject.start.api;
//import com.yxproject.start.service.FindCbCountByDealdateViewService;
import com.yxproject.start.service.CardBodyService;
import com.yxproject.start.service.FindFinancialReportByViewService;
import com.yxproject.start.service.FindStationCountService;
import com.yxproject.start.service.FindTaskByDealdateViewService;
import com.yxproject.start.entity.FindStationCountByViewEntity;
import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.service.*;
import com.yxproject.start.utils.YXJSONResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -31,6 +30,10 @@ public class YingxinApi {
private FindStationCountService findStationCountService;
@Autowired
private FindFinancialReportByViewService findFinancialReportByViewService;
@Autowired
private AddTuiZhengService addTuiZhengService;
@Autowired
private AddRemainingCardService addRemainingCardService;
/**
* 查询在受理库查询任务单详情 根据处理时间查询;
*
......@@ -71,7 +74,7 @@ public class YingxinApi {
*/
@RequestMapping("getStateCountInfo")
public String getStateCountInfo(@RequestParam("submitDate") String submitDate,@RequestParam("state") String state,HttpServletResponse resp){
List<Map<String,Object>> list=findStationCountService.getStationCountData(submitDate,state);
List<FindStationCountByViewEntity> list=findStationCountService.getStationCountData(submitDate,state);
YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
yxjsonResponse.outPutSuccess(list);
......@@ -93,5 +96,31 @@ public class YingxinApi {
return yxjsonResponse.toJSONString();
}
/*
*添加退证
*
* */
@RequestMapping("addInValidCardInfo")
public String addTuiZhengInfo(@RequestParam("acceptNo")String acceptNumber,HttpServletResponse resp){
List<SpecialCardEntity> list=addTuiZhengService.getTuiZhengData(acceptNumber);
YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
yxjsonResponse.outPutSuccess(list);
Map map = new HashMap();
return yxjsonResponse.toJSONString();
}
/*
*添加余证
*
* */
@RequestMapping("addRemainingCardInfo")
public String addRemainingCardInfo(@RequestParam("acceptNo")String accept_Number,HttpServletResponse resp){
List<SpecialCardEntity> list=addRemainingCardService.getRemainingCardData(accept_Number);
YXJSONResponse yxjsonResponse =new YXJSONResponse();
resp.setCharacterEncoding("UTF-8");
yxjsonResponse.outPutSuccess(list);
Map map=new HashMap();
return yxjsonResponse.toJSONString();
}
}
package com.yxproject.start.mapper;
import com.yxproject.start.entity.FindStationCountByViewEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
......@@ -11,5 +12,5 @@ import java.util.Map;
*/
@Mapper
public interface FindStationCountMapper {
public List<Map<String,Object>>findStationCountByDealDate(@Param("submitDate") String submitDate,@Param("state") String state);
public List<FindStationCountByViewEntity> findStationCountByDealDate(@Param("submitDate") String submitDate, @Param("state") String state);
}
......@@ -15,5 +15,6 @@ public interface SpecialCardMapper {
public void updateSpecialCardEntity(SpecialCardEntity specialCardEntity);
public List<SpecialCardEntity> findSpecialCardEntityByGroupNo(String groupNo);
public List <SpecialCardEntity> findSpecialCardList( String groupNo);
public List <SpecialCardEntity> addTuiZheng(String acceptNumber);
public List<SpecialCardEntity> addRemainingCard(String accept_Number);
}
......@@ -23,4 +23,5 @@ public interface TaskMapper {
public List <CityListEntity> findCityList(@Param("taskStateId") String taskStateId,@Param("cardType") String cardType);
public int updateOutStorageDate( @Param("taskListId")String taskId, @Param("inStorageCount")String inStorageCount, @Param("outStorageCount")String outStorageCount);
public int updateInStorageDate(String taskListId,String inStorageCount,String outStorageCount);
public List<Map<String,Object>> findStationCountByDealDate(@Param("submitDate") String submitDate,@Param("state") String state);
}
package com.yxproject.start.service;
import com.yxproject.start.entity.SpecialCardEntity;
import java.util.List;
/**
* Created by Administrator on 2018/12/21.
*/
public interface AddRemainingCardService {
public List<SpecialCardEntity>getRemainingCardData(String accept_Number);
}
package com.yxproject.start.service;
import com.yxproject.start.entity.SpecialCardEntity;
import java.util.List;
/**
* Created by Administrator on 2018/12/20.
*/
public interface AddTuiZhengService {
public List<SpecialCardEntity>getTuiZhengData(String acceptNumber);
}
package com.yxproject.start.service;
import com.yxproject.start.entity.FindStationCountByViewEntity;
import java.util.List;
import java.util.Map;
......@@ -7,5 +9,5 @@ import java.util.Map;
* Created by Administrator on 2018/11/29.
*/
public interface FindStationCountService {
public List<Map<String,Object>>getStationCountData(String submitDate,String state);
public List<FindStationCountByViewEntity>getStationCountData(String submitDate, String state);
}
package com.yxproject.start.service.impl;
import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.mapper.SpecialCardMapper;
import com.yxproject.start.service.AddRemainingCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by Administrator on 2018/12/21.
*/
@Service
public class AddRemainingCardServiceImpl implements AddRemainingCardService{
@Autowired
private SpecialCardMapper specialCardMapper;
@Override
public List<SpecialCardEntity>getRemainingCardData(String accept_number){
List<SpecialCardEntity>List=specialCardMapper.addRemainingCard(accept_number);
return List;
}
}
package com.yxproject.start.service.impl;
import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.mapper.SpecialCardMapper;
import com.yxproject.start.service.AddTuiZhengService;
import org.omg.CORBA.Object;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
/**
* Created by Administrator on 2018/12/20.
*/
@Service
public class AddTuiZhengServiceImpl implements AddTuiZhengService {
@Autowired
private SpecialCardMapper specialCardMapper;
@Override
public List<SpecialCardEntity>getTuiZhengData(String acceptNumber){
List<SpecialCardEntity>List=specialCardMapper.addTuiZheng(acceptNumber);
return List;
}
}
package com.yxproject.start.service.impl;
import com.yxproject.start.entity.FindStationCountByViewEntity;
import com.yxproject.start.mapper.FindStationCountMapper;
import com.yxproject.start.mapper.TaskMapper;
import com.yxproject.start.service.FindStationCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -15,10 +17,13 @@ import java.util.Map;
public class FindStationCountServiceImpl implements FindStationCountService {
@Autowired
private FindStationCountMapper findStationCountMapper;
@Autowired
private TaskMapper taskMapper;
@Override
public List<Map<String,Object>>getStationCountData(String submitDate,String state) {
List<Map<String,Object>> list=findStationCountMapper.findStationCountByDealDate(submitDate,state);
public List<FindStationCountByViewEntity>getStationCountData(String submitDate,String state) {
List<FindStationCountByViewEntity> list = findStationCountMapper.findStationCountByDealDate(submitDate, state);
// List<Map<String, Object>> list = taskMapper.findStationCountByDealDate(submitDate, state);
return list;
}
......
......@@ -3,9 +3,9 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yxproject.start.mapper.FindStationCountMapper">
<resultMap id="FindStationCountMapper" type="com.yxproject.start.entity.FindStationCountByViewEntity">
<id column="SUBMIT_DATE" property="submit_Date" jdbcType="VARCHAR"/>
<id column="SUBMIT_DATE" property="submit_Date" jdbcType="VARCHAR"/>
<result column="SHUJUHEYAN" property="shujuheyan" jdbcType="NUMERIC"/>
<result column="DAYINFENPEI" property="dayinfenpei" jdbcType="NUMERIC"/>
<result column="DAYINFENPEI" property="dayinfenpei" jdbcType="NUMERIC"/>
<result column="XIEZAIDAYIN" property="xiezaidayin" jdbcType="NUMERIC"/>
<result column="CHEJIANYUDINGWEI" property="chejianyudingwei" jdbcType="NUMERIC"/>
<result column="CHEJIANZHUANCHU" property="chejianzhuanchu" jdbcType="NUMERIC"/>
......@@ -15,8 +15,9 @@
<result column="APPLY_COUNT" property="applyCount" jdbcType="NUMERIC"/>
</resultMap>
<select id="findStationCountByDealDate" resultType="java.util.HashMap" parameterType="String">
SELECT * FROM FIND_STATE_COUNT_VIEW WHERE FIND_STATE_COUNT_LIST.SET_SUBMITDATE_PARAM(#{submitDate})=#{submitDate} AND FIND_STATE_COUNT_LIST.SET_STATE_PARAM(#{state})=#{state}
<select id="findStationCountByDealDate" resultType="com.yxproject.start.entity.FindStationCountByViewEntity"
parameterType="String">
SELECT * FROM FIND_STATE_COUNT_VIEW WHERE FIND_STATE_COUNT_LIST.SET_SUBMITDATE_PARAM(#{submitDate})=#{submitDate} AND FIND_STATE_COUNT_LIST.SET_STATE_PARAM(#{state})=#{state}
</select>
</mapper>
\ No newline at end of file
......@@ -34,4 +34,11 @@
SELECT * FROM SPECIAL_CARD LEFT JOIN GROUP_NO ON GROUP_NO.GROUP_NO = SPECIAL_CARD.GROUP_NO WHERE GROUP_NO.GROUP_NO=#{group_No}
</select>
<select id="addTuiZheng" resultType="com.yxproject.start.entity.SpecialCardEntity" parameterType="String">
INSERT INTO SPECIAL_CARD (ACCEPT_NO, TASK_ID, SPECIAL_TYPE,GROUP_NO) VALUES (#{acceptNumber},(SELECT TASK_ID FROM GROUP_NO WHERE GROUP_NO.GROUP_NO=SUBSTR(#{acceptNumber},1,8)),2,SUBSTR(#{acceptNumber},1,8))
</select>
<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))
</select>
</mapper>
\ No newline at end of file
......@@ -99,4 +99,9 @@
GROUP BY CARD_TYPE,TASK.CITYCODE,CITYNAME,GROUP_NO,TASK.TASK_ID,OLD_CARD_TYPE,SUBMIT_DATE,ISSUED_DATE,PRINT_STATE,DOWNLOAD_DATE,PRINT_OUT_DATE,POSITION_DATE,OUT_WORKSHOP_DATE,QUALITY_PEOPLE_NAME,QUALITY_TEST_DATE,EXCEPTION_INFORMATION,OUT_STORAGE_DATE,IN_STORAGE_DATE,TASK_STATE_ID,IS_EXCEPTION,PRINTER_ID
</select>
<select id="findStationCountByDealDate" resultType="java.util.HashMap" parameterType="String">
SELECT * FROM FIND_STATE_COUNT_VIEW WHERE FIND_STATE_COUNT_LIST.SET_SUBMITDATE_PARAM(#{submitDate})=#{submitDate} AND FIND_STATE_COUNT_LIST.SET_STATE_PARAM(#{state})=#{state}
</select>
</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