diff --git a/src/main/resources/mapper/VillageSendRecordStaticMapper.xml b/src/main/resources/mapper/VillageSendRecordStaticMapper.xml deleted file mode 100644 index fd72d36..0000000 --- a/src/main/resources/mapper/VillageSendRecordStaticMapper.xml +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - insert into village_send_static_record - ( - `village_code`, - `village_name`, - `device_code`, - `table_name`, - `table_id`, - `send_time`, - `receive_time`, - `manufactor_no`, - `receipt_id`, - `result_status`, - `result_remark`, - `c1` - ) - values - ( - #{villageCode}, - #{villageName}, - #{deviceCode}, - #{tableName}, - #{tableId}, - #{sendTime}, - #{receiveTime}, - #{manufactorNo}, - #{receiptId}, - #{resultStatus}, - #{resultRemark}, - #{c1} - ) - - - - insert into village_send_static_record - ( - `village_code`, - `village_name`, - `device_code`, - `table_name`, - `table_id`, - `send_time`, - `receive_time`, - `manufactor_no`, - `receipt_id`, - `result_status`, - `result_remark`, - `c1` - ) - values - - (#{item.villageCode}, - #{item.villageName}, - #{item.deviceCode}, - #{item.tableName}, - #{item.tableId}, - #{item.sendTime}, - #{item.receiveTime}, - #{item.manufactorNo}, - #{item.receiptId}, - #{item.resultStatus}, - #{item.resultRemark}, - #{item.c1}) - - - - - - update village_send_static_record - - `receive_time` = #{receiveTime}, - `receipt_id` = #{receiptId}, - `result_status` = #{resultStatus}, - `result_remark` = #{resultRemark}, - `c1` = #{c1}, - `c2` = #{c2}, - `isactive` = #{isactive}, - - where 1=1 - and id = #{id} - and village_code = #{villageCode} - and `table_name` = #{tableName} - and `result_remark` = #{resultRemark} - and manufactor_no = #{manufactorNo} - - - - update village_send_static_record - - `receive_time` = #{receiveTime}, - `receipt_id` = #{receiptId}, - `result_status` = #{resultStatus}, - `result_remark` = #{resultRemark}, - `c1` = #{c1}, - `c2` = #{c2}, - `isactive` = #{isactive}, - - where 1=1 - and table_id = #{tableId} - and village_code = #{villageCode} - and `table_name` = #{tableName} - and `result_status` = #{resultStatus} - and `result_remark` = #{resultRemark} - and manufactor_no = #{manufactorNo} - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper/VillageUserInfoMapper.xml b/src/main/resources/mapper/VillageUserInfoMapper.xml deleted file mode 100644 index a0ea715..0000000 --- a/src/main/resources/mapper/VillageUserInfoMapper.xml +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select - id, - village_code, - village_name, - grid_code, - grid_name, - building_code, - building_name, - unit_code, - unit_name, - home_code, - home_name, - user_name, - user_pic, - user_standard_pic, - identity_type, - idcard, - sex, - nation, - birthday, - company, - phone, - nationality, - nativeplace, - education, - house_hold_register, - house_hold_address, - area_code, - area_name, - habitation, - religious, - political_outlook, - entry_time, - marriage, - person_type, - person_category, - caring_label, - is_householder, - householder_relation, - is_vaccinate, - is_first_vaccinate, - is_second_vaccinate, - is_third_vaccinate, - isactive, - c1, - c2, - c3, - c4, - c5 - from village_user_info - - - - - - - - - - - - - insert into village_user_info - - village_code, - village_name, - grid_code, - grid_name, - building_code, - building_name, - unit_code, - unit_name, - home_code, - home_name, - user_name, - user_pic, - user_standard_pic, - identity_type, - idcard, - sex, - nation, - birthday, - company, - phone, - nationality, - nativeplace, - education, - house_hold_register, - house_hold_address, - area_code, - area_name, - habitation, - religious, - political_outlook, - entry_time, - marriage, - person_type, - person_category, - caring_label, - is_householder, - householder_relation, - is_vaccinate, - is_first_vaccinate, - is_second_vaccinate, - is_third_vaccinate, - c1, - c2, - c3, - c4, - c5, - - - #{villageCode}, - #{villageName}, - #{gridCode}, - #{gridName}, - #{buildingCode}, - #{buildingName}, - #{unitCode}, - #{unitName}, - #{homeCode}, - #{homeName}, - #{userName}, - #{userPic}, - #{userStandardPic}, - #{identityType}, - #{idcard}, - #{sex}, - #{nation}, - #{birthday}, - #{company}, - #{phone}, - #{nationality}, - #{nativeplace}, - #{education}, - #{houseHoldRegister}, - #{houseHoldAddress}, - #{areaCode}, - #{areaName}, - #{habitation}, - #{religious}, - #{politicalOutlook}, - #{entryTime}, - #{marriage}, - #{personType}, - #{personCategory}, - #{caringLabel}, - #{isHouseholder}, - #{householderRelation}, - #{isVaccinate}, - #{isFirstVaccinate}, - #{isSecondVaccinate}, - #{isThirdVaccinate}, - #{c1}, - #{c2}, - #{c3}, - #{c4}, - #{c5}, - - - - - - update village_user_info - - village_code = #{villageCode}, - village_name = #{villageName}, - grid_code = #{gridCode}, - grid_name = #{gridName}, - building_code = #{buildingCode}, - building_name = #{buildingName}, - unit_code = #{unitCode}, - unit_name = #{unitName}, - home_code = #{homeCode}, - home_name = #{homeName}, - user_name = #{userName}, - user_pic = #{userPic}, - user_standard_pic = #{userStandardPic}, - identity_type = #{identityType}, - idcard = #{idcard}, - sex = #{sex}, - nation = #{nation}, - - company = #{company}, - phone = #{phone}, - nationality = #{nationality}, - nativeplace = #{nativeplace}, - education = #{education}, - house_hold_register = #{houseHoldRegister}, - house_hold_address = #{houseHoldAddress}, - area_code = #{areaCode}, - area_name = #{areaName}, - habitation = #{habitation}, - religious = #{religious}, - political_outlook = #{politicalOutlook}, - - marriage = #{marriage}, - person_type = #{personType}, - person_category = #{personCategory}, - caring_label = #{caringLabel}, - is_householder = #{isHouseholder}, - householder_relation = #{householderRelation}, - is_vaccinate = #{isVaccinate}, - is_first_vaccinate = #{isFirstVaccinate}, - is_second_vaccinate = #{isSecondVaccinate}, - is_third_vaccinate = #{isThirdVaccinate}, - isactive = #{isactive}, - c1 = #{c1}, - c2 = #{c2}, - c3 = #{c3}, - c4 = #{c4}, - c5 = #{c5}, - - where id = #{id} - - - - - update village_user_info - - village_code = #{villageCode}, - village_name = #{villageName}, - grid_code = #{gridCode}, - grid_name = #{gridName}, - building_code = #{buildingCode}, - building_name = #{buildingName}, - unit_code = #{unitCode}, - unit_name = #{unitName}, - home_code = #{homeCode}, - home_name = #{homeName}, - user_name = #{userName}, - user_pic = #{userPic}, - user_standard_pic = #{userStandardPic}, - identity_type = #{identityType}, - idcard = #{idcard}, - sex = #{sex}, - nation = #{nation}, - birthday = #{birthday}, - company = #{company}, - phone = #{phone}, - nationality = #{nationality}, - nativeplace = #{nativeplace}, - education = #{education}, - house_hold_register = #{houseHoldRegister}, - house_hold_address = #{houseHoldAddress}, - area_code = #{areaCode}, - area_name = #{areaName}, - habitation = #{habitation}, - religious = #{religious}, - political_outlook = #{politicalOutlook}, - entry_time = #{entryTime}, - marriage = #{marriage}, - person_type = #{personType}, - person_category = #{personCategory}, - caring_label = #{caringLabel}, - is_householder = #{isHouseholder}, - householder_relation = #{householderRelation}, - is_vaccinate = #{isVaccinate}, - is_first_vaccinate = #{isFirstVaccinate}, - is_second_vaccinate = #{isSecondVaccinate}, - is_third_vaccinate = #{isThirdVaccinate}, - isactive = #{isactive}, - c1 = #{c1}, - c3 = #{c3}, - c4 = #{c4}, - c5 = #{c5}, - c2 = #{c2New}, - - where idcard = #{idcard} and c2 = #{c2} - - - - - delete from village_user_info where id = #{id} - - - - - delete from village_user_info where DATE_FORMAT(updatetime, '%Y-%m-%d') != '${updatetimeV}' - - - - delete from village_user_info where id in - - #{id} - - - - - update village_user_info - set isactive='0' - where id in (${idsIn}) - - - - update village_user_info - set isactive='0' - where village_code= #{villageCode} and idcard = #{idcard} - - - - - - - - -