a.id AS "id", a.subject_code AS "subjectCode", a.subject_name AS "subjectName", a.yonyou_dept_code AS "yonyouDeptCode", a.yonyou_dept_name AS "yonyouDeptName", a.type_id AS "typeId", a.type_name AS "typeName", a.district_id AS "districtId", a.district_name AS "districtName", a.business_refund AS "businessRefund", a.create_by AS "createBy.id", a.sys_office_code AS "sysOfficeCode", a.create_date AS "createDate", a.update_by AS "updateBy.id", a.update_date AS "updateDate", a.remarks AS "remarks", a.del_flag AS "delFlag" INSERT INTO sa_finance_subject_mapping( id, subject_code, subject_name, yonyou_dept_code, yonyou_dept_name, type_id, type_name, district_id, district_name, business_refund, create_by, sys_office_code, create_date, update_by, update_date, remarks, del_flag ) VALUES ( #{id}, #{subjectCode}, #{subjectName}, #{yonyouDeptCode}, #{yonyouDeptName}, #{typeId}, #{typeName}, #{districtId}, #{districtName}, #{businessRefund}, #{createBy.id}, #{sysOfficeCode}, #{createDate}, #{updateBy.id}, #{updateDate}, #{remarks}, #{delFlag} ) UPDATE sa_finance_subject_mapping SET subject_code = #{subjectCode}, subject_name = #{subjectName}, yonyou_dept_code = #{yonyouDeptCode}, yonyou_dept_name = #{yonyouDeptName}, type_id = #{typeId}, type_name = #{typeName}, district_id = #{districtId}, district_name = #{districtName}, business_refund = #{businessRefund}, sys_office_code = #{sysOfficeCode}, update_by = #{updateBy.id}, update_date = #{updateDate}, remarks = #{remarks} WHERE id = #{id} UPDATE sa_finance_subject_mapping SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}