...
|
...
|
@@ -197,9 +197,16 @@ public class SDCARGONAMEController { |
|
|
public ResponseModel delete(String ids) {
|
|
|
ResponseModel model = new ResponseModel();
|
|
|
try {
|
|
|
sdbigtypeService.bigTypeDelete(ids);
|
|
|
model.setStatus(200);
|
|
|
model.setMsg(HttpJsonMsg.SUCCESS);
|
|
|
|
|
|
if (sdbigtypeService.bigTypeDelete(ids) == 0){
|
|
|
model.setStatus(200);
|
|
|
model.setMsg(HttpJsonMsg.SUCCESS);
|
|
|
}else {
|
|
|
model.setStatus(201);
|
|
|
model.setMsg("请先删除该类下包含的二级类");
|
|
|
}
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
model.setStatus(500);
|
...
|
...
|
@@ -224,15 +231,11 @@ public class SDCARGONAMEController { |
|
|
|
|
|
pageForm.setSearchParams(searchParams);
|
|
|
|
|
|
// pageForm.parseData(sdtwotypeService.getPage(pageForm));
|
|
|
List<SDTWOTYPEEntity> sdtwotypeEntities = sdtwotypeService.twoFindAll();
|
|
|
// pageForm.parseData();
|
|
|
|
|
|
DataGrid<SDTWOTYPEEntity> hzshipperinformationEntityDataGrid = pageForm.getData();
|
|
|
|
|
|
List<SdTwoTypeVo> rows = new ArrayList<>();
|
|
|
|
|
|
// if (CollectionUtils.isNotEmpty(hzshipperinformationEntityDataGrid.getRows())){
|
|
|
for (SDTWOTYPEEntity sd: sdtwotypeEntities){
|
|
|
SdTwoTypeVo sdTwoTypeVo = new SdTwoTypeVo();
|
|
|
|
...
|
...
|
@@ -250,7 +253,6 @@ public class SDCARGONAMEController { |
|
|
|
|
|
DataGrid<SdTwoTypeVo> vos = new DataGrid<>();
|
|
|
vos.setRows(rows);
|
|
|
// vos.setTotal(hzshipperinformationEntityDataGrid.getTotal());
|
|
|
return vos;
|
|
|
}
|
|
|
|
...
|
...
|
|