parent
3098c09e81
commit
6beb9c4eaa
@ -1,8 +1,36 @@ |
||||
# 默认忽略的文件 |
||||
/shelf/ |
||||
/workspace.xml |
||||
# 基于编辑器的 HTTP 客户端请求 |
||||
/httpRequests/ |
||||
# Datasource local storage ignored files |
||||
/dataSources/ |
||||
/dataSources.local.xml |
||||
# Created by .ignore support plugin (hsz.mobi) |
||||
### Java template |
||||
# Compiled class file |
||||
*.class |
||||
|
||||
# Log file |
||||
*.log |
||||
|
||||
# BlueJ files |
||||
*.ctxt |
||||
|
||||
# Mobile Tools for Java (J2ME) |
||||
.mtj.tmp/ |
||||
|
||||
# Package Files # |
||||
*.jar |
||||
*.war |
||||
*.nar |
||||
*.ear |
||||
*.zip |
||||
*.tar.gz |
||||
*.rar |
||||
*.lnk |
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml |
||||
hs_err_pid* |
||||
|
||||
.DS_Store |
||||
.idea/ |
||||
*.iml |
||||
out/ |
||||
logs/ |
||||
target/ |
||||
/.idea/ |
||||
/.gitignore |
||||
/logs/ |
||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,151 +0,0 @@ |
||||
package digital.laboratory.platform.reagent.controller; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import digital.laboratory.platform.common.core.util.R; |
||||
import digital.laboratory.platform.common.log.annotation.SysLog; |
||||
import digital.laboratory.platform.common.mybatis.security.service.DLPUser; |
||||
import digital.laboratory.platform.reagent.entity.SignedBatchList; |
||||
import digital.laboratory.platform.reagent.service.SignedBatchListService; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springframework.security.oauth2.provider.OAuth2Authentication; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import javax.servlet.http.HttpServletRequest; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
import java.io.IOException; |
||||
import java.security.Principal; |
||||
|
||||
/** |
||||
* 签收批次明细 |
||||
* |
||||
* @author Zhang Xiaolong created at 2023-03-10 |
||||
* @describe 签收批次明细 前端控制器 |
||||
* |
||||
* 这是与表示层的接口, 不应该接业务逻辑写在这里, 业务逻辑应该写在 service 中 |
||||
* 这里写什么: |
||||
* 为前端提供数据, 接受前端的数据 |
||||
* 为前端提供的数据, 从 service 取得后, 可以做一些适当的加工, 这种加工不是业务层面的, 只能是数据格式上, 为方便前端处理 |
||||
* 接受前端的数据, 每一个函数的参数可以先做一些整理后, 再调用 service 中的函数。这里对参数的整理, 应该只是格式上的, 而不能是业务上的 |
||||
* 数据层在 mapper 中, 数据层不涉及业务, 只管技术上的 对象<->表 之间的转换 |
||||
*/ |
||||
@RestController |
||||
@RequiredArgsConstructor |
||||
@RequestMapping("/signed_batch_list" ) |
||||
@Api(value = "signed_batch_list", tags = "签收批次明细管理") |
||||
public class SignedBatchListController { |
||||
|
||||
private final SignedBatchListService signedBatchListService; |
||||
|
||||
/** |
||||
* 通过id查询签收批次明细 |
||||
* @param signedBatchListId id |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询") |
||||
@GetMapping("/{signedBatchListId}" ) |
||||
@PreAuthorize("@pms.hasPermission('reagent_signed_batch_list_get')" ) |
||||
public R<SignedBatchList> getById(@PathVariable("signedBatchListId" ) String signedBatchListId, HttpServletRequest theHttpServletRequest) { |
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
SignedBatchList signedBatchList = signedBatchListService.getById(signedBatchListId); |
||||
return R.ok(signedBatchList); |
||||
//return R.ok(signedBatchListService.getById(signedBatchListId));
|
||||
} |
||||
|
||||
/** |
||||
* 分页查询 |
||||
* @param page 分页对象 |
||||
* @param signedBatchList 签收批次明细 |
||||
* @return |
||||
*/ |
||||
@ApiOperation(value = "分页查询", notes = "分页查询") |
||||
@GetMapping("/page" ) |
||||
@PreAuthorize("@pms.hasPermission('reagent_signed_batch_list_get')" ) |
||||
public R<IPage<SignedBatchList>> getSignedBatchListPage(Page<SignedBatchList> page, SignedBatchList signedBatchList, HttpServletRequest theHttpServletRequest) { |
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
IPage<SignedBatchList> signedBatchListSList = signedBatchListService.page(page, Wrappers.<SignedBatchList>query() |
||||
.eq("create_by", dlpUser.getId()) |
||||
.orderByDesc("create_time") |
||||
); |
||||
return R.ok(signedBatchListSList); |
||||
// return R.ok(signedBatchListService.page(page, Wrappers.query(signedBatchList)));
|
||||
} |
||||
|
||||
|
||||
/** |
||||
* 新增签收批次明细 |
||||
* @param signedBatchList 签收批次明细 |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "新增签收批次明细", notes = "新增签收批次明细") |
||||
@SysLog("新增签收批次明细" ) |
||||
@PostMapping |
||||
@PreAuthorize("@pms.hasPermission('reagent_signed_batch_list_add')" ) |
||||
public R<SignedBatchList> postAddObject(@RequestBody SignedBatchList signedBatchList, HttpServletRequest theHttpServletRequest) { |
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
signedBatchList.setSignedBatchListId(IdWorker.get32UUID().toUpperCase()); |
||||
if (signedBatchListService.save(signedBatchList)) { |
||||
return R.ok(signedBatchList, "对象创建成功"); |
||||
} |
||||
else { |
||||
return R.failed(signedBatchList, "对象创建失败"); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 修改签收批次明细 |
||||
* @param signedBatchList 签收批次明细 |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "修改签收批次明细", notes = "修改签收批次明细") |
||||
@SysLog("修改签收批次明细" ) |
||||
@PutMapping |
||||
@PreAuthorize("@pms.hasPermission('reagent_signed_batch_list_edit')" ) |
||||
public R<SignedBatchList> putUpdateById(@RequestBody SignedBatchList signedBatchList, HttpServletRequest theHttpServletRequest) { |
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
if (signedBatchListService.updateById(signedBatchList)) { |
||||
return R.ok(signedBatchList, "保存对象成功"); |
||||
} |
||||
else { |
||||
return R.failed(signedBatchList, "保存对象失败"); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 通过id删除签收批次明细 |
||||
* @param signedBatchListId id |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "通过id删除签收批次明细", notes = "通过id删除签收批次明细") |
||||
@SysLog("通过id删除签收批次明细" ) |
||||
@DeleteMapping("/{signedBatchListId}" ) |
||||
@PreAuthorize("@pms.hasPermission('reagent_signed_batch_list_del')" ) |
||||
public R<SignedBatchList> deleteById(@PathVariable String signedBatchListId, HttpServletRequest theHttpServletRequest) { |
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
SignedBatchList oldSignedBatchList = signedBatchListService.getById(signedBatchListId); |
||||
|
||||
if (signedBatchListService.removeById(signedBatchListId)) { |
||||
return R.ok(oldSignedBatchList, "对象删除成功"); |
||||
} |
||||
else { |
||||
return R.failed(oldSignedBatchList, "对象删除失败"); |
||||
} |
||||
|
||||
} |
||||
|
||||
} |
@ -1,169 +0,0 @@ |
||||
package digital.laboratory.platform.reagent.controller; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import digital.laboratory.platform.common.core.util.R; |
||||
import digital.laboratory.platform.common.log.annotation.SysLog; |
||||
import digital.laboratory.platform.common.mybatis.security.service.DLPUser; |
||||
import digital.laboratory.platform.reagent.dto.SigningRecordFormDTO; |
||||
import digital.laboratory.platform.reagent.entity.SignedBatchList; |
||||
import digital.laboratory.platform.reagent.entity.SigningRecordForm; |
||||
import digital.laboratory.platform.reagent.service.SigningRecordFormService; |
||||
import digital.laboratory.platform.reagent.vo.SigningRecordFormVO; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springframework.security.oauth2.provider.OAuth2Authentication; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import javax.servlet.http.HttpServletRequest; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
import java.io.IOException; |
||||
import java.security.Principal; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 签收记录表 |
||||
* |
||||
* @author Zhang Xiaolong created at 2023-03-10 |
||||
* @describe 签收记录表 前端控制器 |
||||
* <p> |
||||
* 这是与表示层的接口, 不应该接业务逻辑写在这里, 业务逻辑应该写在 service 中 |
||||
* 这里写什么: |
||||
* 为前端提供数据, 接受前端的数据 |
||||
* 为前端提供的数据, 从 service 取得后, 可以做一些适当的加工, 这种加工不是业务层面的, 只能是数据格式上, 为方便前端处理 |
||||
* 接受前端的数据, 每一个函数的参数可以先做一些整理后, 再调用 service 中的函数。这里对参数的整理, 应该只是格式上的, 而不能是业务上的 |
||||
* 数据层在 mapper 中, 数据层不涉及业务, 只管技术上的 对象<->表 之间的转换 |
||||
*/ |
||||
@RestController |
||||
@RequiredArgsConstructor |
||||
@RequestMapping("/signing_record_form") |
||||
@Api(value = "signing_record_form", tags = "签收记录表管理") |
||||
public class SigningRecordFormController { |
||||
|
||||
private final SigningRecordFormService signingRecordFormService; |
||||
|
||||
/** |
||||
* 通过id查询签收记录表 |
||||
* |
||||
* @param signingRecordFormId id |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询") |
||||
@GetMapping("/{signingRecordFormId}") |
||||
// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_get')" )
|
||||
public R<SigningRecordForm> getById(@PathVariable("signingRecordFormId") String signingRecordFormId, HttpServletRequest theHttpServletRequest) { |
||||
|
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
|
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
SigningRecordFormVO signingRecordFormVO = signingRecordFormService.getSigningRecordFormVO(signingRecordFormId); |
||||
|
||||
return R.ok(signingRecordFormVO); |
||||
} |
||||
|
||||
/** |
||||
* 分页查询 |
||||
* |
||||
* @param page 分页对象 |
||||
* @param signingRecordForm 签收记录表 |
||||
* @return |
||||
*/ |
||||
@ApiOperation(value = "分页查询", notes = "分页查询") |
||||
@GetMapping("/page") |
||||
// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_get')")
|
||||
public R<IPage<SigningRecordForm>> getSigningRecordFormVOPage(Page<SigningRecordForm> page, SigningRecordForm signingRecordForm, HttpServletRequest theHttpServletRequest) { |
||||
|
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
|
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
IPage<SigningRecordForm> signingRecordFormPage = signingRecordFormService.page(page, Wrappers.<SigningRecordForm>query() |
||||
.eq("create_by", dlpUser.getId()) |
||||
.orderByDesc("create_time")); |
||||
|
||||
return R.ok(signingRecordFormPage); |
||||
|
||||
} |
||||
|
||||
|
||||
/** |
||||
* 新增签收记录表 |
||||
* |
||||
* @param signingRecordFormDTOList 签收记录表 |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "新增签收记录表", notes = "新增签收记录表") |
||||
@SysLog("新增签收记录表") |
||||
@PostMapping |
||||
// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_add')")
|
||||
public R<String> postAddObject(@RequestBody List<SigningRecordFormDTO> signingRecordFormDTOList, HttpServletRequest theHttpServletRequest) { |
||||
|
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
|
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
Boolean aBoolean = signingRecordFormService.addFormById(signingRecordFormDTOList, dlpUser); |
||||
|
||||
|
||||
if (aBoolean) { |
||||
return R.ok("保存成功"); |
||||
} else { |
||||
return R.failed("保存失败"); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 修改签收记录表 |
||||
* |
||||
* @param signingRecordFormDTO 签收记录表 |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "修改签收记录表", notes = "修改签收记录表") |
||||
@SysLog("修改签收记录表") |
||||
@PutMapping |
||||
// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_edit')")
|
||||
public R<SignedBatchList> putUpdateById(@RequestBody SigningRecordFormDTO signingRecordFormDTO, HttpServletRequest theHttpServletRequest) { |
||||
|
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
|
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
SignedBatchList signedBatchList = signingRecordFormService.editFormById(signingRecordFormDTO); |
||||
|
||||
if (signedBatchList != null) { |
||||
return R.ok(signedBatchList, "修改成功"); |
||||
} else { |
||||
return R.failed(signedBatchList, "修改失败"); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 通过id删除签收记录表 |
||||
* |
||||
* @param signingRecordFormId id |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "通过id删除签收记录表", notes = "通过id删除签收记录表") |
||||
@SysLog("通过id删除签收记录表") |
||||
@DeleteMapping("/{signingRecordFormId}") |
||||
@PreAuthorize("@pms.hasPermission('reagent_signing_record_form_del')") |
||||
public R<SigningRecordForm> deleteById(@PathVariable String signingRecordFormId, HttpServletRequest theHttpServletRequest) { |
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
SigningRecordForm oldSigningRecordForm = signingRecordFormService.getById(signingRecordFormId); |
||||
|
||||
if (signingRecordFormService.removeById(signingRecordFormId)) { |
||||
return R.ok(oldSigningRecordForm, "对象删除成功"); |
||||
} else { |
||||
return R.failed(oldSigningRecordForm, "对象删除失败"); |
||||
} |
||||
|
||||
} |
||||
|
||||
} |
@ -0,0 +1,167 @@ |
||||
package digital.laboratory.platform.reagent.controller; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import digital.laboratory.platform.common.core.util.R; |
||||
import digital.laboratory.platform.common.log.annotation.SysLog; |
||||
import digital.laboratory.platform.common.mybatis.security.service.DLPUser; |
||||
import digital.laboratory.platform.reagent.dto.WarehousingRecordFormDTO; |
||||
import digital.laboratory.platform.reagent.entity.WarehousingBatchList; |
||||
import digital.laboratory.platform.reagent.entity.WarehousingRecordForm; |
||||
import digital.laboratory.platform.reagent.service.WarehousingRecordFormService; |
||||
import digital.laboratory.platform.reagent.vo.WarehousingRecordFormVO; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springframework.security.oauth2.provider.OAuth2Authentication; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import javax.servlet.http.HttpServletRequest; |
||||
import java.security.Principal; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 签收记录表 |
||||
* |
||||
* @author Zhang Xiaolong created at 2023-03-10 |
||||
* @describe 签收记录表 前端控制器 |
||||
* <p> |
||||
* 这是与表示层的接口, 不应该接业务逻辑写在这里, 业务逻辑应该写在 service 中 |
||||
* 这里写什么: |
||||
* 为前端提供数据, 接受前端的数据 |
||||
* 为前端提供的数据, 从 service 取得后, 可以做一些适当的加工, 这种加工不是业务层面的, 只能是数据格式上, 为方便前端处理 |
||||
* 接受前端的数据, 每一个函数的参数可以先做一些整理后, 再调用 service 中的函数。这里对参数的整理, 应该只是格式上的, 而不能是业务上的 |
||||
* 数据层在 mapper 中, 数据层不涉及业务, 只管技术上的 对象<->表 之间的转换 |
||||
*/ |
||||
@RestController |
||||
@RequiredArgsConstructor |
||||
@RequestMapping("/warehousing_record_form") |
||||
@Api(value = "warehousing_record_form", tags = "入库记录表管理") |
||||
public class WarehousingRecordFormController { |
||||
|
||||
private final WarehousingRecordFormService warehousingRecordFormService; |
||||
|
||||
/** |
||||
* 通过id查询签收记录表 |
||||
* |
||||
* @param warehousingRecordFormId id |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "通过id查询", notes = "通过id查询") |
||||
@GetMapping("/{warehousingRecordFormId}") |
||||
// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_get')" )
|
||||
public R<WarehousingRecordFormVO> getById(@PathVariable("warehousingRecordFormId") String warehousingRecordFormId, HttpServletRequest theHttpServletRequest) { |
||||
|
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
|
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
WarehousingRecordFormVO warehousingRecordFormVO = warehousingRecordFormService.getWarehousingRecordFormVO(warehousingRecordFormId); |
||||
|
||||
return R.ok(warehousingRecordFormVO); |
||||
} |
||||
|
||||
/** |
||||
* 分页查询 |
||||
* |
||||
* @param page 分页对象 |
||||
* @param signingRecordForm 签收记录表 |
||||
* @return |
||||
*/ |
||||
@ApiOperation(value = "分页查询", notes = "分页查询") |
||||
@GetMapping("/page") |
||||
// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_get')")
|
||||
public R<IPage<WarehousingRecordForm>> getWarehousingRecordFormVOPage(Page<WarehousingRecordForm> page, WarehousingRecordForm signingRecordForm, HttpServletRequest theHttpServletRequest) { |
||||
|
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
|
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
IPage<WarehousingRecordForm> signingRecordFormPage = warehousingRecordFormService.page(page, Wrappers.<WarehousingRecordForm>query() |
||||
.eq("create_by", dlpUser.getId()) |
||||
.orderByDesc("create_time")); |
||||
|
||||
return R.ok(signingRecordFormPage); |
||||
|
||||
} |
||||
|
||||
|
||||
/** |
||||
* 新增签收记录表 |
||||
* |
||||
* @param warehousingRecordFormDTOList 签收记录表 |
||||
* @return R |
||||
*/ |
||||
@ApiOperation(value = "新增签收记录表", notes = "新增签收记录表") |
||||
@SysLog("新增签收记录表") |
||||
@PostMapping |
||||
// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_add')")
|
||||
public R<String> postAddObject(@RequestBody List<WarehousingRecordFormDTO> warehousingRecordFormDTOList, HttpServletRequest theHttpServletRequest) { |
||||
|
||||
Principal principal = theHttpServletRequest.getUserPrincipal(); |
||||
|
||||
DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); |
||||
|
||||
Boolean aBoolean = warehousingRecordFormService.addFormById(warehousingRecordFormDTOList, dlpUser); |
||||
|
||||
|
||||
if (aBoolean) { |
||||
return R.ok("保存成功"); |
||||
} else { |
||||
return R.failed("保存失败"); |
||||
} |
||||
} |
||||
|
||||
// /**
|
||||
// * 修改签收记录表
|
||||
// *
|
||||
// * @param warehousingRecordFormDTO 签收记录表
|
||||
// * @return R
|
||||
// */
|
||||
// @ApiOperation(value = "修改签收记录表", notes = "修改签收记录表")
|
||||
// @SysLog("修改签收记录表")
|
||||
// @PutMapping
|
||||
//// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_edit')")
|
||||
// public R<WarehousingBatchList> putUpdateById(@RequestBody WarehousingRecordFormDTO warehousingRecordFormDTO, HttpServletRequest theHttpServletRequest) {
|
||||
//
|
||||
// Principal principal = theHttpServletRequest.getUserPrincipal();
|
||||
//
|
||||
// DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal();
|
||||
//
|
||||
// WarehousingRecordFormDTO warehousingRecordFormDTO1 = warehousingRecordFormDTO;
|
||||
//
|
||||
//
|
||||
// if ( != null) {
|
||||
// return R.ok(signedBatchList, "修改成功");
|
||||
// } else {
|
||||
// return R.failed(signedBatchList, "修改失败");
|
||||
// }
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 通过id删除签收记录表
|
||||
// *
|
||||
// * @param signingRecordFormId id
|
||||
// * @return R
|
||||
// */
|
||||
// @ApiOperation(value = "通过id删除签收记录表", notes = "通过id删除签收记录表")
|
||||
// @SysLog("通过id删除签收记录表")
|
||||
// @DeleteMapping("/{signingRecordFormId}")
|
||||
// @PreAuthorize("@pms.hasPermission('reagent_signing_record_form_del')")
|
||||
// public R<W> deleteById(@PathVariable String signingRecordFormId, HttpServletRequest theHttpServletRequest) {
|
||||
// Principal principal = theHttpServletRequest.getUserPrincipal();
|
||||
// DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal();
|
||||
//
|
||||
// SigningRecordForm oldSigningRecordForm = warehousingRecordFormService.getById(signingRecordFormId);
|
||||
//
|
||||
// if (warehousingRecordFormService.removeById(signingRecordFormId)) {
|
||||
// return R.ok(oldSigningRecordForm, "对象删除成功");
|
||||
// } else {
|
||||
// return R.failed(oldSigningRecordForm, "对象删除失败");
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
} |
@ -1,22 +0,0 @@ |
||||
package digital.laboratory.platform.reagent.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import digital.laboratory.platform.reagent.entity.SignedBatchList; |
||||
import digital.laboratory.platform.reagent.vo.SignedBatchListVO; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
import org.apache.ibatis.annotations.Param; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 签收批次明细 Mapper 接口 |
||||
* |
||||
* @author Zhang Xiaolong created at 2023-03-10 |
||||
* @describe 签收批次明细 Mapper 类 |
||||
*/ |
||||
@Mapper |
||||
public interface SignedBatchListMapper extends BaseMapper<SignedBatchList> { |
||||
|
||||
List<SignedBatchListVO> getSignedBatchListVOList(String signedContentId); |
||||
|
||||
} |
@ -1,28 +0,0 @@ |
||||
package digital.laboratory.platform.reagent.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import digital.laboratory.platform.reagent.entity.SigningRecordForm; |
||||
import digital.laboratory.platform.reagent.vo.SigningRecordFormVO; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
import org.apache.ibatis.annotations.Param; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 签收记录表 Mapper 接口 |
||||
* |
||||
* @author Zhang Xiaolong created at 2023-03-10 |
||||
* @describe 签收记录表 Mapper 类 |
||||
*/ |
||||
@Mapper |
||||
public interface SigningRecordFormMapper extends BaseMapper<SigningRecordForm> { |
||||
|
||||
IPage<SigningRecordFormVO> getSigningRecordFormVOPage (IPage<SigningRecordForm> page, QueryWrapper<SigningRecordForm> qw); |
||||
|
||||
List<SigningRecordFormVO> getSigningRecordFormVOList (QueryWrapper<SigningRecordForm> qw); |
||||
|
||||
SigningRecordFormVO getSigningRecordFormVO (String signingRecordFormId); |
||||
|
||||
} |
@ -0,0 +1,21 @@ |
||||
package digital.laboratory.platform.reagent.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import digital.laboratory.platform.reagent.entity.WarehousingBatchList; |
||||
import digital.laboratory.platform.reagent.vo.WarehousingBatchListVO; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 签收批次明细 Mapper 接口 |
||||
* |
||||
* @author Zhang Xiaolong created at 2023-03-10 |
||||
* @describe 签收批次明细 Mapper 类 |
||||
*/ |
||||
@Mapper |
||||
public interface WarehousingBatchListMapper extends BaseMapper<WarehousingBatchList> { |
||||
|
||||
List<WarehousingBatchListVO> getWarehousingBatchListVOList(String signedContentId); |
||||
|
||||
} |
@ -0,0 +1,22 @@ |
||||
package digital.laboratory.platform.reagent.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import digital.laboratory.platform.reagent.entity.WarehousingRecordForm; |
||||
import digital.laboratory.platform.reagent.vo.WarehousingRecordFormVO; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 签收记录表 Mapper 接口 |
||||
* |
||||
* @author Zhang Xiaolong created at 2023-03-10 |
||||
* @describe 签收记录表 Mapper 类 |
||||
*/ |
||||
@Mapper |
||||
public interface WarehousingRecordFormMapper extends BaseMapper<WarehousingRecordForm> { |
||||
|
||||
|
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue