|
|
@ -35,6 +35,7 @@ import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
import com.glxp.api.service.thrsys.ThrDataService;
|
|
|
|
import com.glxp.api.service.thrsys.ThrDataService;
|
|
|
|
import com.glxp.api.service.thrsys.ThrSystemService;
|
|
|
|
import com.glxp.api.service.thrsys.ThrSystemService;
|
|
|
|
import com.glxp.api.util.udi.FilterUdiUtils;
|
|
|
|
import com.glxp.api.util.udi.FilterUdiUtils;
|
|
|
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
@ -268,10 +269,6 @@ public class UdiRelevanceController extends BaseController {
|
|
|
|
@PostMapping("/udi/udirel/deleteById")
|
|
|
|
@PostMapping("/udi/udirel/deleteById")
|
|
|
|
@Log(title = "耗材字典管理", businessType = BusinessType.DELETE)
|
|
|
|
@Log(title = "耗材字典管理", businessType = BusinessType.DELETE)
|
|
|
|
public BaseResponse deleteById(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
public BaseResponse deleteById(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
|
|
|
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
String ids = deleteRequest.getId();
|
|
|
|
String ids = deleteRequest.getId();
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity = udiRelevanceService.selectById(Long.parseLong(ids));
|
|
|
|
UdiRelevanceEntity udiRelevanceEntity = udiRelevanceService.selectById(Long.parseLong(ids));
|
|
|
|
if (udiRelevanceEntity != null && udiRelevanceEntity.getUuid() != null) {
|
|
|
|
if (udiRelevanceEntity != null && udiRelevanceEntity.getUuid() != null) {
|
|
|
|