Commit 024ad6d7 authored by dahai's avatar dahai

push

parent a7d1cf99
......@@ -222,7 +222,16 @@ public interface TaskListMapper {
* @param taskEntity 任务单
* @return
*/
@Insert("insert into task (CARD_TYPE,COUNTY_CODE,SUBMIT_NAME,TASK_STATE_ID,work_group) values(#{cardType},#{countyCode},#{submitName},#{taskStateId},#{workGroup})")
@Insert("<script> insert into task (CARD_TYPE,COUNTY_CODE,SUBMIT_NAME,TASK_STATE_ID " +
"<if test = 'workGroup != null'> " +
",work_Group" +
" </if>" +
") values(#{cardType},#{countyCode},#{submitName},#{taskStateId}" +
"<if test = 'workGroup != null'> " +
",#{workGroup}" +
" </if>" +
") " +
"</script>")
@Options(useGeneratedKeys=true, keyProperty="taskId", keyColumn="TASK_ID")
public boolean saveTask(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