id,aid,name,
project_status,create_time,remark,
admin_name,staff_name,project_number,
project_year,create_year,cross_year,
duration,start_time,end_time,
create_aid,tianhe_url
delete from project_task
where id = #{id,jdbcType=BIGINT}
insert into project_task
( id,aid,name
,project_status,create_time,remark
,admin_name,staff_name,project_number
,project_year,create_year,cross_year
,duration,start_time,end_time
,create_aid,tianhe_url)
values (#{id,jdbcType=BIGINT},#{aid,jdbcType=BIGINT},#{name,jdbcType=VARCHAR}
,#{projectStatus,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{remark,jdbcType=VARCHAR}
,#{adminName,jdbcType=VARCHAR},#{staffName,jdbcType=VARCHAR},#{projectNumber,jdbcType=VARCHAR}
,#{projectYear,jdbcType=OTHER},#{createYear,jdbcType=OTHER},#{crossYear,jdbcType=INTEGER}
,#{duration,jdbcType=DOUBLE},#{startTime,jdbcType=TIMESTAMP},#{endTime,jdbcType=TIMESTAMP}
,#{createAid,jdbcType=BIGINT},#{tianheUrl,jdbcType=VARCHAR})
insert into project_task
id,
aid,
name,
project_status,
create_time,
remark,
admin_name,
staff_name,
project_number,
project_year,
create_year,
cross_year,
duration,
start_time,
end_time,
create_aid,
tianhe_url,
#{id,jdbcType=BIGINT},
#{aid,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR},
#{projectStatus,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR},
#{adminName,jdbcType=VARCHAR},
#{staffName,jdbcType=VARCHAR},
#{projectNumber,jdbcType=VARCHAR},
#{projectYear,jdbcType=OTHER},
#{createYear,jdbcType=OTHER},
#{crossYear,jdbcType=INTEGER},
#{duration,jdbcType=DOUBLE},
#{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP},
#{createAid,jdbcType=BIGINT},
#{tianheUrl,jdbcType=VARCHAR},
update project_task
aid = #{aid,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
project_status = #{projectStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
admin_name = #{adminName,jdbcType=VARCHAR},
staff_name = #{staffName,jdbcType=VARCHAR},
project_number = #{projectNumber,jdbcType=VARCHAR},
project_year = #{projectYear,jdbcType=OTHER},
create_year = #{createYear,jdbcType=OTHER},
cross_year = #{crossYear,jdbcType=INTEGER},
duration = #{duration,jdbcType=DOUBLE},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
create_aid = #{createAid,jdbcType=BIGINT},
tianhe_url = #{tianheUrl,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
update project_task
set
aid = #{aid,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
project_status = #{projectStatus,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
admin_name = #{adminName,jdbcType=VARCHAR},
staff_name = #{staffName,jdbcType=VARCHAR},
project_number = #{projectNumber,jdbcType=VARCHAR},
project_year = #{projectYear,jdbcType=OTHER},
create_year = #{createYear,jdbcType=OTHER},
cross_year = #{crossYear,jdbcType=INTEGER},
duration = #{duration,jdbcType=DOUBLE},
start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
create_aid = #{createAid,jdbcType=BIGINT},
tianhe_url = #{tianheUrl,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
update project_task
set duration=(select sum(a.duration)
from project_staff_record a
where a.pid= #{pid})
where id = #{pid}
update project_task
set admin_name = #{nickName}
where aid= #{userId}
update project_task
set project_status = 1
where id in
#{id}
update project_task
set staff_name=(select group_concat(name)name from project_staff
where pid = #{pid} group by pid)
where id= #{pid}