|
@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
import java.util.Iterator;
|
|
|
|
|
|
/***
|
|
|
* @ClassName: ZjxlBasicInfoController
|
|
@ -48,6 +49,14 @@ public class ZjxlBasicInfoController extends BaseController {
|
|
|
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
|
|
|
basicInfo.setBasicInfoCreateTime(df.format(new Date()));// new Date()为获取当前系统时间
|
|
|
|
|
|
Iterable<ZjxlBasicInfo> iterable = basicInfoService.findBasicInfo(null);
|
|
|
if (basicInfoTel.length() > 0){
|
|
|
Iterator<ZjxlBasicInfo> iterator = iterable.iterator();
|
|
|
while (iterator.hasNext()){
|
|
|
basicInfoService.deleteBasicInfo(iterator.next().getBasicInfoId());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return write(200,"编辑成功","data",basicInfoService.addBasicInfo(basicInfo));
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|