whycrzg
2021-02-03 f628be11a131a262855908b7815c3027d6bafb4c
src/main/java/com/fgkj/services/Batt_attentionService.java
@@ -21,7 +21,14 @@
   //添加关注
   public ServiceModel add(Batt_attention attention) {
      ServiceModel model = new ServiceModel();
      Boolean bl = mapper.add(attention)>0;
      Boolean bl = null;
      try {
         bl = mapper.add(attention)>0;
      } catch (Exception e) {
         e.printStackTrace();
         model.setMsg("添加失败!");
         return model;
      }
      if (bl) {
         model.setCode(1);
         model.setMsg("添加成功!");