UPDATE tb_duty_person SET post = #{post},user_name = #{userName},id_number = #{idNumber},phone =
#{phone},update_time = #{updateTime}
WHERE id = #{id}
INSERT into tb_duty_person(post,user_name,id_number,phone,create_time,update_time,create_day)
VALUES(#{post},#{userName},#{idNumber},#{phone},#{createTime},#{updateTime},#{createDay})
INSERT INTO tb_scheduling_perosn (user_id,user_name,remark,user_type,scheduling_date,create_time,create_day)
VALUES (
#{userId},#{userName},#{remark},#{type},#{date},#{createTime},#{createDay}
)
INSERT INTO tb_user_banding (login_user_id,login_name,scheduling_id,scheduling_name,banding_date,create_time,create_day)
VALUES (
#{loginUserId},#{loginName},#{schedulingId},#{schedulingName},#{bandingDate},#{createTime},#{createDay}
)
INSERT into tb_duty_person(post,user_name,id_number,phone,create_time,update_time,create_day)
VALUES(#{post},#{userName},NULL,NULL,#{createTime},#{updateTime},#{createDay})
UPDATE tb_duty_person SET is_flag = '1' WHERE id = #{id}
DELETE FROM tb_scheduling_perosn WHERE scheduling_date BETWEEN #{startTime} AND #{endTime}
DELETE FROM tb_user_banding WHERE id = #{id}