Commit 4827033b authored by Administrator's avatar Administrator

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

parents 76d5b2af d8c9b3f4
package com.yxproject.start.api; package com.yxproject.start.api;
import com.yxproject.start.entity.DeliveredFailedInfoEntity; import com.yxproject.start.entity.*;
import com.yxproject.start.entity.DeliveredImportDicEntity;
import com.yxproject.start.entity.DeliveredInfoEntity;
import com.yxproject.start.service.DeliveredService; import com.yxproject.start.service.DeliveredService;
import com.yxproject.start.service.DetailReceiptListService;
import com.yxproject.start.service.ReceiptService;
import com.yxproject.start.utils.ReadExcel; import com.yxproject.start.utils.ReadExcel;
import com.yxproject.start.utils.YXJSONResponse; import com.yxproject.start.utils.YXJSONResponse;
import net.sf.json.JSONArray; import net.sf.json.JSONArray;
...@@ -43,6 +43,11 @@ public class DeliveredApi { ...@@ -43,6 +43,11 @@ public class DeliveredApi {
@Autowired @Autowired
private DeliveredService deliveredService; private DeliveredService deliveredService;
@Autowired
private DetailReceiptListService detailReceiptListService;
@Autowired
private ReceiptService receiptService;
/** /**
* 导入妥投信息表 * 导入妥投信息表
...@@ -218,13 +223,30 @@ public class DeliveredApi { ...@@ -218,13 +223,30 @@ public class DeliveredApi {
*/ */
@RequestMapping("acceptDeliveredFailed") @RequestMapping("acceptDeliveredFailed")
// @RequiresPermissions("userInfo.add")//权限管理; // @RequiresPermissions("userInfo.add")//权限管理;
@Transactional(rollbackFor = Exception.class)
public boolean acceptDeliveredFailed(@RequestBody String json) { public boolean acceptDeliveredFailed(@RequestBody String json) {
JSONObject jsonObject = JSONObject.fromObject(json); JSONObject jsonObject = JSONObject.fromObject(json);
JSONArray jsonArray = (JSONArray) jsonObject.get("cardIdList"); JSONArray jsonArray = (JSONArray) jsonObject.get("cardIdList");
String name = jsonObject.getString("name")+"";
List<String> list = (List<String>) jsonArray; List<String> list = (List<String>) jsonArray;
for (String cardId:list){ for (String cardId:list){
//todo 确认接收妥投失败证件 //todo 确认接收妥投失败证件
//查询出对应详单信息
List<DetailReceiptListEntity> detailReceiptListEntityList = detailReceiptListService.selectDetailReceiptListEntityByCardId(cardId);
if (detailReceiptListEntityList.size()>0){
//生成新的交接单信息
ReceiptListEntity receiptListEntity = new ReceiptListEntity();
DetailReceiptListEntity detailReceiptListEntity = detailReceiptListEntityList.get(0);
receiptListEntity.setPoliceCode(detailReceiptListEntity.getUploadNo().substring(0,9));
receiptListEntity.setQrCode(detailReceiptListEntity.getAcceptNo());
receiptListEntity.setFinishCount((long)1);
receiptListEntity.setState((long)1);
receiptListEntity.setCheckName(name);
receiptListEntity.setCardTypeId((long)0);
long id = receiptService.saveReceiptList(receiptListEntity);
//更改对应的详单信息
detailReceiptListService.updateDetailReceiptList(detailReceiptListEntity,id);
}
} }
return true; return true;
} }
...@@ -256,6 +278,16 @@ public class DeliveredApi { ...@@ -256,6 +278,16 @@ public class DeliveredApi {
return deliveredService.deleteDeliveredFailedById(Long.valueOf(id)); return deliveredService.deleteDeliveredFailedById(Long.valueOf(id));
} }
/**
* 查询登记妥投失败类型
* @return 返回值
*/
@RequestMapping("queryDeliveredFailedType")
// @RequiresPermissions("userInfo.add")//权限管理;
public List<DeliveredFailedReasonEntity> queryDeliveredFailedType(){
return deliveredService.selectDeliveredFailedType();
}
/** /**
......
...@@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.transaction.Transactional;
import java.io.OutputStream; import java.io.OutputStream;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
...@@ -45,6 +46,7 @@ public class PersonPostApi { ...@@ -45,6 +46,7 @@ public class PersonPostApi {
* @return * @return
*/ */
@RequestMapping("selectNote") @RequestMapping("selectNote")
@Transactional
public List<Map<String,Object>>selectNote(@RequestBody String jsonStr){ public List<Map<String,Object>>selectNote(@RequestBody String jsonStr){
List<Map<String,Object>> resultList = new ArrayList<>(); List<Map<String,Object>> resultList = new ArrayList<>();
...@@ -62,6 +64,7 @@ public class PersonPostApi { ...@@ -62,6 +64,7 @@ public class PersonPostApi {
* @return * @return
*/ */
@RequestMapping("addNote") @RequestMapping("addNote")
@Transactional
public boolean addNote(@RequestBody String jsonStr){ public boolean addNote(@RequestBody String jsonStr){
JSONArray jsonArray = JSONArray.fromObject(jsonStr); JSONArray jsonArray = JSONArray.fromObject(jsonStr);
for (int i=0;i<jsonArray.size();i++){ for (int i=0;i<jsonArray.size();i++){
...@@ -78,6 +81,7 @@ public class PersonPostApi { ...@@ -78,6 +81,7 @@ public class PersonPostApi {
* @return * @return
*/ */
@RequestMapping("findPersonalDataCount") @RequestMapping("findPersonalDataCount")
@Transactional
public int findPersonalDataCount(@RequestBody String jsonStr){ public int findPersonalDataCount(@RequestBody String jsonStr){
JSONObject jsonObject = JSONObject.fromObject(jsonStr); JSONObject jsonObject = JSONObject.fromObject(jsonStr);
String applicantName = jsonObject.getString("applicantName"); String applicantName = jsonObject.getString("applicantName");
...@@ -98,6 +102,7 @@ public class PersonPostApi { ...@@ -98,6 +102,7 @@ public class PersonPostApi {
* @return * @return
*/ */
@RequestMapping("findPersonalData") @RequestMapping("findPersonalData")
@Transactional
public List<PersonPostEntity> findPersonalData(@RequestBody String jsonStr){ public List<PersonPostEntity> findPersonalData(@RequestBody String jsonStr){
JSONObject jsonObject = JSONObject.fromObject(jsonStr); JSONObject jsonObject = JSONObject.fromObject(jsonStr);
String applicantName = jsonObject.getString("applicantName"); String applicantName = jsonObject.getString("applicantName");
......
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.DeliveredFailedReasonEntity;
import com.yxproject.start.entity.DeliveredImportDicEntity; import com.yxproject.start.entity.DeliveredImportDicEntity;
import com.yxproject.start.entity.DeliveredInfoEntity; import com.yxproject.start.entity.DeliveredInfoEntity;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
...@@ -45,4 +46,6 @@ public interface DeliveredInfoMapper { ...@@ -45,4 +46,6 @@ public interface DeliveredInfoMapper {
@Delete("delete from DELIVERED_FAILED_INFO where id = #{id}") @Delete("delete from DELIVERED_FAILED_INFO where id = #{id}")
public boolean deleteDeliveredFailedById(@Param("id")long id); public boolean deleteDeliveredFailedById(@Param("id")long id);
@Select("select * from DELIVERED_FAILED_REASON ")
public List<DeliveredFailedReasonEntity> selectDeliveredFailedType();
} }
package com.yxproject.start.mapper; package com.yxproject.start.mapper;
import com.yxproject.start.entity.DetailReceiptListEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -25,4 +28,18 @@ public interface DetailReceiptListMapper { ...@@ -25,4 +28,18 @@ public interface DetailReceiptListMapper {
"where to_char(RECEIPT_LIST.CHECK_DATE,'yyyyMMdd') =#{date}") "where to_char(RECEIPT_LIST.CHECK_DATE,'yyyyMMdd') =#{date}")
public List<Map<String,Object>> selectPostDetails(String date); public List<Map<String,Object>> selectPostDetails(String date);
/**
* 查询详单信息
* @param cardId 身份证件号码
* @return
*/
@Select("select * from DETAIL_RECEIPT_LIST where CARD_ID = #{cardId} order by id desc")
public List<DetailReceiptListEntity> selectDetailReceiptListEntityByCardId(String cardId);
/**
* 更新详单信息的交接单Id
* @return
*/
@Update("UPDATE DETAIL_RECEIPT_LIST set RECEIPT_ID = #{reciptId} where id =#{id}")
public boolean updateDetailReceiptList(@Param("id")long id, @Param("reciptId")long reciptId);
} }
...@@ -14,7 +14,7 @@ import java.util.Map; ...@@ -14,7 +14,7 @@ import java.util.Map;
@Mapper @Mapper
public interface MaterialManagementMapper { public interface MaterialManagementMapper {
@Insert("INSERT INTO PLASTIC_FILM (TOTAL_COUNT,PLASTIC_FILM_TYPE,NOTE,name)VALUES(#{totalCount},#{plasticFilmType},#{note},#{name})") @Insert("INSERT INTO PLASTIC_FILM (TOTAL_COUNT,PLASTIC_FILM_TYPE,NOTE,name)VALUES(#{totalCount},#{plasticFilmType},#{note},#{name})")
public boolean insertFilm(@Param("totalCount")String totalCount,@Param("plasticFilmType")String plasticFilmType,@Param("note")String note,@Param("name")String name); public boolean insertFilm(@Param("totalCount") String totalCount, @Param("plasticFilmType") String plasticFilmType, @Param("note") String note, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"select * from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}" + "select * from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate}" +
...@@ -25,10 +25,10 @@ public interface MaterialManagementMapper { ...@@ -25,10 +25,10 @@ public interface MaterialManagementMapper {
" and PLASTIC_FILM_TYPE =#{typeCode} " + " and PLASTIC_FILM_TYPE =#{typeCode} " +
"</if>" + "</if>" +
"</script>") "</script>")
public List<PlasticFilmEntity> selectFilm(@Param("beginDate") String beginDate,@Param("endDate")String endDate,@Param("typeCode")String typeCode,@Param("name")String name); public List<PlasticFilmEntity> selectFilm(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and PLASTIC_FILM_TYPE=1 "+ "select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and PLASTIC_FILM_TYPE=1 " +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -36,10 +36,10 @@ public interface MaterialManagementMapper { ...@@ -36,10 +36,10 @@ public interface MaterialManagementMapper {
" and PLASTIC_FILM_TYPE =#{typeCode} " + " and PLASTIC_FILM_TYPE =#{typeCode} " +
"</if>" + "</if>" +
"</script>") "</script>")
public String selectFilmCount1(@Param("beginDate") String beginDate,@Param("endDate")String endDate ,@Param("typeCode")String typeCode,@Param("name")String name); public String selectFilmCount1(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and PLASTIC_FILM_TYPE=2"+ "select sum(TOTAL_COUNT) PLASTIC_FILM_TYPE1 from plastic_film where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and PLASTIC_FILM_TYPE=2" +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -47,15 +47,15 @@ public interface MaterialManagementMapper { ...@@ -47,15 +47,15 @@ public interface MaterialManagementMapper {
" and PLASTIC_FILM_TYPE =#{typeCode} " + " and PLASTIC_FILM_TYPE =#{typeCode} " +
"</if>" + "</if>" +
"</script>") "</script>")
public String selectFilmCount2(@Param("beginDate") String beginDate,@Param("endDate")String endDate,@Param("typeCode")String typeCode,@Param("name")String name); public String selectFilmCount2(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Insert("INSERT INTO CARD_BODY (CARD_TYPE,TOTAL_COUNT,NOTE,name)VALUES(#{cardType},#{totalCount},#{note},#{name})") @Insert("INSERT INTO CARD_BODY (CARD_TYPE,TOTAL_COUNT,NOTE,name)VALUES(#{cardType},#{totalCount},#{note},#{name})")
public boolean insertCardBody(@Param("cardType")String cardType,@Param("totalCount")String totalCount,@Param("note")String note,@Param("name")String name); public boolean insertCardBody(@Param("cardType") String cardType, @Param("totalCount") String totalCount, @Param("note") String note, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"select * from CARD_BODY where to_char(SAVE_DATE,'yyyyMMdd') between #{beginDate} and #{endDate}"+ "select * from CARD_BODY where to_char(SAVE_DATE,'yyyyMMdd') between #{beginDate} and #{endDate}" +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -63,10 +63,10 @@ public interface MaterialManagementMapper { ...@@ -63,10 +63,10 @@ public interface MaterialManagementMapper {
" and card_type =#{typeCode} " + " and card_type =#{typeCode} " +
"</if>" + "</if>" +
"</script>") "</script>")
public List<CardBodyEntity> selectCardBody(@Param("beginDate")String beginDate,@Param("endDate")String endDate,@Param("typeCode")String typeCode,@Param("name")String name); public List<CardBodyEntity> selectCardBody(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"select sum(TOTAL_COUNT) cardType1 from CARD_BODY where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and CARD_TYPE=1"+ "select sum(TOTAL_COUNT) cardType1 from CARD_BODY where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and CARD_TYPE=1" +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -74,10 +74,10 @@ public interface MaterialManagementMapper { ...@@ -74,10 +74,10 @@ public interface MaterialManagementMapper {
" and card_type =#{typeCode} " + " and card_type =#{typeCode} " +
"</if>" + "</if>" +
"</script>") "</script>")
public String selectCardCount1(@Param("beginDate")String beginDate,@Param("endDate")String endDate,@Param("typeCode")String typeCode,@Param("name")String name); public String selectCardCount1(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
@Select("<script>" + @Select("<script>" +
"select sum(TOTAL_COUNT) cardType2 from CARD_BODY where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and CARD_TYPE=2"+ "select sum(TOTAL_COUNT) cardType2 from CARD_BODY where to_char(save_date,'yyyyMMdd') BETWEEN #{beginDate} and #{endDate} and CARD_TYPE=2" +
"<if test='name != null '>" + "<if test='name != null '>" +
" and name =#{name} " + " and name =#{name} " +
"</if>" + "</if>" +
...@@ -85,6 +85,6 @@ public interface MaterialManagementMapper { ...@@ -85,6 +85,6 @@ public interface MaterialManagementMapper {
" and card_type =#{typeCode} " + " and card_type =#{typeCode} " +
"</if>" + "</if>" +
"</script>") "</script>")
public String selectCardCount2(@Param("beginDate")String beginDate,@Param("endDate")String endDate,@Param("typeCode")String typeCode,@Param("name")String name); public String selectCardCount2(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("typeCode") String typeCode, @Param("name") String name);
} }
...@@ -34,7 +34,7 @@ public interface PersonPostMapper { ...@@ -34,7 +34,7 @@ public interface PersonPostMapper {
"SELECT * FROM " + "SELECT * FROM " +
"( " + "( " +
"SELECT A.*, ROWNUM RN " + "SELECT A.*, ROWNUM RN " +
" from (SELECT PERSON_POST.*" + " from (SELECT DISTINCT PERSON_POST.*" +
" FROM PERSON_POST " + " FROM PERSON_POST " +
" LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID " + " LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID " +
" left join PREPRO_PERSON on PERSON_POST.first_white = prepro_person.jmsfzslh " + " left join PREPRO_PERSON on PERSON_POST.first_white = prepro_person.jmsfzslh " +
...@@ -44,14 +44,12 @@ public interface PersonPostMapper { ...@@ -44,14 +44,12 @@ public interface PersonPostMapper {
" <when test='orderNumber!=\"\"'> and PERSON_POST.ORDER_NUMBER=${orderNumber} </when>" + " <when test='orderNumber!=\"\"'> and PERSON_POST.ORDER_NUMBER=${orderNumber} </when>" +
" <if test='state== 0 '> and PERSON_POST.print_date is null </if>" + " <if test='state== 0 '> and PERSON_POST.print_date is null </if>" +
" <if test='state== 1 '> and PERSON_POST.print_date is not null </if>" + " <if test='state== 1 '> and PERSON_POST.print_date is not null </if>" +
// " <if test='notNull== 1 '> and (PERSON_POST.ID_CARD is not null ) or (PERSON_POST.ACCEPT_THE_MATTER is not null ) or (PERSON_POST.BEGIN_USEFUL_LIFE is not null ) or (PERSON_POST.VALID_PERIOD_END is not null ) </if>" +
// " <if test='notNull== 0 '> and (PERSON_POST.ID_CARD is null) or (PERSON_POST.ACCEPT_THE_MATTER is null) or (PERSON_POST.BEGIN_USEFUL_LIFE is null) or (PERSON_POST.VALID_PERIOD_END is null) </if>" +
" <if test='notNull== 1 '> and PREPRO_PERSON.JMSFZSLH is not null </if>" + " <if test='notNull== 1 '> and PREPRO_PERSON.JMSFZSLH is not null </if>" +
" <if test='notNull== 0 '> and PREPRO_PERSON.JMSFZSLH is null </if>" + " <if test='notNull== 0 '> and PREPRO_PERSON.JMSFZSLH is null </if>" +
" <when test='latticeMouthInformation!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=${latticeMouthInformation} </when>" + " <when test='latticeMouthInformation!=\"\"'> and PERSON_POST.LATTICE_MOUTH_INFORMATION=${latticeMouthInformation} </when>" +
" <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY in ( ${getToCounty} ) </when>" + " <when test='getToCounty!=null'> and PERSON_POST.GET_TO_COUNTY in ( ${getToCounty} ) </when>" +
" <when test='uploadDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8)=${uploadDate} </when>" + " <when test='uploadDate!=\"\"'> and subStr(FILE_NAME_DIC.UPLOAD_DATE,0,8)=${uploadDate} </when>" +
") " + "order by PERSON_POST.id ) " +
"A" + "A" +
")" + ")" +
"WHERE RN BETWEEN ${pageSize} AND ${firstIndex}" + "WHERE RN BETWEEN ${pageSize} AND ${firstIndex}" +
...@@ -60,7 +58,7 @@ public interface PersonPostMapper { ...@@ -60,7 +58,7 @@ public interface PersonPostMapper {
@Select("select ID,FIRST_WHITE,APPLICANT_NAME,NOTE from person_post where ID=#{id}") @Select("select ID,FIRST_WHITE,APPLICANT_NAME,NOTE from person_post where ID=#{id}")
public Map<String,Object>selectNote(@Param("id")int id); public List<Map<String,Object>> selectNote(@Param("id")int id);
@Update("UPDATE PERSON_POST SET NOTE = #{note} where ID = #{id}") @Update("UPDATE PERSON_POST SET NOTE = #{note} where ID = #{id}")
......
...@@ -59,6 +59,19 @@ public interface ReceiptMapper { ...@@ -59,6 +59,19 @@ public interface ReceiptMapper {
@Options(useGeneratedKeys=true, keyProperty="id", keyColumn="ID") @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="ID")
public long createReceiptList(ReceiptListEntity receiptListEntity); public long createReceiptList(ReceiptListEntity receiptListEntity);
//生成交接单
@Insert("<script>" +
" INSERT INTO RECEIPT_LIST(QR_CODE,POLICE_CODE,FINISH_COUNT,STATE,CARD_TYPE_ID,CHECK_NAME,CHECK_date,RECEIPT_DATE" +
"<if test ='oldCardTypeId !=null'> " +
",OLD_CARD_TYPE_ID" +
"</if> " +
")VALUES(#{qrCode},#{policeCode},#{finishCount},#{state},#{cardTypeId},#{checkName},sysdate,sysdate" +
"<if test ='oldCardTypeId !=null'> " +
",#{oldCardTypeId}" +
"</if> " +
") </script>")
@Options(useGeneratedKeys=true, keyProperty="id", keyColumn="ID")
public long saveReceiptList(ReceiptListEntity receiptListEntity);
//根据身份证号查询交接单详单信息 //根据身份证号查询交接单详单信息
@Select("select prod_card_t.upload_no," + @Select("select prod_card_t.upload_no," +
"PROD_CARD_T.ACCEPT_NO," + "PROD_CARD_T.ACCEPT_NO," +
......
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.DeliveredFailedInfoEntity; import com.yxproject.start.entity.DeliveredFailedInfoEntity;
import com.yxproject.start.entity.DeliveredFailedReasonEntity;
import com.yxproject.start.entity.DeliveredImportDicEntity; import com.yxproject.start.entity.DeliveredImportDicEntity;
import com.yxproject.start.entity.DeliveredInfoEntity; import com.yxproject.start.entity.DeliveredInfoEntity;
...@@ -20,4 +21,5 @@ public interface DeliveredService { ...@@ -20,4 +21,5 @@ public interface DeliveredService {
public List<Map<String,Object>> selectDeliveredFailedByRegisterDate(String date); public List<Map<String,Object>> selectDeliveredFailedByRegisterDate(String date);
public boolean deleteDeliveredByFileId(long filedID); public boolean deleteDeliveredByFileId(long filedID);
public boolean deleteDeliveredFailedById(long id); public boolean deleteDeliveredFailedById(long id);
public List<DeliveredFailedReasonEntity> selectDeliveredFailedType();
} }
package com.yxproject.start.service; package com.yxproject.start.service;
import com.yxproject.start.entity.DetailReceiptListEntity;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -9,4 +11,8 @@ import java.util.Map; ...@@ -9,4 +11,8 @@ import java.util.Map;
*/ */
public interface DetailReceiptListService { public interface DetailReceiptListService {
public List<Map<String,Object>> selectPostDetails(String date); public List<Map<String,Object>> selectPostDetails(String date);
public List<DetailReceiptListEntity> selectDetailReceiptListEntityByCardId(String cardID);
public boolean updateDetailReceiptList(DetailReceiptListEntity detailReceiptListEntity,long reciptId);
} }
...@@ -78,4 +78,6 @@ public interface ReceiptService { ...@@ -78,4 +78,6 @@ public interface ReceiptService {
public List<DetailReceiptListEntity> queryReceipt( String acceptNo); public List<DetailReceiptListEntity> queryReceipt( String acceptNo);
public long saveReceiptList(ReceiptListEntity receiptListEntity);
} }
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.DeliveredFailedInfoEntity; import com.yxproject.start.entity.DeliveredFailedInfoEntity;
import com.yxproject.start.entity.DeliveredFailedReasonEntity;
import com.yxproject.start.entity.DeliveredImportDicEntity; import com.yxproject.start.entity.DeliveredImportDicEntity;
import com.yxproject.start.entity.DeliveredInfoEntity; import com.yxproject.start.entity.DeliveredInfoEntity;
import com.yxproject.start.mapper.DeliveredFailedInfoMapper; import com.yxproject.start.mapper.DeliveredFailedInfoMapper;
...@@ -79,4 +80,10 @@ public class DeliveredServiceImpl implements DeliveredService { ...@@ -79,4 +80,10 @@ public class DeliveredServiceImpl implements DeliveredService {
public boolean deleteDeliveredFailedById(long id) { public boolean deleteDeliveredFailedById(long id) {
return deliveredInfoMapper.deleteDeliveredFailedById(id); return deliveredInfoMapper.deleteDeliveredFailedById(id);
} }
@Override
public List<DeliveredFailedReasonEntity> selectDeliveredFailedType() {
return deliveredInfoMapper.selectDeliveredFailedType();
}
} }
package com.yxproject.start.service.impl; package com.yxproject.start.service.impl;
import com.yxproject.start.entity.DetailReceiptListEntity;
import com.yxproject.start.mapper.DetailReceiptListMapper; import com.yxproject.start.mapper.DetailReceiptListMapper;
import com.yxproject.start.service.DetailReceiptListService; import com.yxproject.start.service.DetailReceiptListService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -21,4 +22,14 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService { ...@@ -21,4 +22,14 @@ public class DetailReceiptListServiceImpl implements DetailReceiptListService {
public List<Map<String, Object>> selectPostDetails(String date) { public List<Map<String, Object>> selectPostDetails(String date) {
return detailReceiptListMapper.selectPostDetails(date); return detailReceiptListMapper.selectPostDetails(date);
} }
@Override
public List<DetailReceiptListEntity> selectDetailReceiptListEntityByCardId(String cardID) {
return detailReceiptListMapper.selectDetailReceiptListEntityByCardId(cardID);
}
@Override
public boolean updateDetailReceiptList(DetailReceiptListEntity detailReceiptListEntity,long reciptId) {
return detailReceiptListMapper.updateDetailReceiptList(detailReceiptListEntity.getId(),reciptId);
}
} }
...@@ -135,8 +135,8 @@ public class PersonPostServiceImpl implements PersonPostService { ...@@ -135,8 +135,8 @@ public class PersonPostServiceImpl implements PersonPostService {
@Override @Override
public Map<String, Object> selectNote(int id) { public Map<String, Object> selectNote(int id) {
Map<String, Object> resultMap = personPostMapper.selectNote(id); List<Map<String, Object>> maps = personPostMapper.selectNote(id);
return resultMap; return maps.get(0);
} }
@Override @Override
......
...@@ -261,6 +261,12 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -261,6 +261,12 @@ public class ReceiptServiceImpl implements ReceiptService {
return receiptMapper.queryReceipt(acceptNo); return receiptMapper.queryReceipt(acceptNo);
} }
@Override
public long saveReceiptList(ReceiptListEntity receiptListEntity) {
receiptMapper.saveReceiptList(receiptListEntity);
return receiptListEntity.getId();
}
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) {
......
...@@ -185,5 +185,11 @@ ...@@ -185,5 +185,11 @@
<script src="views/addTag/addTag.js"></script> <script src="views/addTag/addTag.js"></script>
<script src="views/autoCheck/autoCheck.js"></script> <script src="views/autoCheck/autoCheck.js"></script>
<script src="views/materialManagement/materialManagement.js"></script> <script src="views/materialManagement/materialManagement.js"></script>
<script src="views/queryWorkGroupReport/queryWorkGroupReport.js"></script>
<script src="views/querySortingReport/querySortingReport.js"></script>
<script src="views/queryQualityCheckReport/queryQualityCheckReport.js"></script>
<script src="views/ReadDeliveredInfo/ReadDeliveredInfo.js"></script>
<script src="views/saveDeliveredFailedInfo/saveDeliveredFailedInfo.js"></script>
<script src="views/queryDeliveredReport/queryDeliveredReport.js"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -27,7 +27,13 @@ angular.module('AvatarCheck', [ ...@@ -27,7 +27,13 @@ angular.module('AvatarCheck', [
'AvatarCheck.materialManagement', 'AvatarCheck.materialManagement',
'tm.pagination', 'tm.pagination',
'AvatarCheck.addTag', 'AvatarCheck.addTag',
'AvatarCheck.autoCheck' 'AvatarCheck.autoCheck',
'AvatarCheck.queryWorkGroupReport',
'AvatarCheck.querySortingReport',
'AvatarCheck.queryQualityCheckReport',
'AvatarCheck.ReadDeliveredInfo',
'AvatarCheck.saveDeliveredFailedInfo',
'AvatarCheck.queryDeliveredReport'
]).config(['$locationProvider', '$routeProvider', 'localStorageServiceProvider', '$qProvider',function ($locationProvider, $routeProvider, localStorageServiceProvider, $qProvider) { ]).config(['$locationProvider', '$routeProvider', 'localStorageServiceProvider', '$qProvider',function ($locationProvider, $routeProvider, localStorageServiceProvider, $qProvider) {
$locationProvider.hashPrefix('!'); $locationProvider.hashPrefix('!');
$routeProvider.otherwise({redirectTo: '/createTaskList'}); $routeProvider.otherwise({redirectTo: '/createTaskList'});
...@@ -159,6 +165,25 @@ angular.module('AvatarCheck', [ ...@@ -159,6 +165,25 @@ angular.module('AvatarCheck', [
if($location.path()=="/materialManagement"){ if($location.path()=="/materialManagement"){
$rootScope.tab = '/materialManagement'; $rootScope.tab = '/materialManagement';
} }
if($location.path()=="/queryWorkGroupReport"){
$rootScope.tab = '/queryWorkGroupReport';
}
if($location.path()=="/querySortingReport"){
$rootScope.tab = '/querySortingReport';
}
if($location.path()=="/queryQualityCheckReport"){
$rootScope.tab = '/queryQualityCheckReport';
}
if($location.path()=="/ReadDeliveredInfo"){
$rootScope.tab = '/ReadDeliveredInfo';
}
if($location.path()=="/saveDeliveredFailedInfo"){
$rootScope.tab = '/saveDeliveredFailedInfo';
}
if($location.path()=="/queryDeliveredReport"){
$rootScope.tab = '/queryDeliveredReport';
}
......
...@@ -1021,6 +1021,83 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -1021,6 +1021,83 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).then(function successCallback(response) { }).then(function successCallback(response) {
success(response.data) success(response.data)
}) })
} },
queryWorkGroupReport:function (date1,date2,success) {
$http({
method: 'GET',
url: "../ReportApi/queryWorkGroupReport" + urlTimeStamp(),
params:{
startDate: date1,
endDate: date2,
workGroup:$rootScope.loginData.workGroup
}
}).then(function successCallback(response) {
success(response.data)
})
},
querySortingReport:function (date1,date2,name,success) {
$http({
method: 'GET',
url: "../ReportApi/querySortingReport" + urlTimeStamp(),
params:{
startDate: date1,
endDate: date2,
name:name
}
}).then(function successCallback(response) {
success(response.data)
})
},
queryQualityCheckReport:function (date1,date2,success) {
$http({
method: 'GET',
url: "../ReportApi/queryQualityCheckReport" + urlTimeStamp(),
params:{
startDate: date1,
endDate: date2
}
}).then(function successCallback(response) {
success(response.data)
})
},
ReadDeliveredInfo:function(fd,importName,success){
$http({
method: 'POST',
url: "../DeliveredApi/ReadDeliveredInfo?importName="+importName,
data: fd,
headers: {'Content-Type': undefined},
transformRequest: angular.identity
}).then(function successCallback(response) {
success(response.data)
})
},
saveDeliveredFailedInfo:function (arr,success) {
var body = JSON.stringify(arr);
console.log(body)
$http({
method: 'POST',
url: "../DeliveredApi/saveDeliveredFailedInfo",
data: body,
headers: {'Content-Type': 'application/json'}
}).then(function successCallback(response) {
success(response.data)
})
},
queryDeliveredReport:function (date1,date2,success) {
$http({
method: 'GET',
url: "../DeliveredApi/queryDeliveredReport" + urlTimeStamp(),
params:{
startDate: date1,
endDate: date2,
}
}).then(function successCallback(response) {
success(response.data)
})
},
} }
}); });
\ No newline at end of file
<div class="box">
<strong class="box-header">导入妥投信息表</strong>
<div class="box-primary">
<table class="table table-bordered">
<tr>
<td>文件名称</td>
<td><input type="text" ng-model="importName"/></td>
</tr>
<tr>
<td>选择Excel文件:</td>
<td colspan="2">
<input type="file"
id="id_file_photo_for_check"
class="file"
data-show-preview="false"
data-allowed-file-extensions='["XLS","xls","XLSX","xlsx"]'
multiple/>
</td>
<td>
<div style="float: left">
<button class="btn btn-primary" ng-click="ReadDeliveredInfo()">导入</button>
</div>
</td>
</tr>
</table>
</div>
</div>
\ No newline at end of file
'use strict';
angular.module("AvatarCheck.ReadDeliveredInfo",['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider){
$routeProvider.when('/ReadDeliveredInfo', {
templateUrl: 'views/ReadDeliveredInfo/ReadDeliveredInfo.html' + urlTimeStamp(),
controller: 'readDeliveredInfoContr',
cache: false
});
}])
.controller('readDeliveredInfoContr', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
$scope.ReadDeliveredInfo = function () {
var importName = $scope.importName;
var fd = new FormData();
var files = document.querySelector('input#id_file_photo_for_check').files;
if(files.length==0){
MessageService.showAlert("请选择上传的文件...")
}else{
for(var i in files){
fd.append('file', files[i]);
}
// var getData = $scope.getPostPackage;
ngDialog.openConfirm({
template: 'dialogs/alert.html' + urlTimeStamp(),
width: 600,
cache: false,
closeByDocument:false,
controller: ['$scope', function ($scope) {
$scope.wrongMsg =-1;
$scope.msgText = "上传中,请稍等..."
console.log(fd,importName)
HttpService.ReadDeliveredInfo(fd,importName,function (data) {
console.log(data)
if(data){
$scope.closeThisDialog();
// getData();
MessageService.showAlert("上传成功")
}else{
$scope.wrongMsg = '上传失败';
}
})
}]
});
}
}
})
\ No newline at end of file
<div class="content row">
<div class="col-md-12" style="margin-top:20px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary" >
<div class="box-header">
<!--<strong ng-if="state==2">膜打印数据报表</strong>-->
<strong >妥投信息报表</strong>
<div class="box-tools pull-right">
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="startDate" id="datepicker1" readonly/> <span></span>
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="endDate" id="datepicker2" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryDeliveredReport()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div ng-if="deliveredReportList.length==0">
<h4>暂无数据</h4>
</div>
<div ng-if="deliveredReportList.length>0">
<div class="table-responsive mailbox-messages" >
<div class="mailbox-messages">
<table class="table table-hover postTable">
<thead>
<tr>
<!--<th ng-if="state==2">打印日期</th>-->
<!--<th ng-if="state==3">预定位日期</th>-->
<!--<th>邮寄证</th>-->
<th>邮寄数量</th>
<th>妥投数量</th>
<th>妥投失败数量</th>
<th>未妥投数量</th>
<th>打印时间</th>
</tr>
</thead>
<tbody ng-repeat="item in deliveredReportList">
<tr style="background-color: #eee">
<td>{{item.POST_COUNT}}</td>
<!--<td style="color: #3c8dbc">{{item.pu}}</td>-->
<td>{{item.DELIVERED_COUNT}}</td>
<td>{{item.DELIVERED_FAILED_COUNT}}</td>
<td>{{item.POST_COUNT-item.DELIVERED_COUNT-item.DELIVERED_FAILED_COUNT}}</td>
<td>{{item.PRINT_DATE}}</td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.table -->
</div>
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
</div>
\ No newline at end of file
'use strict';
angular.module("AvatarCheck.queryDeliveredReport",['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider){
$routeProvider.when('/queryDeliveredReport', {
templateUrl: 'views/queryDeliveredReport/queryDeliveredReport.html' + urlTimeStamp(),
controller: 'queryDeliveredReportContr',
cache: false
});
}])
.controller('queryDeliveredReportContr', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
//Date picker
$('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
//Date picker
$('#datepicker2').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
$scope.queryDeliveredReport=function () {
var date1 = $("#datepicker1").val();
var date2 = $("#datepicker2").val();
HttpService.queryDeliveredReport(date1,date2,function (data) {
$scope.deliveredReportList = data;
console.log($scope.deliveredReportList);
})
}
})
\ No newline at end of file
<div class="content row">
<div class="col-md-12" style="margin-top:20px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary" >
<div class="box-header">
<!--<strong ng-if="state==2">膜打印数据报表</strong>-->
<strong >质检报表</strong>
<div class="box-tools pull-right">
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="startDate" id="datepicker1" readonly/> <span></span>
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="endDate" id="datepicker2" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryQualityCheckReport()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div ng-if="qualityCheckReportList.length==0">
<h4>暂无数据</h4>
</div>
<div ng-if="qualityCheckReportList.length>0">
<div class="table-responsive mailbox-messages" >
<div class="mailbox-messages">
<table class="table table-hover postTable">
<thead>
<tr>
<!--<th ng-if="state==2">打印日期</th>-->
<!--<th ng-if="state==3">预定位日期</th>-->
<th>分局代码</th>
<th>数量</th>
<th>公安机关名称</th>
<!--<th>普通证</th>-->
<!--<th>废证</th>-->
</tr>
</thead>
<tbody ng-repeat="item in qualityCheckReportList">
<tr style="background-color: #eee">
<td>{{item.DATA_AUDITING.POLICE_SUBSTATION}}</td>
<td>{{item.sum(count)}}</td>
<td>{{item.GAJG_DM.GAJG_MC}}</td>
<!--<td style="color: #3c8dbc">{{item.pu}}</td>-->
<!--<td>{{item.POLICE_CODE}}</td>-->
<!--<td>{{item.SUM(RECEIPT_LIST:FINISH_COUNT)}}</td>-->
<!--<td>{{item.kuai}}</td>-->
<!--<td>{{item.pu}}</td>-->
<!--<td>{{item.fei}}</td>-->
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.table -->
</div>
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
</div>
\ No newline at end of file
'use strict';
angular.module("AvatarCheck.queryQualityCheckReport",['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider){
$routeProvider.when('/queryQualityCheckReport', {
templateUrl: 'views/queryQualityCheckReport/queryQualityCheckReport.html' + urlTimeStamp(),
controller: 'queryQualityCheckReportContro',
cache: false
});
}])
.controller('queryQualityCheckReportContro', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
//Date picker
$('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
//Date picker
$('#datepicker2').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
$scope.queryQualityCheckReport=function () {
var date1 = $("#datepicker1").val();
var date2 = $("#datepicker2").val();
HttpService.queryQualityCheckReport(date1,date2,function (data) {
$scope.qualityCheckReportList = data;
console.log($scope.qualityCheckReportList);
})
}
})
\ No newline at end of file
<div class="content row">
<div class="col-md-12" style="margin-top:20px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary" >
<div class="box-header">
<!--<strong ng-if="state==2">膜打印数据报表</strong>-->
<strong >分拣报表</strong>
<div class="box-tools pull-right">
分拣人员姓名:<input type="text" ng-model="name"/>
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="startDate" id="datepicker1" readonly/> <span></span>
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="endDate" id="datepicker2" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="querySortingReport()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div ng-if="sortingReportList.length==0">
<h4>暂无数据</h4>
</div>
<div ng-if="sortingReportList.length>0">
<div class="table-responsive mailbox-messages" >
<div class="mailbox-messages">
<table class="table table-hover postTable">
<thead>
<tr>
<!--<th ng-if="state==2">打印日期</th>-->
<!--<th ng-if="state==3">预定位日期</th>-->
<th>公安机关名称</th>
<th>公安机关代码</th>
<th>数量</th>
<!--<th>普通证</th>-->
<!--<th>废证</th>-->
</tr>
</thead>
<tbody ng-repeat="item in sortingReportList">
<tr style="background-color: #eee">
<td>{{item.GAJG_MC}}</td>
<td>{{item.POLICE_CODE}}</td>
<td>{{item.FINISH_COUNT}}</td>
<!--<td style="color: #3c8dbc">{{item.pu}}</td>-->
<!--<td>{{item.POLICE_CODE}}</td>-->
<!--<td>{{item.SUM(RECEIPT_LIST:FINISH_COUNT)}}</td>-->
<!--<td>{{item.kuai}}</td>-->
<!--<td>{{item.pu}}</td>-->
<!--<td>{{item.fei}}</td>-->
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.table -->
</div>
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
</div>
\ No newline at end of file
'use strict';
angular.module("AvatarCheck.querySortingReport",['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider){
$routeProvider.when('/querySortingReport', {
templateUrl: 'views/querySortingReport/querySortingReport.html' + urlTimeStamp(),
controller: 'querySortingReportContro',
cache: false
});
}])
.controller('querySortingReportContro', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
//Date picker
$('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
//Date picker
$('#datepicker2').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
$scope.querySortingReport=function () {
var date1 = $("#datepicker1").val();
var date2 = $("#datepicker2").val();
var name = $scope.name;
HttpService.querySortingReport(date1,date2,name,function (data) {
$scope.sortingReportList = data;
console.log($scope.sortingReportList);
})
}
})
\ No newline at end of file
<!--<title>Title</title>-->
<!--<div class="input-group date">-->
<!--<div class="input-group-addon">-->
<!--<i class="fa fa-calendar">开始日期</i>-->
<!--</div>-->
<!--<input type="text" class="form-control pull-right" value="{{startDate}}" id="datepicker1" readonly/>-->
<!--<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>-->
<!--<div class="input-group-addon">-->
<!--<i class="fa fa-calendar">结束日期</i>-->
<!--</div>-->
<!--<input type="text" class="form-control pull-right" value="{{endDate}}" id="datepicker2" readonly/>-->
<!--<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>-->
<!--</div>-->
<!--<button class="btn btn-primary" style="margin-right: 7px;" ng-click="queryWorkGroupReport()">查询工作组报表</button>-->
<div class="content row">
<div class="col-md-12" style="margin-top:20px;">
<div class="row">
<!-- /.col -->
<div class="col-md-12">
<div class="box box-primary" >
<div class="box-header">
<!--<strong ng-if="state==2">膜打印数据报表</strong>-->
<strong >工作组报表</strong>
<div class="box-tools pull-right">
<span>查询日期:</span><input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="startDate" id="datepicker1" readonly/> <span></span>
<input type="text" style="height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;" ng-model="endDate" id="datepicker2" readonly/>
<button type="button" class="btn btn-primary pull-right" style="height: 30px;line-height: 17px;margin-left: 10px;" ng-click="queryWorkGroupReport()">查询</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div ng-if="groupReportList.length==1">
<h4>暂无数据</h4>
</div>
<div ng-if="groupReportList.length>1">
<div class="table-responsive mailbox-messages" >
<div class="mailbox-messages">
<table class="table table-hover postTable">
<thead>
<tr>
<th ng-if="state==2">打印日期</th>
<!--<th ng-if="state==3">预定位日期</th>-->
<th>邮寄证</th>
<th>军人证</th>
<th>快证</th>
<th>普通证</th>
<th>废证</th>
</tr>
</thead>
<tbody ng-repeat="item in groupReportList">
<tr style="background-color: #eee">
<td>{{item.date}}</td>
<!--<td style="color: #3c8dbc">{{item.pu}}</td>-->
<td>{{item.you}}</td>
<td>{{item.jun}}</td>
<td>{{item.kuai}}</td>
<td>{{item.pu}}</td>
<td>{{item.fei}}</td>
</tr>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.table -->
</div>
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.box-body -->
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
</div>
'use strict';
angular.module("AvatarCheck.queryWorkGroupReport",['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider){
$routeProvider.when('/queryWorkGroupReport', {
templateUrl: 'views/queryWorkGroupReport/queryWorkGroupReport.html' + urlTimeStamp(),
controller: 'queryWorkGroupReportContro',
cache: false
});
}])
.controller('queryWorkGroupReportContro', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
//Date picker
$('#datepicker1').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
//Date picker
$('#datepicker2').datetimepicker({
minView: "month", //选择日期后,不会再跳转去选择时分秒
language: 'zh-CN',
format: 'yyyy-mm-dd',
todayBtn: 1,
autoclose: 1
});
$scope.choseDate = $filter("date")(new Date(), "yyyy-MM-dd");
//清除的代码
$(".glyphicon-remove").click(function(){
$($($(this).parent()).prev()).val("");
})
$scope.queryWorkGroupReport=function () {
var date1 = $("#datepicker1").val();
var date2 = $("#datepicker2").val();
HttpService.queryWorkGroupReport(date1,date2,function (data) {
$scope.groupReportList = data;
console.log($scope.groupReportList);
})
}
})
<style>
.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
.select2-search__field {
height:30px;
}
.ul li{
cursor: pointer;
}
.page-list .pagination {float:left;}
.page-list .pagination span {cursor: pointer;}
.page-list .pagination .separate span{cursor: default; border-top:none;border-bottom:none;}
.page-list .pagination .separate span:hover {background: none;}
.page-list .page-total {float:left; margin: 25px 20px;}
.page-list .page-total input, .page-list .page-total select{height: 26px; border: 1px solid #ddd;}
.page-list .page-total input {width: 40px; padding-left:3px;}
.page-list .page-total select {width: 50px;}
.page-list:after {
display: block;
clear: both;
content: ""
}
.page-list{
zoom: 1
}
</style>
<div class="content row">
<div class="col-md-12" style="margin-top:20px;">
<div class="box ">
<strong class="box-header">登记投递失败信息</strong>
<div class="box box-primary">
<table class="table table-bordered" style="margin-bottom: 0;">
<tr>
<td>运单号:</td>
<td><input type="text" class="form-control" ng-model="waybillNumber" placeholder="运单号"></td>
<td>登记人姓名:</td>
<td><input type="text" class="form-control" ng-model="registerName" placeholder="登记人姓名"></td>
<td>身份证号码:</td>
<td><input type="text" class="form-control" ng-model="cardId" placeholder="身份证号码"></td>
</tr>
<tr>
<td>退回原因:</td>
<td><input type="text" class="form-control" ng-model="backReason" placeholder="退回原因"></td>
<td>备注:</td>
<td><input type="text" class="form-control" ng-model="note" placeholder="备注"></td>
<td><div style="text-align: right;">
<button class="btn btn-primary" ng-click="saveDeliveredFailedInfo()">提交</button>
</div></td>
</tr>
</table>
</div>
</div>
</div>
</div>
\ No newline at end of file
'use strict';
angular.module("AvatarCheck.saveDeliveredFailedInfo",['ngRoute', 'AvatarCheck.http'])
.config(['$routeProvider', function ($routeProvider){
$routeProvider.when('/saveDeliveredFailedInfo', {
templateUrl: 'views/saveDeliveredFailedInfo/saveDeliveredFailedInfo.html' + urlTimeStamp(),
controller: 'saveDeliveredFailedInfoContr',
cache: false
});
}])
.controller('saveDeliveredFailedInfoContr', function ($scope, $rootScope, $timeout, HttpService, $filter, $interval, MessageService, ngDialog) {
$scope.saveDeliveredFailedInfo=function () {
var waybillNumber = $scope.waybillNumber;
var registerName = $scope.registerName;
var cardId = $scope.cardId;
var backReason = $scope.backReason;
var note = $scope.note;
var arr = [{"waybillNumber":waybillNumber,"registerName":registerName,"cardId":cardId,"backReason":backReason,"note":note}];
console.log(arr);
HttpService.saveDeliveredFailedInfo(arr,function (data) {
if(data==true){
confirm("提交成功");
}else{
alert("提交失败!!")
}
})
}
})
\ 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