Browse Source

feat:[档案管理]给药制剂档案

master
15881625488@163.com 2 months ago
parent
commit
2c5aaf1733
2 changed files with 1 additions and 57 deletions
  1. +0
    -56
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/GyzjArchiveController.java
  2. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java

+ 0
- 56
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/GyzjArchiveController.java View File

@ -61,62 +61,6 @@ public class GyzjArchiveController extends BaseController
}
/**
* 稽查轨迹列表
*/
@RequiresPermissions("business:archive:gyzj:list")
@GetMapping("/jcgjList")
public TableDataInfo jcgjList(GyzjJcgj form)
{
startPage();
List<GyzjJcgj> list = gyzjJcgjService.queryList(form);
return getDataTable(list);
}
/**
* 台账列表
*/
@RequiresPermissions("business:archive:gyzj:list")
@GetMapping("/tzList")
public TableDataInfo tzList(GyzjTz form)
{
startPage();
List<GyzjTz> list = gyzjTzService.queryList(form);
return getDataTable(list);
}
/**
* 详细信息
*/
@RequiresPermissions("business:archive:gyzj:xq")
@GetMapping(value = "/info")
public AjaxResult getInfo(Long id)
{
return AjaxResult.success(gyzjService.queryInfo(id));
}
/**
* 导出
*/
@RequiresPermissions("business:archive:gyzj:xq")
@GetMapping(value = "/exportDetail")
public AjaxResult exportDetail(Long id,String lang) {
GyzjJcgj gyzjJcgj = new GyzjJcgj();
gyzjJcgj.setGyzjId(id);
List<GyzjJcgj> gyzjJcgjList = gyzjJcgjService.queryList(gyzjJcgj);
GyzjTz gyzjTz = new GyzjTz();
gyzjTz.setGyzjId(id);
List<GyzjTz> gyzjTzList = gyzjTzService.queryList(gyzjTz);
return AjaxResult.success(localFilePrefix + PdfExportUtil.export(
"com.hxhq.business.utils.pdf.resource.Dosage",
"exportDetail",
gyzjService.queryInfo(id),
gyzjTzList,
gyzjJcgjList,
lang,
localFilePath));
}
/**
* 同意归档
*/
@PostMapping("/tygd")

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java View File

@ -1315,7 +1315,7 @@ public class GyzjServiceImpl extends ServiceImpl implements IG
if (gyzjOld == null) {
throw new ServiceException("给药制剂不存在或已删除");
}
if (!gyzjOld.getZjzt().equals(ZjztEnum.ysd.getValue())) {
if (!gyzjOld.getZjzt().equals(ZjztEnum.dgd.getValue())) {
throw new ServiceException("给药制剂【" + gyzjOld.getMc() + "】不是待归档状态,不能操作");
}
gyzjOld.setZjzt(ZjztEnum.gd.getValue());

Loading…
Cancel
Save