Commit f1d2ae06 authored by liuxinben's avatar liuxinben

从制证库生成任务单,当制证类型为0时改为8

parent 8a250a21
......@@ -79,7 +79,7 @@ public interface GroupNoMapper {
"on PROD_GROUP_RELATION_T.group_no =PROD_GROUP_T.group_no \n" +
"left join CARD_TYPE_DIC \n" +
"on decode(substr(ORIGINAL_NO,3,2),'99',6,substr(ORIGINAL_NO,21,1)) = CARD_TYPE_DIC.CARD_TYPE_ID \n" +
"where PROD_GROUP_T.group_no in (#{groupNo}) ")
"where PROD_GROUP_T.group_no in (${groupNo}) ")
public List<Map<String,Object>> selectGroupAtPRODUByGroupNo(@Param("groupNo") String groupNo);
/**
......
......@@ -733,7 +733,12 @@ public class TaskListServiceImpl implements TaskListService {
if (list.size()>0){
Map<String, Object> stringObjectMap = list.get(0);
TaskEntity taskEntity = new TaskEntity();
taskEntity.setCardType(Long.valueOf(stringObjectMap.get("CARD_TYPE_ID") + ""));
String cardType =String.valueOf(stringObjectMap.get("CARD_TYPE_ID"));
if(cardType.equals(String.valueOf(0))){
taskEntity.setCardType(Long.valueOf(8));
}else {
taskEntity.setCardType(Long.valueOf(stringObjectMap.get("CARD_TYPE_ID") + ""));
}
taskEntity.setCountyCode(stringObjectMap.get("COUNTY_CODE") + "");
taskEntity.setSubmitName(submitName);
taskEntity.setTaskStateId(Long.valueOf(process));
......
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