Commit 71a79d06 by Leslie1w

新增指纹比对信息系列接口

parent 847ee911
......@@ -2,6 +2,8 @@ package org.springblade.founder.zwbd.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springblade.founder.asj.entity.TbXwKyxsRy;
import org.springblade.founder.bzptbz.bzptEntity.SysDictitem;
import org.springblade.founder.bzptbz.service.IDetailService;
import org.springblade.founder.log.LogOper;
import org.springblade.founder.utils.R;
import org.springblade.founder.zwbd.entity.AppZwxx;
......@@ -23,6 +25,8 @@ public class AppZwxxController {
@Autowired
private AppZwxxService appZwxxService;
@Autowired
private IDetailService iDetailService;
@Autowired
private AppZwxxMapper appZwxxMapper;
@PostMapping("/saveZwxx")
......@@ -65,6 +69,8 @@ public class AppZwxxController {
ryQueryWrapper.eq("xxzjbh",xxzjbh);
ryQueryWrapper.eq("xxsc_pdbz", "0");
AppZwxx appZwxx = appZwxxMapper.selectOne(ryQueryWrapper);
SysDictitem code_unit = iDetailService.getNameByCode(appZwxx.getTqdw(), "CODE_UNIT");
appZwxx.setTqdwStr(code_unit.getName());
map.put("appZwxx",appZwxx);
return R.ok().data(map);
} catch (Exception e) {
......
......@@ -33,6 +33,8 @@ public class AppZwxx extends BaseModel {
private String fadxz;//发案地详址
private String jqaq;//简要案情
private String tqdw;//提取单位
@TableField(exist = false)
private String tqdwStr;//提取单位
private String tqr;//提取人
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
......
......@@ -14,6 +14,7 @@
,fadxz
,jqaq
,tqdw
,(select name from sys_dictitem where groupid = 'CODE_UNIT' and code = tqdw) as tqdwStr
,tqr
,DATE_FORMAT(tqsj,'%Y-%m-%d %H:%i:%S') as tqsjStr
,filename
......
......@@ -66,12 +66,14 @@ public class AppZwxxServiceImpl extends ServiceImpl<AppZwxxMapper, AppZwxx> impl
@Override
public String updateZwxx(AppZwxx appZwxx) {
String fileName = appZwxx.getFile().getOriginalFilename();
appZwxx.setFilename(fileName);
try {
appZwxx.setNyzwtp(appZwxx.getFile().getBytes());
} catch (IOException e) {
e.printStackTrace();
if (appZwxx.getFile() != null) {
String fileName = appZwxx.getFile().getOriginalFilename();
appZwxx.setFilename(fileName);
try {
appZwxx.setNyzwtp(appZwxx.getFile().getBytes());
} catch (IOException e) {
e.printStackTrace();
}
}
Utils.setUserCzxx(appZwxx);
appZwxx.setXxscPdbz("0");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment