|
@@ -122,11 +122,12 @@ public class BillSamplingServiceImpl extends ServiceImpl<BillSamplingMapper, Bil
|
|
@Override
|
|
@Override
|
|
public Result edit(HttpServletRequest httpServletRequest, String farmId, String id, String date, MultipartFile img) throws ParseException, IOException {
|
|
public Result edit(HttpServletRequest httpServletRequest, String farmId, String id, String date, MultipartFile img) throws ParseException, IOException {
|
|
String s = "";
|
|
String s = "";
|
|
- if (uploadImage.getVideoCom(img).equals("上传失败")) {
|
|
|
|
|
|
+ s = uploadImage.getVideoCom(img);
|
|
|
|
+ if (s.equals("上传失败")) {
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
return new Result(10001, "视频上传失败", false);
|
|
return new Result(10001, "视频上传失败", false);
|
|
}
|
|
}
|
|
- s = uploadImage.getVideoCom(img);
|
|
|
|
|
|
+
|
|
|
|
|
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
|
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
|
|
|
|
|