Commit c32367e0 authored by dahai's avatar dahai

修改保存卡机统计数据 添加卡机类型 身份证

parent 675c4f6e
...@@ -2,7 +2,6 @@ package com.yxproject.start.api; ...@@ -2,7 +2,6 @@ package com.yxproject.start.api;
import com.yxproject.start.entity.CountyDicEntity; import com.yxproject.start.entity.CountyDicEntity;
import com.yxproject.start.service.LogService; import com.yxproject.start.service.LogService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
...@@ -36,13 +35,6 @@ public class LogApi { ...@@ -36,13 +35,6 @@ public class LogApi {
List<Map<String,Object>> result = logService.selectNewFilesLog(newFileName,cardId,replaceDate(createDate),uploadCountyCode, Long.valueOf(currPage),Long.valueOf(pageSize)); List<Map<String,Object>> result = logService.selectNewFilesLog(newFileName,cardId,replaceDate(createDate),uploadCountyCode, Long.valueOf(currPage),Long.valueOf(pageSize));
return result; return result;
} }
// @RequestMapping("selectNewFilesLog")
// public List<Map<String,Object>> selectNewFilesLog (@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate, @RequestParam("currPage")String currPage, @RequestParam("pageSize")String pageSize){
// List<Map<String,Object>> result = logService.selectNewFilesLog(newFileName,cardId,replaceDate(createDate),uploadCountyCode, Long.valueOf(currPage),Long.valueOf(pageSize));
// return result;
// }
/** /**
* 查询新包生成日志总数 * 查询新包生成日志总数
......
...@@ -39,8 +39,8 @@ public class MaterialManagementApi { ...@@ -39,8 +39,8 @@ public class MaterialManagementApi {
* @return * @return
*/ */
@RequestMapping("insertCardBody") @RequestMapping("insertCardBody")
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, @Param("cardBodyType")String cardBodyType){
boolean result = materialManagementService.insertCardBody(cardType, totalCount, note,name); boolean result = materialManagementService.insertCardBody(cardType, totalCount, note,name,cardBodyType);
return result; return result;
} }
......
...@@ -273,8 +273,9 @@ public class TaskListApi { ...@@ -273,8 +273,9 @@ public class TaskListApi {
dataAuditingEntity.setPoliceSubstation(map.get("POLICE_SUBSTATION")+""); dataAuditingEntity.setPoliceSubstation(map.get("POLICE_SUBSTATION")+"");
dataAuditingEntities.add(dataAuditingEntity); dataAuditingEntities.add(dataAuditingEntity);
} }
boolean b = taskListService.saveTask(objects, name, 0 + "");
dataAuditingService.saveDataAuditingList(dataAuditingEntities); dataAuditingService.saveDataAuditingList(dataAuditingEntities);
boolean b = taskListService.saveTask(objects, name, 0 + "");
} }
} }
Map<String, Object> map = new LinkedHashMap<>(); Map<String, Object> map = new LinkedHashMap<>();
......
...@@ -13,11 +13,12 @@ import java.util.Objects; ...@@ -13,11 +13,12 @@ import java.util.Objects;
@Table(name = "CARD_BODY", schema = "YINGXIN", catalog = "") @Table(name = "CARD_BODY", schema = "YINGXIN", catalog = "")
public class CardBodyEntity { public class CardBodyEntity {
private long cardBodyId; private long cardBodyId;
private String saveDate; private Date saveDate;
private Long cardType; private Long cardType;
private Long totalCount; private Long totalCount;
private String note; private String note;
private String name; private String name;
private Long cardBodyType;
@Id @Id
@Column(name = "CARD_BODY_ID") @Column(name = "CARD_BODY_ID")
...@@ -31,11 +32,11 @@ public class CardBodyEntity { ...@@ -31,11 +32,11 @@ public class CardBodyEntity {
@Basic @Basic
@Column(name = "SAVE_DATE") @Column(name = "SAVE_DATE")
public String getSaveDate() { public Date getSaveDate() {
return saveDate; return saveDate;
} }
public void setSaveDate(String saveDate) { public void setSaveDate(Date saveDate) {
this.saveDate = saveDate; this.saveDate = saveDate;
} }
...@@ -89,11 +90,22 @@ public class CardBodyEntity { ...@@ -89,11 +90,22 @@ public class CardBodyEntity {
Objects.equals(cardType, that.cardType) && Objects.equals(cardType, that.cardType) &&
Objects.equals(totalCount, that.totalCount) && Objects.equals(totalCount, that.totalCount) &&
Objects.equals(note, that.note) && Objects.equals(note, that.note) &&
Objects.equals(cardBodyType, that.cardBodyType) &&
Objects.equals(name, that.name); Objects.equals(name, that.name);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(cardBodyId, saveDate, cardType, totalCount, note, name); return Objects.hash(cardBodyId, saveDate, cardBodyType,cardType, totalCount, note, name);
}
@Basic
@Column(name = "CARD_BODY_TYPE")
public Long getCardBodyType() {
return cardBodyType;
}
public void setCardBodyType(Long cardBodyType) {
this.cardBodyType = cardBodyType;
} }
} }
...@@ -50,8 +50,8 @@ public interface MaterialManagementMapper { ...@@ -50,8 +50,8 @@ public interface MaterialManagementMapper {
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,CARD_BODY_TYPE)VALUES(#{cardType},#{totalCount},#{note},#{name},#{cardBodyType})")
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, @Param("cardBodyType") long cardBodyType);
@Select("<script>" + @Select("<script>" +
......
...@@ -14,7 +14,7 @@ public interface MaterialManagementService { ...@@ -14,7 +14,7 @@ public interface MaterialManagementService {
public List<PlasticFilmEntity> selectFilm(@Param("beginDate") String beginDate, @Param("endDate")String endDate,String typeCode, String name); public List<PlasticFilmEntity> selectFilm(@Param("beginDate") String beginDate, @Param("endDate")String endDate,String typeCode, String name);
public boolean insertCardBody(@Param("cardType")String cardType,@Param("totalCount")String totalCount,@Param("note")String note,String name); public boolean insertCardBody(@Param("cardType")String cardType,@Param("totalCount")String totalCount,@Param("note")String note, String name,String cardBodyType);
public List<CardBodyEntity> selectCardBody(@Param("beginDate")String beginDate, @Param("endDate")String endDate,String typeCode, String name); public List<CardBodyEntity> selectCardBody(@Param("beginDate")String beginDate, @Param("endDate")String endDate,String typeCode, String name);
......
...@@ -28,8 +28,8 @@ public class MaterialManagementServiceImpl implements MaterialManagementService ...@@ -28,8 +28,8 @@ public class MaterialManagementServiceImpl implements MaterialManagementService
} }
@Override @Override
public boolean insertCardBody( String cardType, String totalCount, String note,String name) { public boolean insertCardBody( String cardType, String totalCount, String note,String name,String cardBodyType) {
materialManagementMapper.insertCardBody(cardType,totalCount,note,name); materialManagementMapper.insertCardBody(cardType,totalCount,note,name,Long.valueOf(cardBodyType));
return true; return true;
} }
......
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