|
@@ -5,7 +5,9 @@ import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.entity.IntroduceDetail;
|
|
import com.diagbot.entity.IntroduceDetail;
|
|
import com.diagbot.facade.IntroduceDetailFacade;
|
|
import com.diagbot.facade.IntroduceDetailFacade;
|
|
|
|
+import com.diagbot.vo.IdVO;
|
|
import com.diagbot.vo.IntroduceDetailSingleVO;
|
|
import com.diagbot.vo.IntroduceDetailSingleVO;
|
|
|
|
+import com.diagbot.vo.IntroduceIdVO;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -13,7 +15,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -38,8 +39,8 @@ public class IntroduceDetailController {
|
|
notes = "introduceId: 提示信息id,必填")
|
|
notes = "introduceId: 提示信息id,必填")
|
|
@PostMapping("/getByIntroduceId")
|
|
@PostMapping("/getByIntroduceId")
|
|
@SysLogger("getByIntroduceId")
|
|
@SysLogger("getByIntroduceId")
|
|
- public RespDTO<List<IntroduceDetail>> getByIntroduceId(@RequestParam Long introduceId) {
|
|
|
|
- List<IntroduceDetail> data = introduceDetailFacade.getByIntroduceId(introduceId);
|
|
|
|
|
|
+ public RespDTO<List<IntroduceDetail>> getByIntroduceId(@RequestBody IntroduceIdVO introduceIdVO) {
|
|
|
|
+ List<IntroduceDetail> data = introduceDetailFacade.getByIntroduceId(introduceIdVO.getIntroduceId());
|
|
return RespDTO.onSuc(data);
|
|
return RespDTO.onSuc(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -47,8 +48,8 @@ public class IntroduceDetailController {
|
|
notes = "id: 提示信息明细id,必填")
|
|
notes = "id: 提示信息明细id,必填")
|
|
@PostMapping("/getById")
|
|
@PostMapping("/getById")
|
|
@SysLogger("getById")
|
|
@SysLogger("getById")
|
|
- public RespDTO<IntroduceDetail> getById(@RequestParam Long id) {
|
|
|
|
- IntroduceDetail data = introduceDetailFacade.getRecordById(id);
|
|
|
|
|
|
+ public RespDTO<IntroduceDetail> getById(@RequestBody IdVO idVO) {
|
|
|
|
+ IntroduceDetail data = introduceDetailFacade.getRecordById(idVO.getId());
|
|
return RespDTO.onSuc(data);
|
|
return RespDTO.onSuc(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -72,8 +73,8 @@ public class IntroduceDetailController {
|
|
@PostMapping("/deleteRecord")
|
|
@PostMapping("/deleteRecord")
|
|
@SysLogger("deleteRecord")
|
|
@SysLogger("deleteRecord")
|
|
@Transactional
|
|
@Transactional
|
|
- public RespDTO<Boolean> deleteRecord(@RequestParam Long id) {
|
|
|
|
- Boolean data = introduceDetailFacade.deleteRecord(id);
|
|
|
|
|
|
+ public RespDTO<Boolean> deleteRecord(@RequestBody IdVO idVO) {
|
|
|
|
+ Boolean data = introduceDetailFacade.deleteRecord(idVO.getId());
|
|
return RespDTO.onSuc(data);
|
|
return RespDTO.onSuc(data);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -82,8 +83,8 @@ public class IntroduceDetailController {
|
|
@PostMapping("/deleteRecords")
|
|
@PostMapping("/deleteRecords")
|
|
@SysLogger("deleteRecords")
|
|
@SysLogger("deleteRecords")
|
|
@Transactional
|
|
@Transactional
|
|
- public RespDTO<Boolean> deleteRecords(@RequestParam Long[] ids) {
|
|
|
|
- Boolean data = introduceDetailFacade.deleteRecords(ids);
|
|
|
|
|
|
+ public RespDTO<Boolean> deleteRecords(@RequestBody List<IdVO> idVOList) {
|
|
|
|
+ Boolean data = introduceDetailFacade.deleteRecords(idVOList);
|
|
return RespDTO.onSuc(data);
|
|
return RespDTO.onSuc(data);
|
|
}
|
|
}
|
|
}
|
|
}
|