Commit 6888f29d authored by dahai's avatar dahai

修改添加快证任务单

parent 046e3705
......@@ -328,12 +328,11 @@ public class TaskListApi {
}
List<TaskEntity> taskEntities = taskListService.selectTaskEntityByTaskId(groupNoEntities.get(0).getTaskId());
//添加快证任务单
TaskEntity taskEntity = new TaskEntity();
TaskEntity taskEntity = taskEntities.get(0);
taskEntity.setOldCardType(Long.valueOf(cardType));
taskEntity.setCardType((long) 1);
taskEntity.setCountyCode(countyCode);
taskEntity.setSubmitName(name);
taskEntity.setTaskStateId(taskEntities.get(0).getTaskStateId());
taskListService.saveFastTask(taskEntity);
SpecialCardEntity specialCardEntity = new SpecialCardEntity();
specialCardEntity.setSpecialType((long) 2);
......
......@@ -112,7 +112,100 @@ public interface TaskListMapper {
* @param taskEntity 任务单
* @return
*/
@Insert("insert into task (CARD_TYPE,COUNTY_CODE,SUBMIT_NAME,TASK_STATE_ID,OLD_CARD_TYPE) values(#{cardType},#{countyCode},#{submitName},#{taskStateId},#{oldCardType})")
@Insert("<script> insert into task (CARD_TYPE,COUNTY_CODE" +
"<if test='submitDate != null '>" +
" ,SUBMIT_DATE" +
"</if>" +
"<if test='submitName != null '>" +
" ,SUBMIT_NAME" +
"</if>" +
"<if test='issuedDate != null '>" +
" ,ISSUED_DATE" +
"</if>" +
"<if test='issuedName != null '>" +
" ,ISSUED_NAME" +
"</if>" +
"<if test='printOutDate != null '>" +
" ,PRINT_OUT_DATE" +
"</if>" +
"<if test='printOutName != null '>" +
" ,PRINT_OUT_NAME" +
"</if>" +
"<if test='printerId != null '>" +
" ,PRINTER_ID" +
"</if>" +
"<if test='concoraCrushDate != null '>" +
" ,CONCORA_CRUSH_DATE" +
"</if>" +
"<if test='concoraCrushName != null '>" +
" ,CONCORA_CRUSH_NAME" +
"</if>" +
"<if test='punchingDate != null '>" +
" ,PUNCHING_DATE" +
"</if>" +
"<if test='punchingName != null '>" +
" ,PUNCHING_NAME" +
"</if>" +
"<if test='sortingDate != null '>" +
" ,SORTING_DATE" +
"</if>" +
"<if test='sortingName != null '>" +
" ,SORTING_NAME" +
"</if>" +
"<if test='connectDate != null '>" +
" ,CONNECT_DATE" +
"</if>" +
"<if test='connectName != null '>" +
" ,CONNECT_NAME" +
"</if>" +
",TASK_STATE_ID,OLD_CARD_TYPE) " +
"values(#{cardType},#{countyCode}" +
"<if test='submitDate != null '>" +
" , #{submitDate}" +
"</if>" +
"<if test='submitName != null '>" +
" ,#{submitName}" +
"</if>" +
"<if test='issuedDate != null '>" +
" ,#{issuedDate}" +
"</if>" +
"<if test='issuedName != null '>" +
" ,#{issuedName}" +
"</if>" +
"<if test='printOutDate != null '>" +
" ,#{printOutDate}" +
"</if>" +
"<if test='printOutName != null '>" +
" ,#{printOutName}" +
"</if>" +
"<if test='printerId != null '>" +
" , #{printerId}" +
"</if>" +
"<if test='concoraCrushDate != null '>" +
" , #{concoraCrushDate}" +
"</if>" +
"<if test='concoraCrushName != null '>" +
" ,#{concoraCrushName}" +
"</if>" +
"<if test='punchingDate != null '>" +
" ,#{punchingDate}" +
"</if>" +
"<if test='punchingName != null '>" +
" ,#{punchingName}" +
"</if>" +
"<if test='sortingDate != null '>" +
" ,#{sortingDate}" +
"</if>" +
"<if test='sortingName != null '>" +
" , #{sortingName}" +
"</if>" +
"<if test='connectDate != null '>" +
" ,#{connectDate}" +
"</if>" +
"<if test='connectName != null '>" +
" , #{connectName}" +
"</if>" +
",#{taskStateId},#{oldCardType}) </script>")
@Options(useGeneratedKeys=true, keyProperty="taskId", keyColumn="TASK_ID")
public boolean saveFastTask(TaskEntity taskEntity);
......
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