Commit 4cbdf60d authored by Administrator's avatar Administrator

Merge remote-tracking branch 'origin/dev' into dev

parents 9bf5fff5 dcde5c44
package com.yxproject.start.api; package com.yxproject.start.api;
//import com.yxproject.start.service.FindCbCountByDealdateViewService; //import com.yxproject.start.service.FindCbCountByDealdateViewService;
import com.yxproject.start.service.CardBodyService; import com.yxproject.start.entity.FindStationCountByViewEntity;
import com.yxproject.start.service.FindFinancialReportByViewService; import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.service.FindStationCountService; import com.yxproject.start.service.*;
import com.yxproject.start.service.FindTaskByDealdateViewService;
import com.yxproject.start.utils.YXJSONResponse; import com.yxproject.start.utils.YXJSONResponse;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
...@@ -31,6 +30,10 @@ public class YingxinApi { ...@@ -31,6 +30,10 @@ public class YingxinApi {
private FindStationCountService findStationCountService; private FindStationCountService findStationCountService;
@Autowired @Autowired
private FindFinancialReportByViewService findFinancialReportByViewService; private FindFinancialReportByViewService findFinancialReportByViewService;
@Autowired
private AddTuiZhengService addTuiZhengService;
@Autowired
private AddRemainingCardService addRemainingCardService;
/** /**
* 查询在受理库查询任务单详情 根据处理时间查询; * 查询在受理库查询任务单详情 根据处理时间查询;
* *
...@@ -71,7 +74,7 @@ public class YingxinApi { ...@@ -71,7 +74,7 @@ public class YingxinApi {
*/ */
@RequestMapping("getStateCountInfo") @RequestMapping("getStateCountInfo")
public String getStateCountInfo(@RequestParam("submitDate") String submitDate,@RequestParam("state") String state,HttpServletResponse resp){ 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(); YXJSONResponse yxjsonResponse = new YXJSONResponse();
resp.setCharacterEncoding("UTF-8"); resp.setCharacterEncoding("UTF-8");
yxjsonResponse.outPutSuccess(list); yxjsonResponse.outPutSuccess(list);
...@@ -93,5 +96,31 @@ public class YingxinApi { ...@@ -93,5 +96,31 @@ public class YingxinApi {
return yxjsonResponse.toJSONString(); 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();
}
} }
...@@ -180,5 +180,4 @@ public class ReceiptListEntity { ...@@ -180,5 +180,4 @@ public class ReceiptListEntity {
} }
} }
...@@ -17,9 +17,12 @@ import java.util.Map; ...@@ -17,9 +17,12 @@ import java.util.Map;
@Mapper @Mapper
public interface CountyListMapper { public interface CountyListMapper {
public List<CountyEntity> findCountyList(@Param("taskListId") String taskListId,@Param("taskStateId") String taskStateId,@Param("cardType") String cardType); public List<CountyEntity> findCountyList(@Param("taskListId") String taskListId,@Param("taskStateId") String taskStateId,@Param("cardType") String cardType);
public int updateBoundCount(@Param("county_List_Id") String county_List_Id,@Param("out_Storage_Count") String out_Storage_Count,@Param("in_Storage_Count") String in_Storage_Count); public int reviseStorageCount( @Param("taskListId") String taskListId, @Param("countyCode") String countyCode,@Param("in_Storage_Count") String in_Storage_Count,@Param("out_Storage_Count") String out_Storage_Count);
public List<ReceiptListEntity> getReceiptList( @Param("startDate")String startDate , @Param("endDate") String endDate); public List<ReceiptListEntity> getReceiptList( @Param("startDate")String startDate , @Param("endDate") String endDate);
public List<CountyListEntity> findStorageCountByTaskListId(String taskListId); public List<CountyListEntity> findStorageCountByTaskListId(String taskListId);
public int totalFinshCount ();
public int totalInStorageCount ();
public int totalOutStorageCount ();
// public List<Map<String, Object>> PrintCountyListXML(); // public List<Map<String, Object>> PrintCountyListXML();
} }
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.FindStationCountByViewEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -11,5 +12,5 @@ import java.util.Map; ...@@ -11,5 +12,5 @@ import java.util.Map;
*/ */
@Mapper @Mapper
public interface FindStationCountMapper { 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 { ...@@ -15,5 +15,6 @@ public interface SpecialCardMapper {
public void updateSpecialCardEntity(SpecialCardEntity specialCardEntity); public void updateSpecialCardEntity(SpecialCardEntity specialCardEntity);
public List<SpecialCardEntity> findSpecialCardEntityByGroupNo(String groupNo); public List<SpecialCardEntity> findSpecialCardEntityByGroupNo(String groupNo);
public List <SpecialCardEntity> findSpecialCardList( String groupNo); public List <SpecialCardEntity> findSpecialCardList( String groupNo);
public List <SpecialCardEntity> addTuiZheng(String acceptNumber);
public List<SpecialCardEntity> addRemainingCard(String accept_Number);
} }
...@@ -18,9 +18,9 @@ public interface TaskMapper { ...@@ -18,9 +18,9 @@ public interface TaskMapper {
public List<TaskEntity> findTaskEntityByAcceptNo(String acceptNo); public List<TaskEntity> findTaskEntityByAcceptNo(String acceptNo);
public List<TaskEntity> findTaskEntityByState(int state); public List<TaskEntity> findTaskEntityByState(int state);
public int replaceExceptionInformation(TaskEntity taskEntity); public int replaceExceptionInformation(TaskEntity taskEntity);
public int totalNum (int i);
public List<TypeListEntity> findTypeListByTaskStateId(String taskStateId); public List<TypeListEntity> findTypeListByTaskStateId(String taskStateId);
public List <CityListEntity> findCityList(@Param("taskStateId") String taskStateId,@Param("cardType") String cardType); 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 updateOutStorageDate(String taskListId);
public int updateInStorageDate(String taskListId,String inStorageCount,String outStorageCount); public int updateInStorageDate(String taskListId);
public int updateStorageDate(String taskListId);
} }
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);
}
...@@ -9,5 +9,5 @@ import java.util.Map; ...@@ -9,5 +9,5 @@ import java.util.Map;
public interface CountyListService { public interface CountyListService {
public List<CountyListEntity> findStorageCountByTaskListId(String taskListId); public List<CountyListEntity> findStorageCountByTaskListId(String taskListId);
public int reviseBoundCount(String county_List_Id, String out_Storage_Count, String in_Storage_Count); public int reviseStorageCount(String taskListId,String countyCode, String in_Storage_Count, String out_Storage_Count);
} }
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.FindStationCountByViewEntity;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -7,5 +9,5 @@ import java.util.Map; ...@@ -7,5 +9,5 @@ import java.util.Map;
* Created by Administrator on 2018/11/29. * Created by Administrator on 2018/11/29.
*/ */
public interface FindStationCountService { public interface FindStationCountService {
public List<Map<String,Object>>getStationCountData(String submitDate,String state); public List<FindStationCountByViewEntity>getStationCountData(String submitDate, String state);
} }
...@@ -28,7 +28,7 @@ public interface TaskService { ...@@ -28,7 +28,7 @@ public interface TaskService {
public int addExceptionState(TaskEntity state); public int addExceptionState(TaskEntity state);
public int updateStorageDate(String taskListId,String inStorageCount,String outStorageCount); // public int updateStorageDate(String taskListId,String inStorageCount,String outStorageCount);
......
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;
}
}
...@@ -2,10 +2,12 @@ package com.yxproject.start.service.impl; ...@@ -2,10 +2,12 @@ package com.yxproject.start.service.impl;
import com.yxproject.start.entity.CountyListEntity; import com.yxproject.start.entity.CountyListEntity;
import com.yxproject.start.mapper.CountyListMapper; import com.yxproject.start.mapper.CountyListMapper;
import com.yxproject.start.mapper.TaskMapper;
import com.yxproject.start.service.CountyListService; import com.yxproject.start.service.CountyListService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -18,21 +20,29 @@ import java.util.Map; ...@@ -18,21 +20,29 @@ import java.util.Map;
public class CountyListServiceImpl implements CountyListService { public class CountyListServiceImpl implements CountyListService {
@Autowired @Autowired
public CountyListMapper countyListMapper; public CountyListMapper countyListMapper;
@Autowired
public TaskMapper taskMapper;
@Override @Override
public int reviseBoundCount(String county_List_Id, String out_Storage_Count, String in_Storage_Count) { public int reviseStorageCount(String taskListId,String countyCode, String in_Storage_Count, String out_Storage_Count) {
int i= 0; int i = 0;
if(out_Storage_Count.equals(0)&&!in_Storage_Count.equals(0)){ int totalFinshCount = 0;
i=countyListMapper.updateBoundCount(county_List_Id, out_Storage_Count, in_Storage_Count); int totalInStorageCount = 0;
int totalOutStorageCount = 0;
totalFinshCount = countyListMapper.totalFinshCount();
totalInStorageCount = countyListMapper.totalInStorageCount();
totalOutStorageCount = countyListMapper.totalOutStorageCount();
i = countyListMapper.reviseStorageCount(taskListId, countyCode, in_Storage_Count, out_Storage_Count);
if(totalInStorageCount == totalFinshCount){
taskMapper.updateInStorageDate(taskListId);
} }
if(!out_Storage_Count.equals(0)&&in_Storage_Count.equals(0)){ if(totalOutStorageCount == totalFinshCount){
i=countyListMapper.updateBoundCount(county_List_Id, out_Storage_Count, in_Storage_Count); taskMapper.updateOutStorageDate(taskListId);
} }
if(!out_Storage_Count.equals(0)&&!in_Storage_Count.equals(0)){ if(totalInStorageCount == totalFinshCount && totalOutStorageCount == totalFinshCount){
i=countyListMapper.updateBoundCount(county_List_Id, out_Storage_Count, in_Storage_Count); taskMapper.updateStorageDate(taskListId);
} }
return i; return i;
} }
@Override @Override
......
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.FindStationCountByViewEntity;
import com.yxproject.start.mapper.FindStationCountMapper; import com.yxproject.start.mapper.FindStationCountMapper;
import com.yxproject.start.mapper.TaskMapper;
import com.yxproject.start.service.FindStationCountService; import com.yxproject.start.service.FindStationCountService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -15,10 +17,13 @@ import java.util.Map; ...@@ -15,10 +17,13 @@ import java.util.Map;
public class FindStationCountServiceImpl implements FindStationCountService { public class FindStationCountServiceImpl implements FindStationCountService {
@Autowired @Autowired
private FindStationCountMapper findStationCountMapper; private FindStationCountMapper findStationCountMapper;
@Autowired
private TaskMapper taskMapper;
@Override @Override
public List<Map<String,Object>>getStationCountData(String submitDate,String state) { public List<FindStationCountByViewEntity>getStationCountData(String submitDate,String state) {
List<Map<String,Object>> list=findStationCountMapper.findStationCountByDealDate(submitDate,state); List<FindStationCountByViewEntity> list = findStationCountMapper.findStationCountByDealDate(submitDate, state);
// List<Map<String, Object>> list = taskMapper.findStationCountByDealDate(submitDate, state);
return list; return list;
} }
......
...@@ -433,24 +433,24 @@ public class TaskServiceImpl implements TaskService { ...@@ -433,24 +433,24 @@ public class TaskServiceImpl implements TaskService {
return i; return i;
} }
/** // /**
* 更新出入库时间 // * 更新出入库时间
* @param // * @param
* @return // * @return
*/ // */
@Override // @Override
public int updateStorageDate(String taskListId,String inStorageCount,String outStorageCount ) { // public int updateStorageDate(String taskListId,String inStorageCount,String outStorageCount ) {
int i=0; // int j=0;
i= taskMapper.totalNum(i); // j= taskMapper.totalNum(j);
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss"); // SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
if (inStorageCount.equals(i)){ // if (inStorageCount.equals(j)){
return taskMapper.updateInStorageDate(taskListId,inStorageCount,outStorageCount); // taskMapper.updateInStorageDate(taskListId,inStorageCount,outStorageCount);
} // }
if(outStorageCount.equals(i)){ // if(outStorageCount.equals(j)){
return taskMapper.updateOutStorageDate(taskListId,inStorageCount,outStorageCount); // taskMapper.updateOutStorageDate(taskListId,inStorageCount,outStorageCount);
} // }
return 0; // return 0;
} // }
/** /**
......
...@@ -21,15 +21,11 @@ ...@@ -21,15 +21,11 @@
WHERE TASK.TASK_ID=#{taskListId} AND TASK.CARD_TYPE=#{cardType} AND TASK.TASK_STATE_ID=#{taskStateId} WHERE TASK.TASK_ID=#{taskListId} AND TASK.CARD_TYPE=#{cardType} AND TASK.TASK_STATE_ID=#{taskStateId}
</select> </select>
<update id="updateBoundCount" parameterType="String" >
update COUNTY_LIST SET OUT_STORAGE_COUNT =#{out_Storage_Count},IN_STORAGE_COUNT =#{in_Storage_Count} where COUNTY_LIST_ID =#{county_List_Id}
</update>
<select id="getReceiptList" resultType="com.yxproject.start.entity.ReceiptListEntity" parameterType="String"> <select id="getReceiptList" resultType="com.yxproject.start.entity.ReceiptListEntity" parameterType="String">
WITH WITH
t_county t_county
AS( AS(
SELECT COUNTYNAME,CARD_TYPE_DIC.CARD_TYPE,SUM(COUNTY_LIST.OUT_STORAGE_COUNT) AS TYPE_COUNT,floor(SUM(COUNTY_LIST.OUT_STORAGE_COUNT)/250)+1 AS BOX_COUNT,SAVE_DATE SELECT COUNTYNAME,CARD_TYPE_DIC.CARD_TYPE,SUM(COUNTY_LIST.OUT_STORAGE_COUNT) AS TYPE_COUNT,floor(SUM(COUNTY_LIST.OUT_STORAGE_COUNT)/250)+1 AS boxCount,SAVE_DATE
FROM (SELECT CARD_TYPE_ID,CARD_TYPE FROM CARD_TYPE_DIC GROUP BY CARD_TYPE_ID,CARD_TYPE ) CARD_TYPE_DIC FROM (SELECT CARD_TYPE_ID,CARD_TYPE FROM CARD_TYPE_DIC GROUP BY CARD_TYPE_ID,CARD_TYPE ) CARD_TYPE_DIC
LEFT JOIN (SELECT TASK_ID,CARD_TYPE FROM TASK GROUP BY TASK_ID,CARD_TYPE) TASK ON CARD_TYPE_DIC.CARD_TYPE_ID = TASK.CARD_TYPE LEFT JOIN (SELECT TASK_ID,CARD_TYPE FROM TASK GROUP BY TASK_ID,CARD_TYPE) TASK ON CARD_TYPE_DIC.CARD_TYPE_ID = TASK.CARD_TYPE
LEFT JOIN (SELECT COUNTY_CODE,TASK_ID,OUT_STORAGE_COUNT,SAVE_DATE FROM COUNTY_LIST GROUP BY COUNTY_CODE,TASK_ID,OUT_STORAGE_COUNT,SAVE_DATE) COUNTY_LIST ON COUNTY_LIST.TASK_ID = TASK.TASK_ID LEFT JOIN (SELECT COUNTY_CODE,TASK_ID,OUT_STORAGE_COUNT,SAVE_DATE FROM COUNTY_LIST GROUP BY COUNTY_CODE,TASK_ID,OUT_STORAGE_COUNT,SAVE_DATE) COUNTY_LIST ON COUNTY_LIST.TASK_ID = TASK.TASK_ID
...@@ -38,7 +34,7 @@ ...@@ -38,7 +34,7 @@
), ),
t_total_count t_total_count
AS( AS(
SELECT * FROM (SELECT COUNTYNAME,CARD_TYPE,TYPE_COUNT,BOX_COUNT,SAVE_DATE FROM t_county) PIVOT(SUM(TYPE_COUNT) FOR CARD_TYPE IN ('普通证' AS PTZ,'快证' AS KZ,'省内异地快速通道邮' AS YDKSY,'省内异地快速通道 SELECT * FROM (SELECT COUNTYNAME,CARD_TYPE,TYPE_COUNT,boxCount,SAVE_DATE FROM t_county) PIVOT(SUM(TYPE_COUNT) FOR CARD_TYPE IN ('普通证' AS PTZ,'快证' AS KZ,'省内异地快速通道邮' AS YDKSY,'省内异地快速通道
普' AS YDKSP,'省内异地邮' AS YDY,'省内异地普' AS YDP,'军人证' AS JRZ,'快速通道普' AS KSP,'快速通道邮' AS KSY,'邮寄证' AS YJZ)) 普' AS YDKSP,'省内异地邮' AS YDY,'省内异地普' AS YDP,'军人证' AS JRZ,'快速通道普' AS KSP,'快速通道邮' AS KSY,'邮寄证' AS YJZ))
), ),
county_xiaoji county_xiaoji
...@@ -46,18 +42,18 @@ ...@@ -46,18 +42,18 @@
SELECT COUNTYNAME,SUM(TYPE_COUNT) AS XIAOJI FROM t_county GROUP BY COUNTYNAME SELECT COUNTYNAME,SUM(TYPE_COUNT) AS XIAOJI FROM t_county GROUP BY COUNTYNAME
) )
SELECT DECODE(GROUPING(t_total_count.COUNTYNAME),1,'总计',t_total_count.COUNTYNAME)COUNTYNAME, SELECT DECODE(GROUPING(t_total_count.COUNTYNAME),1,'总计',t_total_count.COUNTYNAME)COUNTYNAME,
SUM(PTZ)PTZ, nvl(SUM(PTZ),0)AS PTZ ,
SUM(KZ)KZ, nvl(SUM(KZ),0)AS KZ,
SUM(YDKSY)YDKSY, nvl(SUM(YDKSY),0) AS YDKSY,
SUM(YDKSP)YDKSP, nvl(SUM(YDKSP),0)AS YDKSP,
SUM(YDY)YDY, nvl(SUM(YDY),0)AS YDY,
SUM(YDP)YDP, nvl(SUM(YDP),0)AS YDP,
SUM(JRZ)JRZ, nvl(SUM(JRZ),0)AS JRZ,
SUM(KSP)KSP, nvl(SUM(KSP),0)AS KSP,
SUM(KSY)KSY, nvl(SUM(KSY),0)AS KSY,
SUM(YJZ)YJZ, nvl(SUM(YJZ),0)AS YJZ,
SUM(XIAOJI)XIAOJI, SUM(XIAOJI)XIAOJI,
SUM(BOX_COUNT)BOX_COUNT SUM(boxCount)boxCount
FROM t_total_count,county_xiaoji WHERE t_total_count.COUNTYNAME=county_xiaoji.COUNTYNAME AND substr(TO_CHAR(SAVE_DATE,'yyyyMMdd'),0,8) >= #{startDate} AND #{endDate} >= substr(TO_CHAR(SAVE_DATE,'yyyyMMdd'),0,8) FROM t_total_count,county_xiaoji WHERE t_total_count.COUNTYNAME=county_xiaoji.COUNTYNAME AND substr(TO_CHAR(SAVE_DATE,'yyyyMMdd'),0,8) >= #{startDate} AND #{endDate} >= substr(TO_CHAR(SAVE_DATE,'yyyyMMdd'),0,8)
GROUP BY ROLLUP(t_total_count.COUNTYNAME) GROUP BY ROLLUP(t_total_count.COUNTYNAME)
</select> </select>
...@@ -69,6 +65,23 @@ ...@@ -69,6 +65,23 @@
WHERE TASK_ID=#{task_Id} WHERE TASK_ID=#{task_Id}
</select> </select>
<insert id="reviseStorageCount" parameterType="String" >
INSERT INTO COUNTY_LIST (TASK_ID,COUNTY_CODE,IN_STORAGE_COUNT,OUT_STORAGE_COUNT) VALUES ( #{taskListId},#{countyCode},#{in_Storage_Count},#{out_Storage_Count} )
</insert>
<select id="totalFinshCount" resultType="Integer">
select nvl(SUM(FINISH_COUNT),0) FROM COUNTY_LIST
</select>
<select id="totalInStorageCount" resultType="Integer">
select nvl(SUM(IN_STORAGE_COUNT),0) FROM COUNTY_LIST
</select>
<select id="totalOutStorageCount" resultType="Integer">
select nvl(SUM(OUT_STORAGE_COUNT),0) FROM COUNTY_LIST
</select>
<!--<select id="PrintCountyListXML" resultType="com.yxproject.start.entity.CountyListEntity" parameterType="String">--> <!--<select id="PrintCountyListXML" resultType="com.yxproject.start.entity.CountyListEntity" parameterType="String">-->
<!--SELECT * FROM COUNTY_LIST--> <!--SELECT * FROM COUNTY_LIST-->
<!--</select>--> <!--</select>-->
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yxproject.start.mapper.FindStationCountMapper"> <mapper namespace="com.yxproject.start.mapper.FindStationCountMapper">
<resultMap id="FindStationCountMapper" type="com.yxproject.start.entity.FindStationCountByViewEntity"> <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="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="XIEZAIDAYIN" property="xiezaidayin" jdbcType="NUMERIC"/>
<result column="CHEJIANYUDINGWEI" property="chejianyudingwei" jdbcType="NUMERIC"/> <result column="CHEJIANYUDINGWEI" property="chejianyudingwei" jdbcType="NUMERIC"/>
<result column="CHEJIANZHUANCHU" property="chejianzhuanchu" jdbcType="NUMERIC"/> <result column="CHEJIANZHUANCHU" property="chejianzhuanchu" jdbcType="NUMERIC"/>
...@@ -15,8 +15,9 @@ ...@@ -15,8 +15,9 @@
<result column="APPLY_COUNT" property="applyCount" jdbcType="NUMERIC"/> <result column="APPLY_COUNT" property="applyCount" jdbcType="NUMERIC"/>
</resultMap> </resultMap>
<select id="findStationCountByDealDate" resultType="java.util.HashMap" parameterType="String"> <select id="findStationCountByDealDate" resultType="com.yxproject.start.entity.FindStationCountByViewEntity"
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} 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> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -34,4 +34,11 @@ ...@@ -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 * 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>
<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> </mapper>
\ No newline at end of file
...@@ -72,16 +72,16 @@ ...@@ -72,16 +72,16 @@
update TASK set exception_Information = NULL and IS_EXCEPTION =#{is_Exception} where TASK_ID =#{task_Id} update TASK set exception_Information = NULL and IS_EXCEPTION =#{is_Exception} where TASK_ID =#{task_Id}
</update> </update>
<select id="totalNum" resultType="Integer"> <update id="updateOutStorageDate">
select nvl(SUM(VALID_COUNT),0) FROM GROUP_NO UPDATE TASK SET OUT_STORAGE_DATE = SYSDATE WHERE TASK_ID = #{taskListId}
</select> </update>
<update id="updateOutStorageDate" parameterType="String"> <update id="updateInStorageDate" >
update TASK SET OUT_STORAGE_DATE = SYSDATE where TASK_ID =#{task_Id} UPDATE TASK SET IN_STORAGE_DATE = SYSDATE WHERE TASK_ID = #{taskListId}
</update> </update>
<update id="updateInStorageDate" parameterType="String"> <update id="updateStorageDate" >
update TASK SET IN_STORAGE_DATE = SYSDATE where TASK_ID =#{task_Id} UPDATE TASK SET IN_STORAGE_DATE = SYSDATE , OUT_STORAGE_DATE = SYSDATE WHERE TASK_ID = #{taskListId}
</update> </update>
<select id="findTypeListByTaskStateId" resultType="com.yxproject.start.entity.TypeListEntity" parameterType="String"> <select id="findTypeListByTaskStateId" resultType="com.yxproject.start.entity.TypeListEntity" parameterType="String">
...@@ -99,4 +99,9 @@ ...@@ -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 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>
<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> </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