Commit a33c8021 authored by dahai's avatar dahai

添加特证详情

parent a2ca388f
package com.yxproject.start.api;
import com.yxproject.start.service.SpecialCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
/**
* @auther zhangyusheng
* 2019/3/9 18:23
*/
@RestController
@RequestMapping("SpecialCard")
public class SpecialCardApi {
@Autowired
private SpecialCardService specialCardService;
/**
* 查询特殊证件详情
* (打印转出)
* taskId 任务单ID
* name 打印转出人姓名
* process 打印转出人所在工序
* printer 打印机编号
* @return
*/
@RequestMapping("selectSpecialCard")
public List<Map> updateState2(@RequestParam("groupNo") String groupNo) {
return specialCardService.selectSpecialCardByGroupNo(groupNo);
}
}
...@@ -90,6 +90,7 @@ public class TaskListApi { ...@@ -90,6 +90,7 @@ public class TaskListApi {
/** /**
* 更改任务单状态 * 更改任务单状态
* (下发、预订位、平压、冲切、分拣)
* taskId 任务单ID * taskId 任务单ID
* name 下发人姓名 * name 下发人姓名
* process 下发人所在工序 * process 下发人所在工序
...@@ -108,6 +109,7 @@ public class TaskListApi { ...@@ -108,6 +109,7 @@ public class TaskListApi {
/** /**
* 更改任务单状态 * 更改任务单状态
* (打印转出)
* taskId 任务单ID * taskId 任务单ID
* name 打印转出人姓名 * name 打印转出人姓名
* process 打印转出人所在工序 * process 打印转出人所在工序
...@@ -130,7 +132,7 @@ public class TaskListApi { ...@@ -130,7 +132,7 @@ public class TaskListApi {
/** /**
* 查询任务单详情 * 查询任务单详情
* (受理库) * (受理库)
* *(创建)
* @param process 工序 * @param process 工序
* @param date 查询时间 * @param date 查询时间
* @param resp * @param resp
...@@ -146,7 +148,6 @@ public class TaskListApi { ...@@ -146,7 +148,6 @@ public class TaskListApi {
/** /**
* 查询组号列表详情 * 查询组号列表详情
* 受理库 * 受理库
*
* @param date 查询时间 * @param date 查询时间
* @param typeCode 制证类型 * @param typeCode 制证类型
* @param countyCode 区县代码 * @param countyCode 区县代码
......
...@@ -4,6 +4,7 @@ import com.yxproject.start.entity.SpecialCardEntity; ...@@ -4,6 +4,7 @@ import com.yxproject.start.entity.SpecialCardEntity;
import org.apache.ibatis.annotations.*; import org.apache.ibatis.annotations.*;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
...@@ -35,4 +36,16 @@ public interface SpecialCardMapper { ...@@ -35,4 +36,16 @@ public interface SpecialCardMapper {
*/ */
@Update("update SPECIAL_CARD set SPECIAL_TYPE = #{specialType} where SPECIAL_CARD_ID = #{specialCardId}") @Update("update SPECIAL_CARD set SPECIAL_TYPE = #{specialType} where SPECIAL_CARD_ID = #{specialCardId}")
public boolean updateSpecialCardSpecialType(SpecialCardEntity specialCardEntity); public boolean updateSpecialCardSpecialType(SpecialCardEntity specialCardEntity);
/**
* 查询特证信息
* @param groupNo 组号
* @return
*/
@Select("select SPECIAL_CARD.ACCEPT_NO,SPECIAL_CARD.TASK_ID,SPECIAL_CARD.GROUP_NO,SPECIAL_CARD.SPECIAL_TYPE,task.TASK_STATE_ID,TASK_STATE_DIC.TASK_STATE \n" +
"from SPECIAL_CARD \n" +
"left join task on task.TASK_ID = SPECIAL_CARD.TASK_ID\n" +
"left join TASK_STATE_DIC on TASK_STATE_DIC.TASK_STATE_ID = task.TASK_STATE_ID\n" +
"where GROUP_NO = #{groupNo}")
public List<Map> selectSpecialCardByGroupNo(String groupNo);
} }
...@@ -3,6 +3,7 @@ package com.yxproject.start.service; ...@@ -3,6 +3,7 @@ package com.yxproject.start.service;
import com.yxproject.start.entity.SpecialCardEntity; import com.yxproject.start.entity.SpecialCardEntity;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
...@@ -12,4 +13,5 @@ public interface SpecialCardService { ...@@ -12,4 +13,5 @@ public interface SpecialCardService {
public boolean saveSpecialCard(SpecialCardEntity specialCardEntity); public boolean saveSpecialCard(SpecialCardEntity specialCardEntity);
public List<SpecialCardEntity> selectSpecialCardAtSpecialCard(String acceptNo); public List<SpecialCardEntity> selectSpecialCardAtSpecialCard(String acceptNo);
public boolean updateSpecialCardSpecialType(SpecialCardEntity specialCardEntity); public boolean updateSpecialCardSpecialType(SpecialCardEntity specialCardEntity);
public List<Map> selectSpecialCardByGroupNo(String groupNo);
} }
...@@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @auther zhangyusheng * @auther zhangyusheng
...@@ -47,4 +48,15 @@ public class SpecialCardServiceImpl implements SpecialCardService { ...@@ -47,4 +48,15 @@ public class SpecialCardServiceImpl implements SpecialCardService {
public boolean updateSpecialCardSpecialType(SpecialCardEntity specialCardEntity) { public boolean updateSpecialCardSpecialType(SpecialCardEntity specialCardEntity) {
return specialCardMapper.updateSpecialCardSpecialType(specialCardEntity); return specialCardMapper.updateSpecialCardSpecialType(specialCardEntity);
} }
/**
* 查询特殊证件详情
* @param groupNo
* @return
*/
@Override
public List<Map> selectSpecialCardByGroupNo(String groupNo) {
return specialCardMapper.selectSpecialCardByGroupNo(groupNo);
}
} }
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