Commit 629c0ccc by wuchengwu

简要案情:去除双引号与单引号

parent 67e66a45
......@@ -6,6 +6,7 @@ import com.founder.model.AutoTbStRyDto;
import com.founder.service.AutoTbXwRycjService;
import com.founder.utils.DateFormatUtils;
import com.founder.utils.EasyuiPage;
import com.founder.utils.StringUtil;
import com.founder.xzxtcxDao.XzxtCxDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -328,16 +329,36 @@ public class AutoTbXwRycjServiceImpl extends BaseService<AutoTbStRy> implements
@Override
public boolean insertRyxx(AutoTbStRy entity){
AutoTbStRy xyrC=new AutoTbStRy();
if (!StringUtils.isEmpty(entity.getJyaq())){
entity.setJyaq(entity.getJyaq().replace("\"",""));
entity.setJyaq(entity.getJyaq().replace("“",""));
entity.setJyaq(entity.getJyaq().replace("”",""));
}
if (!StringUtils.isEmpty(entity.getWffzjlms())){
entity.setWffzjlms(entity.getWffzjlms().replace("\"",""));
entity.setWffzjlms(entity.getWffzjlms().replace("“",""));
entity.setWffzjlms(entity.getWffzjlms().replace("”",""));
}
Map<String, Object> map = new HashMap<>();
map.put("entity", entity);
//boolean bool = mapper.insertRyxx_new(map);
boolean bool = mapper.insertRyxx(map);
return bool;
}
@Override
public boolean updateRyxx(AutoTbStRy entity){
if (!StringUtils.isEmpty(entity.getJyaq())){
entity.setJyaq(entity.getJyaq().replace("\"",""));
entity.setJyaq(entity.getJyaq().replace("“",""));
entity.setJyaq(entity.getJyaq().replace("”",""));
}
if (!StringUtils.isEmpty(entity.getWffzjlms())){
entity.setWffzjlms(entity.getWffzjlms().replace("\"",""));
entity.setWffzjlms(entity.getWffzjlms().replace("“",""));
entity.setWffzjlms(entity.getWffzjlms().replace("”",""));
}
Map<String, Object> map = new HashMap<>();
map.put("entity", entity);
boolean bool = mapper.updateRyxx(map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment