智慧保安后台管理-外网-验收版本
tangzy
2021-12-04 ebb5012dc221db17bfad74c3bdfd91d46aa29c03
src/main/java/org/springblade/modules/record/controller/RecordController.java
@@ -123,20 +123,20 @@
      record.setType("2");
      record.setPermitime(new Date());
      recordService.save(record);
      String offtime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getOfficetime());
      String pertime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getPermitime());
      String s = "insert into sys_record(id,enterpriseName,representative," +
         "address,business,registration,industry,type,permitime,ptype,representativecell,contacts,contactscell,perid,offices,officetime,jurisdiction,cardid,storage,overtime)" +
         "values(" + "'" + record.getId() + "'"+ "," + "'" + record.getEnterprisename() + "'" + "," +
         "'" + record.getRepresentative() + "'"+ "," + "'" +
         record.getAddress() + "'" + "," + "'" + record.getBusiness() + "'" + "," + "'" + record.getRegistration() + "'" + "," + "'" + record.getIndustry() + "'" + "," + "'" + record.getType() + "'" + "," + "'" + pertime + "'" + "," + "'" + record.getPtype() + "'" + "," +
         "'" + record.getRepresentativecell() + "'" + "," + "'" + record.getContacts() + "'" + "," + "'" + record.getContactscell() + "'" + "," +"'" + record.getPerid() + "'" + "," + "'" + record.getOffices() + "'" + "," +
         "'" + offtime + "'" + "," + "'" + record.getJurisdiction() + "'" +
         "," + "'" + record.getCardid() + "'"+
         "," + "'" + record.getStorage() + "'"+
         "," + "'" + new SimpleDateFormat("yyyy-MM-dd").format(record.getOvertime()) + "'"
         + ")";
      FtpUtil.sqlFileUpload(s);
//      String offtime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getOfficetime());
//      String pertime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getPermitime());
//      String s = "insert into sys_record(id,enterpriseName,representative," +
//         "address,business,registration,industry,type,permitime,ptype,representativecell,contacts,contactscell,perid,offices,officetime,jurisdiction,cardid,storage,overtime)" +
//         "values(" + "'" + record.getId() + "'"+ "," + "'" + record.getEnterprisename() + "'" + "," +
//         "'" + record.getRepresentative() + "'"+ "," + "'" +
//         record.getAddress() + "'" + "," + "'" + record.getBusiness() + "'" + "," + "'" + record.getRegistration() + "'" + "," + "'" + record.getIndustry() + "'" + "," + "'" + record.getType() + "'" + "," + "'" + pertime + "'" + "," + "'" + record.getPtype() + "'" + "," +
//         "'" + record.getRepresentativecell() + "'" + "," + "'" + record.getContacts() + "'" + "," + "'" + record.getContactscell() + "'" + "," +"'" + record.getPerid() + "'" + "," + "'" + record.getOffices() + "'" + "," +
//         "'" + offtime + "'" + "," + "'" + record.getJurisdiction() + "'" +
//         "," + "'" + record.getCardid() + "'"+
//         "," + "'" + record.getStorage() + "'"+
//         "," + "'" + new SimpleDateFormat("yyyy-MM-dd").format(record.getOvertime()) + "'"
//         + ")";
//      FtpUtil.sqlFileUpload(s);
      return R.success("成功");
   }