select tenant_id,
revision,
create_by,
create_time,
update_by,
update_time,
remark,
id,
assessment_month,
user_id,
user_name,
role_id,
role_key,
role_name,
employment_type,
assessment_team,
post,
deputy_team_leader_id,
deputy_team_leader_name,
deputy_supervisor_id,
deputy_supervisor_name,
deputy_manager_id,
deputy_manager_name,
red_line_index_trigger_count,
core_index_score,
other_index_score,
other_index_safety_score_with_soc_station_qc_deduction,
other_index_safety_score_without_soc_station_qc_deduction,
other_index_non_safety_deduction,
non_core_safety_plus_core_deduction,
soc_station_qc_involved_core_safety_deduction,
in_charge_employee_count,
deduction_average,
total_score,
reward_amount,
punishment_amount,
assessment_result,
assessment_result_remark,
application_method,
application_method_remark,
exemption,
exemption_reason_remark
from personnel_non_cadre_monthly_assessment
insert into personnel_non_cadre_monthly_assessment
tenant_id,
revision,
create_by,
create_time,
update_by,
update_time,
remark,
assessment_month,
user_id,
user_name,
role_id,
role_key,
role_name,
employment_type,
assessment_team,
post,
deputy_team_leader_id,
deputy_team_leader_name,
deputy_supervisor_id,
deputy_supervisor_name,
deputy_manager_id,
deputy_manager_name,
red_line_index_trigger_count,
core_index_score,
other_index_score,
other_index_safety_score_with_soc_station_qc_deduction,
other_index_safety_score_without_soc_station_qc_deduction,
other_index_non_safety_deduction,
non_core_safety_plus_core_deduction,
soc_station_qc_involved_core_safety_deduction,
in_charge_employee_count,
deduction_average,
total_score,
reward_amount,
punishment_amount,
assessment_result,
assessment_result_remark,
application_method,
application_method_remark,
exemption,
exemption_reason_remark,
#{tenantId},
#{revision},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{assessmentMonth},
#{userId},
#{userName},
#{roleId},
#{roleKey},
#{roleName},
#{employmentType},
#{assessmentTeam},
#{post},
#{deputyTeamLeaderId},
#{deputyTeamLeaderName},
#{deputySupervisorId},
#{deputySupervisorName},
#{deputyManagerId},
#{deputyManagerName},
#{redLineIndexTriggerCount},
#{coreIndexScore},
#{otherIndexScore},
#{otherIndexSafetyScoreWithSocStationQcDeduction},
#{otherIndexSafetyScoreWithoutSocStationQcDeduction},
#{otherIndexNonSafetyDeduction},
#{nonCoreSafetyPlusCoreDeduction},
#{socStationQcInvolvedCoreSafetyDeduction},
#{inChargeEmployeeCount},
#{deductionAverage},
#{totalScore},
#{rewardAmount},
#{punishmentAmount},
#{assessmentResult},
#{assessmentResultRemark},
#{applicationMethod},
#{applicationMethodRemark},
#{exemption},
#{exemptionReasonRemark},
update personnel_non_cadre_monthly_assessment
tenant_id = #{tenantId},
revision = #{revision},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
assessment_month = #{assessmentMonth},
user_id = #{userId},
user_name = #{userName},
role_id = #{roleId},
role_key = #{roleKey},
role_name = #{roleName},
employment_type = #{employmentType},
assessment_team = #{assessmentTeam},
post = #{post},
deputy_team_leader_id = #{deputyTeamLeaderId},
deputy_team_leader_name = #{deputyTeamLeaderName},
deputy_supervisor_id = #{deputySupervisorId},
deputy_supervisor_name = #{deputySupervisorName},
deputy_manager_id = #{deputyManagerId},
deputy_manager_name = #{deputyManagerName},
red_line_index_trigger_count = #{redLineIndexTriggerCount},
core_index_score = #{coreIndexScore},
other_index_score = #{otherIndexScore},
other_index_safety_score_with_soc_station_qc_deduction =
#{otherIndexSafetyScoreWithSocStationQcDeduction},
other_index_safety_score_without_soc_station_qc_deduction =
#{otherIndexSafetyScoreWithoutSocStationQcDeduction},
other_index_non_safety_deduction =
#{otherIndexNonSafetyDeduction},
non_core_safety_plus_core_deduction =
#{nonCoreSafetyPlusCoreDeduction},
soc_station_qc_involved_core_safety_deduction =
#{socStationQcInvolvedCoreSafetyDeduction},
in_charge_employee_count = #{inChargeEmployeeCount},
deduction_average = #{deductionAverage},
total_score = #{totalScore},
reward_amount = #{rewardAmount},
punishment_amount = #{punishmentAmount},
assessment_result = #{assessmentResult},
assessment_result_remark = #{assessmentResultRemark},
application_method = #{applicationMethod},
application_method_remark = #{applicationMethodRemark},
exemption = #{exemption},
exemption_reason_remark = #{exemptionReasonRemark},
where id = #{id}
delete
from personnel_non_cadre_monthly_assessment
where id = #{id}
delete from personnel_non_cadre_monthly_assessment where id in
#{id}