insert into bm_project(`name`, `org_id`, company_id, `abbreviation`, `pro_type`, `status`, `voltage_level`, `power_grid`, `origin`, `lon`, `lat`, `record_id`, `start_time`, `end_time`, `contractSigningDate`, `contractPrice`, `isRegistered`, `registerAddressCode`, `isInsurance`, `payment_type`, `security_payments`, `payment_file`, tripartiteAgreementUrl, `payDate`, `labourSpecialName`, `labourSpecialPhone`, `labourSpecialIdCard`, `board_file`, `pro_leader`, `bank_account`, `special_bank_type`, `open_bank_type`, `account_name`, `pro_leader_phone`, `open_bank_number`, `bank_name`, `pay_way`, `account_balance`, `update_time`, `is_active`, `construction_contract_url`, `set_tlement_date`, `set_tlement_cycle`, `set_tlement_amount`) values (#{name}, #{orgId}, #{companyId}, #{abbreviation}, #{proType}, #{status}, #{voltageLevel}, #{powerGrid}, #{origin}, #{lon}, #{lat}, #{recordId}, #{startTime}, #{endTime}, #{contractSigningDate}, #{contractPrice}, #{isRegistered}, #{registerAddressCode}, #{isInsurance}, #{paymentType}, #{securityPayments}, #{paymentFile}, #{tripartiteAgreementUrl}, #{payDate}, #{labourSpecialName}, #{labourSpecialPhone}, #{labourSpecialIdCard}, #{boardFile}, #{proLeader}, #{bankAccount}, #{specialBankType}, #{openBankType}, #{accountName}, #{proLeaderPhone}, #{openBankNumber}, #{bankName}, #{payWay}, #{accountBalance}, now(), '1', #{constructionContractUrl}, #{setTlementDate}, #{setTlementCycle}, #{setTlementAmount}) update bm_project set ID = #{id}, org_id =#{orgId}, company_id = #{companyId}, `name` = #{name}, abbreviation = #{abbreviation}, pro_type =#{proType}, status = #{status}, voltage_level =#{voltageLevel}, power_grid =#{powerGrid}, origin =#{origin}, lon =#{lon}, lat =#{lat}, record_id =#{recordId}, start_time =#{startTime}, end_time = #{endTime}, contractSigningDate =#{contractSigningDate}, contractPrice =#{contractPrice}, isRegistered = #{isRegistered}, registerAddressCode =#{registerAddressCode}, isInsurance = #{isInsurance}, payment_type = #{paymentType}, security_payments = #{securityPayments}, payment_file = #{paymentFile}, payDate = #{payDate}, construction_contract_url = #{constructionContractUrl}, tripartiteAgreementUrl = #{tripartiteAgreementUrl}, set_tlement_date = #{setTlementDate}, set_tlement_cycle = #{setTlementCycle}, set_tlement_amount = #{setTlementAmount}, labourSpecialName = #{labourSpecialName}, labourSpecialPhone = #{labourSpecialPhone}, labourSpecialIdCard = #{labourSpecialIdCard}, board_file = #{boardFile}, project_manager = #{projectManager}, phone = #{phone}, manager_number = #{managerNumber}, approachDate = #{approachDate}, pro_leader = #{proLeader}, bank_account = #{bankAccount}, special_bank_type = #{specialBankType}, open_bank_type = #{openBankType}, account_name =#{accountName}, pro_leader_phone = #{proLeaderPhone}, open_bank_number =#{openBankNumber}, bank_name = #{bankName}, pay_way = #{payWay}, account_balance =#{accountBalance}, update_time = now() where ID = #{id} update bm_project set IS_ACTIVE = 0 where ID = #{id}; insert into bm_project (org_id,company_id,name,abbreviation,pro_type,voltage_level,power_grid,isRegistered,registerAddressCode,origin,lon,lat,status,contractSigningDate, contractPrice, start_time, end_time,pro_leader,pro_leader_phone,isInsurance,security_payments,payment_type,labourSpecialName, labourSpecialPhone, labourSpecialIdCard,payDate, project_manager,phone,manager_number,approachDate,bank_account,account_name,open_bank_type,special_bank_type, pay_way,open_bank_number,bank_name,account_balance,update_time,is_active) values (#{orgId},#{orgId},#{name},#{abbreviation},#{proType},#{voltageLevel},#{powerGrid},#{isRegistered},#{registerAddressCodeId},#{origin}, #{lon},#{lat},#{status},#{contractSigningDate},#{contractPrice},#{startTime},#{endTime},#{proLeader}, #{proLeaderPhone},#{isInsurance},#{securityPayments},#{paymentType},#{labourSpecialName},#{labourSpecialPhone},#{labourSpecialIdCard},#{payDate}, #{projectManager},#{phone},#{managerNumber},#{approachDate},#{bankAccountId},#{accountName},#{openBankType},#{specialBankType}, #{payWay},#{openBankNumber},#{bankName},#{accountBalance},now(),1) insert into bm_project_file(pro_id, file_name, file_path, file_type, accessory_type, upload_user_id, update_time, is_active) values (#{proId}, #{fileName}, #{filePath}, #{fileType}, #{accessoryType}, #{uploadUser}, #{updateTime}, '1') insert into bm_project_five_parties(pro_id,org_name,org_credit_code,project_manager,project_manager_id_card_num, project_manager_phone,project_manager_approach_date,register_address,`type`, principalName, principalNamePhone, principalNameIdCardNum, constructionStatus, legalPersonName, legalPersonIdCard, legalPersonPhone, orgType, registerCapital, registerAddressCode, postalCode, laborerPersonName, laborerPersonIdCard, laborerPersonPhone, contactPerson, contactPersonPhone, officeAddress, registDate) values ( #{params.proId},#{params.orgName},#{params.orgCreditCode},#{params.projectManager},#{params.projectManagerIdCardNum}, #{params.projectManagerPhone},#{params.approachDate},#{params.registerAddress},#{params.type}, #{params.principalName}, #{params.principalNamePhone}, #{params.principalNameIdCardNum}, #{params.constructionStatus}, #{params.legalPersonName}, #{params.legalPersonIdCard}, #{params.legalPersonPhone}, #{params.orgType}, #{params.registerCapital}, #{params.registerAddressCode}, #{params.postalCode}, #{params.laborerPersonName}, #{params.laborerPersonIdCard}, #{params.laborerPersonPhone}, #{params.contactPerson}, #{params.contactPersonPhone}, #{params.officeAddress}, #{params.registDate} ) update bm_project set status = "完工" where ID = #{id} and is_active = '1' update bm_worker_record set EXIT_DATE= #{exitDate}, EXIT_TIME = #{exitTime}, ein_status = '0' where ID_NUMBER = #{idNumber} and is_active = '1' update bm_worker_attend_history set EXIT_TIME = #{exitTime} where ID_NUMBER = #{idNumber} AND EIN_TIME = #{einTime} and project_id = #{id} and is_active = '1' update bm_project bp set bp.is_push = '0', bp.push_time = null where id = #{id} update bm_project_five_parties set is_active = '0' where pro_id = #{id} delete from bm_project_file where id = #{string}