...
|
...
|
@@ -5,6 +5,7 @@ import com.tianbo.analysis.model.Originmanifestsecondary; |
|
|
import com.tianbo.analysis.model.ResultJson;
|
|
|
import com.tianbo.analysis.service.NmmsImportService;
|
|
|
import com.tianbo.analysis.service.OriginService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
...
|
...
|
@@ -32,14 +33,20 @@ public class NmmsImportController { |
|
|
* @param originmanifestsecondary
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/imp_removes")
|
|
|
@ApiOperation(value = "批量删除")
|
|
|
@PostMapping(value = "/imp_removes")
|
|
|
@ResponseBody
|
|
|
public ResultJson antivirus_log_remove(@RequestBody Originmanifestsecondary originmanifestsecondary){
|
|
|
int r = 0;
|
|
|
List<String> awbhIds = originmanifestsecondary.getAwbhIds();
|
|
|
for (int i=0; i< awbhIds.size(); i++){
|
|
|
r += originService.deleteAwbh(awbhIds.get(i));
|
|
|
if(originmanifestsecondary != null){
|
|
|
if (originmanifestsecondary.getAwbhIds().contains(",")){
|
|
|
String[] split = originmanifestsecondary.getAwbhIds().split(",");
|
|
|
for (int i=0; i< split.length; i++){
|
|
|
r += originService.deleteAwbh(split[i]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
return r > 0 ? new ResultJson("200", "批量删除成功")
|
|
|
: new ResultJson("201", "批量删除失败");
|
...
|
...
|
@@ -52,7 +59,8 @@ public class NmmsImportController { |
|
|
* @param originmanifestmaster
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/mountAwbh")
|
|
|
@ApiOperation(value = "分单批量挂载")
|
|
|
@PostMapping(value = "/mountAwbh")
|
|
|
@ResponseBody
|
|
|
public ResultJson antivirus_log_remove(@RequestBody ORIGINMANIFESTMASTER originmanifestmaster){
|
|
|
|
...
|
...
|
|