Java 方法 addOverseasinput() 实现海外数据插入功能
@Override public boolean addOverseasinput(Overseasinput overseasinputParam) { '设置省份ID和省份简称' overseasinputParam.setPid(Integer.parseInt(overseasinputParam.getProvinceName() .split(",")[0])); overseasinputParam.setProvinceShortName(overseasinputParam.getProvinceName() .split(",")[1]); '判断是否已存在相同省份ID和时间的数据,若不存在则插入数据' if (overseasinputMapper.selectByPidAndDatetime(overseasinputParam.getPid() ,overseasinputParam.getDatetime())==null){ overseasinputMapper.insertOverseasinput(overseasinputParam); return true; } return false; }
原文地址: https://www.cveoy.top/t/topic/oN8S 著作权归作者所有。请勿转载和采集!