Compare commits
319 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
c8082ddab0 | 2 years ago |
|
|
a38e43ddb3 | 2 years ago |
|
|
1392d7c1b0 | 2 years ago |
|
|
b95e36ec33 | 2 years ago |
|
|
718ba4324c | 2 years ago |
|
|
c49779459b | 2 years ago |
|
|
d8294d704b | 2 years ago |
|
|
432ac36346 | 2 years ago |
|
|
78cd6cbc60 | 2 years ago |
|
|
1680322a64 | 2 years ago |
|
|
493e07c2ee | 2 years ago |
|
|
d89a98808f | 2 years ago |
|
|
acc3f48cc6 | 2 years ago |
|
|
229e164046 | 2 years ago |
|
|
49efcca13b | 2 years ago |
|
|
4737149aa5 | 2 years ago |
|
|
2e919f8b06 | 2 years ago |
|
|
9b2cd4b1cb | 2 years ago |
|
|
17258e7adb | 2 years ago |
|
|
9823f6e2c5 | 2 years ago |
|
|
b5892c3885 | 2 years ago |
|
|
af56654566 | 2 years ago |
|
|
a81625f674 | 2 years ago |
|
|
39ecb23c6b | 2 years ago |
|
|
9d72a9a602 | 2 years ago |
|
|
dd42fa96ad | 2 years ago |
|
|
010230306b | 2 years ago |
|
|
1dc8822518 | 2 years ago |
|
|
26b3453a72 | 2 years ago |
|
|
bf2753f384 | 2 years ago |
|
|
fe9ac432e7 | 2 years ago |
|
|
507283851a | 2 years ago |
|
|
d18089a7c4 | 2 years ago |
|
|
a42ea9ff39 | 2 years ago |
|
|
a49b5a8e09 | 2 years ago |
|
|
240735c524 | 2 years ago |
|
|
70687e9ab5 | 2 years ago |
|
|
db2b97265c | 2 years ago |
|
|
1aa84b6ad8 | 2 years ago |
|
|
7fa45f41e6 | 2 years ago |
|
|
10321f99de | 2 years ago |
|
|
7e04e5c23d | 2 years ago |
|
|
5976bbbd23 | 2 years ago |
|
|
120e02786d | 2 years ago |
|
|
0aae10cba9 | 2 years ago |
|
|
eeea2fe479 | 2 years ago |
|
|
24f36fa020 | 2 years ago |
|
|
38730470df | 2 years ago |
|
|
b8da26f48e | 2 years ago |
|
|
63c2980045 | 2 years ago |
|
|
aee0a37b43 | 2 years ago |
|
|
719a1885f7 | 2 years ago |
|
|
59697db137 | 2 years ago |
|
|
bf71402ac8 | 2 years ago |
|
|
193ab52f02 | 2 years ago |
|
|
4e9d6d3345 | 2 years ago |
|
|
3c40ab3da8 | 2 years ago |
|
|
d2da1c988d | 2 years ago |
|
|
c92beb488e | 2 years ago |
|
|
475cf208c7 | 2 years ago |
|
|
e94dcb014c | 2 years ago |
|
|
13d7eea4a4 | 2 years ago |
|
|
d2957f6fb9 | 2 years ago |
|
|
17a467d3f6 | 2 years ago |
|
|
a615930c35 | 2 years ago |
|
|
d9066f1115 | 2 years ago |
|
|
3fbe5ba03c | 2 years ago |
|
|
740cc6ae47 | 2 years ago |
|
|
f95b910323 | 2 years ago |
|
|
0798e990f4 | 2 years ago |
|
|
4f2a478f68 | 2 years ago |
|
|
5703682b41 | 2 years ago |
|
|
cd186235e4 | 2 years ago |
|
|
62c2223213 | 2 years ago |
|
|
0d0ee047ca | 2 years ago |
|
|
3db9b614d1 | 2 years ago |
|
|
2883921cd4 | 2 years ago |
|
|
daad7b874f | 2 years ago |
|
|
45600563f5 | 2 years ago |
|
|
5244be57f7 | 2 years ago |
|
|
2c85c8d93b | 2 years ago |
|
|
a772b8859b | 2 years ago |
|
|
4f50317ec6 | 2 years ago |
|
|
143922c5f9 | 2 years ago |
|
|
6040528bc4 | 2 years ago |
|
|
77110f5ffa | 2 years ago |
|
|
ae20c76a1c | 2 years ago |
|
|
425ac204f6 | 2 years ago |
|
|
0342cdcbea | 2 years ago |
|
|
e9fe05c8c1 | 2 years ago |
|
|
c6f812040d | 2 years ago |
|
|
39a3307341 | 2 years ago |
|
|
1008932b63 | 2 years ago |
|
|
c43e96a65c | 2 years ago |
|
|
e0e5d9863a | 2 years ago |
|
|
bbcc920d63 | 2 years ago |
|
|
3221541f58 | 2 years ago |
|
|
305e96c3be | 2 years ago |
|
|
91e68fc2ce | 2 years ago |
|
|
ef1b3d4c02 | 2 years ago |
|
|
2a512486ea | 2 years ago |
|
|
3df983cb94 | 2 years ago |
|
|
58a6399fc0 | 2 years ago |
|
|
10c4288243 | 2 years ago |
|
|
139090358b | 2 years ago |
|
|
244d922752 | 2 years ago |
|
|
002890a4e4 | 2 years ago |
|
|
950ac308df | 2 years ago |
|
|
18389bd9b5 | 2 years ago |
|
|
91cd05ac83 | 2 years ago |
|
|
84347984b3 | 2 years ago |
|
|
909e625575 | 2 years ago |
|
|
0748b452bf | 2 years ago |
|
|
23ec8ab108 | 2 years ago |
|
|
c0dee71196 | 2 years ago |
|
|
0ccbf8bbfc | 2 years ago |
|
|
a31e94d28e | 2 years ago |
|
|
b8721bd84a | 2 years ago |
|
|
9d5d167f03 | 2 years ago |
|
|
b23b54cb78 | 2 years ago |
|
|
383d28870e | 2 years ago |
|
|
e4c9aea585 | 2 years ago |
|
|
85f66e192c | 2 years ago |
|
|
c056ec056e | 2 years ago |
|
|
22a78f1c07 | 2 years ago |
|
|
57cc29f86e | 2 years ago |
|
|
0ff031169b | 2 years ago |
|
|
5dec7d2c04 | 2 years ago |
|
|
c1ab8e2015 | 2 years ago |
|
|
a151f9047a | 2 years ago |
|
|
5295d09942 | 2 years ago |
|
|
ddbcbd474d | 2 years ago |
|
|
611f07687d | 2 years ago |
|
|
2bb50bf2dc | 2 years ago |
|
|
da6156c425 | 2 years ago |
|
|
94e26c88fd | 2 years ago |
|
|
5c110b5df3 | 2 years ago |
|
|
76b7df199d | 2 years ago |
|
|
96617e1525 | 2 years ago |
|
|
322be423b9 | 2 years ago |
|
|
829a0aa97f | 2 years ago |
|
|
22c7810274 | 2 years ago |
|
|
ebc9a535f3 | 2 years ago |
|
|
dba60ff044 | 2 years ago |
|
|
92829980b2 | 2 years ago |
|
|
968740acfa | 2 years ago |
|
|
f7ce84d86d | 2 years ago |
|
|
5f1bc17a5c | 2 years ago |
|
|
a68d23aafa | 2 years ago |
|
|
a235b507d4 | 2 years ago |
|
|
86610ec292 | 2 years ago |
|
|
957883d0a3 | 2 years ago |
|
|
f584b635fe | 2 years ago |
|
|
3ad65bf5a6 | 2 years ago |
|
|
6f0bb8fce8 | 2 years ago |
|
|
9cb6c446b2 | 2 years ago |
|
|
2cfb8b86e8 | 2 years ago |
|
|
144df64bd0 | 2 years ago |
|
|
b51d6bbc04 | 2 years ago |
|
|
f7cf61567b | 2 years ago |
|
|
e86ff9f8fc | 2 years ago |
|
|
7e9c134a91 | 2 years ago |
|
|
646ace6e5d | 2 years ago |
|
|
fbbff17114 | 2 years ago |
|
|
a44c24815e | 2 years ago |
|
|
3a35d7cd23 | 2 years ago |
|
|
c847267d5c | 2 years ago |
|
|
d51749801a | 2 years ago |
|
|
31cae5bb3b | 2 years ago |
|
|
a169ac057d | 2 years ago |
|
|
7f2d61b402 | 2 years ago |
|
|
5c9b8a15ff | 2 years ago |
|
|
142dc2c080 | 2 years ago |
|
|
712bb593bb | 2 years ago |
|
|
9b6e6f89b9 | 2 years ago |
|
|
b0f0165b64 | 2 years ago |
|
|
9d469ad7e2 | 2 years ago |
|
|
d19cf2223b | 2 years ago |
|
|
ae9661d5cf | 2 years ago |
|
|
71eec4287b | 2 years ago |
|
|
55d6676549 | 2 years ago |
|
|
c30e0e9ede | 2 years ago |
|
|
48d1881d5e | 2 years ago |
|
|
cf9a24596f | 2 years ago |
|
|
ecbd92dad7 | 2 years ago |
|
|
ef562ea16e | 2 years ago |
|
|
cc6a88e0c3 | 2 years ago |
|
|
31d98eecdb | 2 years ago |
|
|
311ea02a71 | 2 years ago |
|
|
640419d136 | 2 years ago |
|
|
6ab5ea4f3d | 2 years ago |
|
|
86dd2cfee2 | 2 years ago |
|
|
90e4a2a83d | 2 years ago |
|
|
41e9626aa3 | 2 years ago |
|
|
c9636fac90 | 2 years ago |
|
|
ed91a64ee1 | 2 years ago |
|
|
047781e254 | 2 years ago |
|
|
353d28c90e | 2 years ago |
|
|
15b105543f | 2 years ago |
|
|
7f10dfc1ea | 2 years ago |
|
|
57e22e39b9 | 2 years ago |
|
|
dbda330be8 | 2 years ago |
|
|
74e83c4c96 | 2 years ago |
|
|
56116fd0fa | 2 years ago |
|
|
063cfdb0f9 | 2 years ago |
|
|
92f56fa136 | 2 years ago |
|
|
1afb543613 | 2 years ago |
|
|
46e66d684d | 2 years ago |
|
|
80a2a14cd6 | 2 years ago |
|
|
c9dde6a7f1 | 2 years ago |
|
|
4038b03337 | 2 years ago |
|
|
b23b67f975 | 2 years ago |
|
|
b4b72c2fb7 | 2 years ago |
|
|
8aa367b80d | 2 years ago |
|
|
8750b393e2 | 2 years ago |
|
|
2ebeddfbeb | 2 years ago |
|
|
6bfb80660d | 2 years ago |
|
|
2f0e40f304 | 2 years ago |
|
|
13813dd154 | 2 years ago |
|
|
44f576e4d6 | 2 years ago |
|
|
f1f6de6427 | 2 years ago |
|
|
3049235e8c | 2 years ago |
|
|
c582470987 | 2 years ago |
|
|
b9acf812be | 2 years ago |
|
|
5351125ee1 | 2 years ago |
|
|
eaaebc05eb | 2 years ago |
|
|
2d5577f5c3 | 2 years ago |
|
|
5be2580cba | 2 years ago |
|
|
6149b38538 | 2 years ago |
|
|
162cea8f85 | 2 years ago |
|
|
266a8d337c | 2 years ago |
|
|
fc47a67318 | 2 years ago |
|
|
2362043c07 | 2 years ago |
|
|
b97e03e961 | 2 years ago |
|
|
1f0acd7603 | 2 years ago |
|
|
e6fd677957 | 2 years ago |
|
|
11bdeeaea9 | 2 years ago |
|
|
42ba770547 | 2 years ago |
|
|
d835c7dd6e | 2 years ago |
|
|
6d12608e59 | 2 years ago |
|
|
129c390345 | 2 years ago |
|
|
f504cccdf4 | 2 years ago |
|
|
1d64a16ffb | 2 years ago |
|
|
4f800fc941 | 2 years ago |
|
|
51ab9b6401 | 2 years ago |
|
|
dbec394c92 | 2 years ago |
|
|
d1b55fa87d | 2 years ago |
|
|
c9202520f7 | 2 years ago |
|
|
ce0469b591 | 2 years ago |
|
|
0732ed41f1 | 2 years ago |
|
|
c19ed0d35c | 2 years ago |
|
|
db59a7adce | 2 years ago |
|
|
06c63d0caf | 2 years ago |
|
|
ce85f7540f | 2 years ago |
|
|
9c1155d359 | 2 years ago |
|
|
299cad893e | 2 years ago |
|
|
956aa0552f | 2 years ago |
|
|
f133c8e9a8 | 2 years ago |
|
|
0d535fd16e | 2 years ago |
|
|
2926cc2a3f | 2 years ago |
|
|
1d7adfefb0 | 2 years ago |
|
|
4c0df12a73 | 2 years ago |
|
|
94b2cbec67 | 2 years ago |
|
|
2e64d7d50b | 2 years ago |
|
|
cbb632eb13 | 2 years ago |
|
|
d35902c27a | 2 years ago |
|
|
1dbeaefe4b | 2 years ago |
|
|
cbc6e13672 | 2 years ago |
|
|
240fd8b644 | 2 years ago |
|
|
c0fc50acef | 2 years ago |
|
|
5f1010e502 | 2 years ago |
|
|
c993e89ceb | 2 years ago |
|
|
986409a500 | 2 years ago |
|
|
e00644e22f | 2 years ago |
|
|
c8501e6be2 | 2 years ago |
|
|
2fd4a6e9ef | 2 years ago |
|
|
b96354b5f0 | 2 years ago |
|
|
15847e37d8 | 2 years ago |
|
|
99d9be6429 | 2 years ago |
|
|
fc2ed1c78f | 2 years ago |
|
|
deabcea411 | 2 years ago |
|
|
b0d9af3aba | 2 years ago |
|
|
542c9e10c1 | 2 years ago |
|
|
a806630cbc | 2 years ago |
|
|
92444d64b7 | 2 years ago |
|
|
5b9a213668 | 2 years ago |
|
|
38e682da0c | 2 years ago |
|
|
c41d921dc4 | 2 years ago |
|
|
96c0716bf6 | 2 years ago |
|
|
794bf19811 | 2 years ago |
|
|
e1186d6fda | 2 years ago |
|
|
a16abc330b | 2 years ago |
|
|
137790a115 | 2 years ago |
|
|
188ef2019c | 2 years ago |
|
|
4bde6ffd72 | 2 years ago |
|
|
c58a6123ac | 2 years ago |
|
|
77e3f69c10 | 2 years ago |
|
|
be1e3e1525 | 2 years ago |
|
|
76a120a10c | 2 years ago |
|
|
70349a55b9 | 2 years ago |
|
|
82ce94e50b | 2 years ago |
|
|
4ac99767b1 | 2 years ago |
|
|
9975fe7cb7 | 2 years ago |
|
|
ee36909fc3 | 2 years ago |
|
|
2afc9f89c2 | 2 years ago |
|
|
974e61e0ad | 2 years ago |
|
|
91f5537b35 | 2 years ago |
|
|
44623e8c06 | 2 years ago |
|
|
6b10a0ac43 | 2 years ago |
|
|
7e667bbf9f | 2 years ago |
|
|
b31a128643 | 2 years ago |
|
|
100ea1e7c7 | 2 years ago |
|
|
ff01c25373 | 2 years ago |
|
|
690b0961be | 2 years ago |
|
|
54ac08208e | 2 years ago |
|
|
6884d69ed2 | 2 years ago |
|
|
0367629dea | 2 years ago |
|
|
f4d60c10ac | 2 years ago |
|
|
6ca42aaade | 2 years ago |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,8 @@
|
||||
package cn.jyjz.xiaoyao.framework.security.sms;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface MsmService {
|
||||
//发送验证码
|
||||
boolean send(Map<String, Object> param, String phone);
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package cn.jyjz.xiaoyao.admin.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.admin.dataobject.SFrontmenuT;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端菜单表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface SFrontmenuTDao extends BaseMapper<SFrontmenuT> {
|
||||
|
||||
List<SFrontmenuT> queryUserMenuById(String loginName);
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package cn.jyjz.xiaoyao.admin.service;
|
||||
|
||||
import cn.jyjz.xiaoyao.admin.dataobject.SFrontmenuT;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端菜单表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-25
|
||||
*/
|
||||
public interface ISFrontmenuTService extends IService<SFrontmenuT> {
|
||||
|
||||
List<SFrontmenuT> queryUserMenuById(String loginName);
|
||||
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package cn.jyjz.xiaoyao.admin.service.impl;
|
||||
import cn.jyjz.xiaoyao.admin.dataDao.SFrontmenuTDao;
|
||||
import cn.jyjz.xiaoyao.admin.dataobject.SFrontmenuT;
|
||||
import cn.jyjz.xiaoyao.admin.service.ISFrontmenuTService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端菜单表 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-25
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class SFrontmenuTServiceImpl extends ServiceImpl<SFrontmenuTDao, SFrontmenuT> implements ISFrontmenuTService {
|
||||
|
||||
@Resource
|
||||
private SFrontmenuTDao sFrontmenuTDao;
|
||||
|
||||
@Override
|
||||
public List<SFrontmenuT> queryUserMenuById(String loginName){
|
||||
List<SFrontmenuT> sFrontmenuTList = sFrontmenuTDao.queryUserMenuById(loginName);
|
||||
|
||||
return sFrontmenuTList;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.jyjz.xiaoyao.admin.dataDao.SFrontmenuTDao">
|
||||
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.admin.dataobject.SFrontmenuT">
|
||||
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="parentId" jdbcType="INTEGER" property="parentId" />
|
||||
<result column="resKey" jdbcType="VARCHAR" property="resKey" />
|
||||
<result column="resUrl" jdbcType="VARCHAR" property="resKey" />
|
||||
<result column="level" jdbcType="INTEGER" property="level" />
|
||||
<result column="icon" jdbcType="VARCHAR" property="icon" />
|
||||
<result column="orderNum" jdbcType="INTEGER" property="orderNum" />
|
||||
<result column="ishide" jdbcType="INTEGER" property="ishide" />
|
||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, `name`, parentId, resKey, resUrl, `level`, icon, orderNum, ishide, description
|
||||
</sql>
|
||||
|
||||
<select id="queryUserMenuById" resultType="cn.jyjz.xiaoyao.admin.dataobject.SFrontmenuT">
|
||||
SELECT
|
||||
T3.*
|
||||
FROM
|
||||
s_user_frontmenu_t T1
|
||||
LEFT JOIN s_user_t T2 ON T1.userId = T2.ID
|
||||
LEFT JOIN s_frontmenu_t T3 on T3.id = T1.menuId
|
||||
WHERE
|
||||
T2.LOGINNAME = #{loginname}
|
||||
ORDER BY T3.orderNum asc
|
||||
</select>
|
||||
</mapper>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,87 @@
|
||||
package cn.jyjz.xiaoyao.ocr.controller;
|
||||
|
||||
import cn.jyjz.flowable.service.IFlowTaskService;
|
||||
import cn.jyjz.flowable.utils.PageUtils;
|
||||
import cn.jyjz.xiaoyao.admin.dataobject.User;
|
||||
import cn.jyjz.xiaoyao.admin.service.UserService;
|
||||
import cn.jyjz.xiaoyao.common.base.controller.BaseController;
|
||||
import cn.jyjz.xiaoyao.common.base.service.UserTokenService;
|
||||
import cn.jyjz.xiaoyao.common.base.util.RequestBaseUtil;
|
||||
import cn.jyjz.xiaoyao.common.base.util.requestFormat.SearchQuery;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.ResultVo;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.ResultVoUtil;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.UserToken;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildPictureAppro;
|
||||
import cn.jyjz.xiaoyao.ocr.service.IOcrSearchHistoryService;
|
||||
import cn.jyjz.xiaoyao.framework.security.sms.MsmService;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* ocr控制器
|
||||
*
|
||||
* @author 你的肉
|
||||
* AI审批工单
|
||||
* @Date 2024-03-17 19:53:30
|
||||
*/
|
||||
@CrossOrigin
|
||||
@RestController
|
||||
@RequestMapping("/ocr/aitools")
|
||||
public class OcrAiApprovalTools {
|
||||
|
||||
|
||||
@Autowired
|
||||
private UserTokenService userTokenService;
|
||||
|
||||
@Autowired
|
||||
IOcrSearchHistoryService iocrsearchhistoryservice;
|
||||
|
||||
|
||||
/**
|
||||
* 统计
|
||||
*
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/toolsCount", method = RequestMethod.GET)
|
||||
public ResultVo toolsCount(HttpServletRequest request) {
|
||||
|
||||
String tenantId = request.getHeader("X-Tenant-Id");
|
||||
if(StringUtils.isBlank(tenantId)){
|
||||
return ResultVoUtil.error("租户主键不能为空");
|
||||
}
|
||||
|
||||
|
||||
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
|
||||
|
||||
ResultVo toolscount = iocrsearchhistoryservice.toolscount(tenantId,userToken.getUserid(),request);
|
||||
|
||||
return toolscount;
|
||||
}
|
||||
|
||||
/*
|
||||
ai审批工单
|
||||
*/
|
||||
@RequestMapping(value = "/aiApprovaltools", method = RequestMethod.GET)
|
||||
public ResultVo aiApprovaltools(HttpServletRequest request,@RequestParam(value = "taskid", required = true) String taskid) {
|
||||
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
|
||||
|
||||
Map<Object, Object> selectaisp = iocrsearchhistoryservice.selectaisp(userToken.getUserid(), taskid,userToken.getNodeType());
|
||||
return ResultVoUtil.success(selectaisp);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/aiApprovaltoolsClearmark", method = RequestMethod.GET)
|
||||
public ResultVo aiApprovaltoolsClearmark(HttpServletRequest request,@RequestParam(value = "taskid", required = true) String taskid) {
|
||||
|
||||
ResultVo clearmark = iocrsearchhistoryservice.clearmark(taskid);
|
||||
return clearmark;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,122 @@
|
||||
package cn.jyjz.xiaoyao.ocr.controller;
|
||||
|
||||
|
||||
import cn.jyjz.xiaoyao.common.base.controller.BaseController;
|
||||
import cn.jyjz.xiaoyao.common.base.service.UserTokenService;
|
||||
import cn.jyjz.xiaoyao.common.base.util.RequestBaseUtil;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.ResultVo;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.ResultVoUtil;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.UserToken;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicture;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskPackage;
|
||||
import cn.jyjz.xiaoyao.ocr.dto.OcrTaskPackageDto;
|
||||
import cn.jyjz.xiaoyao.ocr.service.IOcrTaskPackageService;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 一键查重 and 任务包功能
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ocr/ocrTaskPackage")
|
||||
public class OcrTaskPackageController extends BaseController {
|
||||
private Logger log = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@Resource
|
||||
private IOcrTaskPackageService ocrTaskPackageService;
|
||||
|
||||
|
||||
@Resource
|
||||
private UserTokenService userTokenService;
|
||||
|
||||
/**
|
||||
* 创建任务包
|
||||
*
|
||||
* @param ocrTaskPackage
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/createPackage")
|
||||
public ResultVo createPackage(@RequestBody OcrTaskPackageDto ocrTaskPackage, HttpServletRequest req) {
|
||||
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(req));
|
||||
//租户
|
||||
String tenantId = req.getHeader("X-Tenant-Id");
|
||||
if (StringUtils.isBlank(tenantId)) {
|
||||
return ResultVoUtil.error("租户主键不能为空");
|
||||
}
|
||||
ocrTaskPackage.setTenantId(Long.parseLong(tenantId));
|
||||
//校验参数包名称
|
||||
if (ocrTaskPackage == null) {
|
||||
return ResultVoUtil.error("参数对象为空");
|
||||
}
|
||||
|
||||
//校验参数包名称
|
||||
if (StringUtils.isBlank(ocrTaskPackage.getName())) {
|
||||
return ResultVoUtil.error("任务包名称不能为空");
|
||||
}
|
||||
|
||||
//校验参数包名称
|
||||
if (StringUtils.isBlank(ocrTaskPackage.getCheckDuplicateNo())) {
|
||||
return ResultVoUtil.error("查重任务编号不能为空");
|
||||
}
|
||||
ocrTaskPackage.setCreateBy(userToken.getUserid());
|
||||
ocrTaskPackage.setCreateTime(System.currentTimeMillis());
|
||||
return ocrTaskPackageService.saveTaskPackage(ocrTaskPackage);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过主键删除任务包
|
||||
*
|
||||
* @param packageId
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/deletePackage")
|
||||
public ResultVo deletePackage(@RequestParam(name = "packageId", required = true) Long packageId, HttpServletRequest req) {
|
||||
OcrTaskPackage taskPackage = new OcrTaskPackage();
|
||||
taskPackage.setId(packageId);
|
||||
taskPackage.setIsDelete(1);
|
||||
boolean b = ocrTaskPackageService.updateById(taskPackage);
|
||||
if (b) {
|
||||
return ResultVoUtil.success();
|
||||
} else {
|
||||
return ResultVoUtil.error();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取任务包列表
|
||||
*
|
||||
* @param packageName
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getPackageList")
|
||||
public ResultVo getPackageList(@RequestParam(name = "packageName", required = false) String packageName,
|
||||
@RequestParam(name = "pageNo") Integer pageNo,
|
||||
@RequestParam(name = "pageSize") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
String tenantId = req.getHeader("X-Tenant-Id");
|
||||
if(StringUtils.isBlank(tenantId)){
|
||||
return ResultVoUtil.error("租户主键不能为空");
|
||||
}
|
||||
Page<Map<String, Object>> result = ocrTaskPackageService.getPackageList(pageNo, pageSize, packageName,tenantId);
|
||||
return ResultVoUtil.success(result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,221 @@
|
||||
package cn.jyjz.xiaoyao.ocr.controller;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.jyjz.xiaoyao.common.base.service.UserTokenService;
|
||||
import cn.jyjz.xiaoyao.common.base.util.RequestBaseUtil;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.ResultVo;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.ResultVoUtil;
|
||||
import cn.jyjz.xiaoyao.common.base.vo.UserToken;
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.*;
|
||||
import cn.jyjz.xiaoyao.ocr.service.OcrPictureService;
|
||||
import cn.jyjz.xiaoyao.ocr.service.OcrTaskchildPictureService;
|
||||
import cn.jyjz.xiaoyao.ocr.vo.OcrTaskChildPictureVo;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import cn.jyjz.xiaoyao.ocr.service.IOcrTaskchildDubiousFileService;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* ocr可疑文件控制器
|
||||
*
|
||||
* @author 你的肉
|
||||
* @Date 2024-03-21 19:00:57
|
||||
*/
|
||||
@Api(tags="ocr可疑文件控制器")
|
||||
@RestController
|
||||
@RequestMapping("/ocr/dubiousfile")
|
||||
public class OcrTaskchildDubiousFileController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private IOcrTaskchildDubiousFileService ocrTaskchildDubiousFileService;
|
||||
|
||||
@Autowired
|
||||
private UserTokenService userTokenService;
|
||||
|
||||
@Autowired
|
||||
OcrTaskchildPictureService ocrtaskchildpictureservice;
|
||||
|
||||
@Autowired
|
||||
OcrPictureService ocrpictureservice;
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value="可疑文件列表查询", notes="可疑文件列表查询")
|
||||
@RequestMapping(value = "/dubiousfilelist", method = RequestMethod.GET)
|
||||
public ResultVo<Page<OcrTaskChildPictureVo>> dubiousfilelist(HttpServletRequest request,
|
||||
@RequestParam(value = "pageNo", required = false, defaultValue = "0") Integer pageNo,
|
||||
@RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize,
|
||||
@RequestParam(value = "orderbyname", required = true, defaultValue = "asc") String orderbyname) {
|
||||
|
||||
|
||||
String tenantId = request.getHeader("X-Tenant-Id");
|
||||
if(StringUtils.isBlank(tenantId)){
|
||||
return ResultVoUtil.error("租户主键不能为空");
|
||||
}
|
||||
|
||||
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
|
||||
|
||||
// QueryWrapper<OcrTaskchildDubiousFile> dubiouswrapper = new QueryWrapper<>();
|
||||
// dubiouswrapper.eq("userid",userToken.getUserid());
|
||||
// List<OcrTaskchildDubiousFile> list = ocrTaskchildDubiousFileService.list(dubiouswrapper);
|
||||
// if(list.size()==0){
|
||||
// return ResultVoUtil.success();
|
||||
// }
|
||||
// IPage<OcrPicture> iPage = new Page<>(Integer.valueOf(pageNo),Integer.valueOf(pageSize));
|
||||
//
|
||||
// QueryWrapper<OcrPicture> wrapper = new QueryWrapper<>();
|
||||
// wrapper.in("ID",list.stream().map(i->i.getPictureId()).collect(Collectors.toList()));
|
||||
//
|
||||
//
|
||||
// if(orderbyname.equals("desc")){
|
||||
// wrapper.orderByDesc("create_time");
|
||||
// }else {
|
||||
// wrapper.orderByAsc("create_time");
|
||||
// }
|
||||
//
|
||||
// //IPage<OcrPicture> page = ocrpictureservice.page(iPage, wrapper);
|
||||
|
||||
Page<OcrTaskChildPictureVo> page = ocrTaskchildDubiousFileService.dubiousfilelist(pageNo,pageSize,orderbyname,userToken,tenantId);
|
||||
|
||||
return ResultVoUtil.success(page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value="可疑文件列表移除", notes="可疑文件列表移除")
|
||||
@RequestMapping(value = "/dubiousfileyc", method = RequestMethod.GET)
|
||||
public ResultVo dubiousfileyc(HttpServletRequest request, @RequestParam(value = "pictureid", required = true) String pictureid) {
|
||||
|
||||
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
|
||||
|
||||
String[] cps = pictureid.split(",");
|
||||
|
||||
List<OcrPicture> saveList = new ArrayList<>();
|
||||
List<OcrTaskchildDubiousFile> fileList = new ArrayList<>();
|
||||
for (String childpictureid : cps) {
|
||||
OcrPicture ocrPicture = ocrpictureservice.selectDtoById(Long.parseLong(childpictureid));
|
||||
if(ocrPicture != null){
|
||||
ocrPicture.setSuspiciousfile(0);
|
||||
ocrPicture.setUpdateTime(System.currentTimeMillis());
|
||||
saveList.add(ocrPicture);
|
||||
}
|
||||
|
||||
QueryWrapper<OcrTaskchildDubiousFile> dubiouswrapper = new QueryWrapper<>();
|
||||
dubiouswrapper.eq("userid",userToken.getUserid()).eq("picture_id",childpictureid);
|
||||
|
||||
|
||||
OcrTaskchildDubiousFile one = ocrTaskchildDubiousFileService.getOne(dubiouswrapper);
|
||||
if(one != null){
|
||||
fileList.add(one);
|
||||
}
|
||||
}
|
||||
|
||||
//无对应图片信息
|
||||
if(CollUtil.isEmpty(saveList)){
|
||||
return ResultVoUtil.error("可疑文件不存在!");
|
||||
}
|
||||
ocrpictureservice.updateBatchById(saveList);
|
||||
|
||||
|
||||
//根据具体情况 判断 是否需要 进行数据返回, 默认不返回数据
|
||||
|
||||
return ocrTaskchildDubiousFileService.removeByIds(fileList)?ResultVoUtil.success():ResultVoUtil.error("可疑文件不存在!");
|
||||
}
|
||||
/**
|
||||
* 添加
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value="可疑文件列表添加", notes="可疑文件列表添加")
|
||||
@RequestMapping(value = "/dubiousfileyd", method = RequestMethod.GET)
|
||||
public ResultVo dubiousfileyd(HttpServletRequest request, @RequestParam(value = "pictureid", required = true) String pictureid) {
|
||||
|
||||
String tenantId = request.getHeader("X-Tenant-Id");
|
||||
if(StringUtils.isBlank(tenantId)){
|
||||
return ResultVoUtil.error("租户主键不能为空");
|
||||
}
|
||||
|
||||
|
||||
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
|
||||
|
||||
List<OcrTaskchildDubiousFile> list=new ArrayList<>();
|
||||
String[] taskchildid1 = pictureid.toString().split(",");
|
||||
for (String asd:taskchildid1){
|
||||
|
||||
QueryWrapper<OcrTaskchildDubiousFile> filewrapper = new QueryWrapper<>();
|
||||
filewrapper.eq("picture_id",asd).eq("userid",userToken.getUserid());
|
||||
OcrTaskchildDubiousFile one1 = ocrTaskchildDubiousFileService.getOne(filewrapper);
|
||||
if (null==one1){
|
||||
OcrTaskchildDubiousFile ocrtaskchilddubiousfile=new OcrTaskchildDubiousFile();
|
||||
ocrtaskchilddubiousfile.setPictureId(Long.parseLong(asd));
|
||||
ocrtaskchilddubiousfile.setTenantid(Long.parseLong(tenantId));
|
||||
ocrtaskchilddubiousfile.setUserid(Long.parseLong(userToken.getUserid()));
|
||||
ocrtaskchilddubiousfile.setCreatedate(System.currentTimeMillis());
|
||||
|
||||
|
||||
QueryWrapper<OcrTaskchildPicture> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq("PICTUREID",asd);
|
||||
OcrTaskchildPicture one = ocrtaskchildpictureservice.getOne(wrapper);
|
||||
ocrtaskchilddubiousfile.setTaskchildId(one.getId());
|
||||
|
||||
UpdateWrapper<OcrPicture> updatewrapper = new UpdateWrapper<>();
|
||||
updatewrapper.eq("ID", asd).set("suspiciousfile","1");
|
||||
|
||||
ocrpictureservice.update(updatewrapper);
|
||||
|
||||
list.add(ocrtaskchilddubiousfile);
|
||||
}else {
|
||||
if (!asd.equals(one1.getPictureId().toString())) {
|
||||
OcrTaskchildDubiousFile ocrtaskchilddubiousfile=new OcrTaskchildDubiousFile();
|
||||
ocrtaskchilddubiousfile.setPictureId(Long.parseLong(asd));
|
||||
ocrtaskchilddubiousfile.setTenantid(Long.parseLong(tenantId));
|
||||
ocrtaskchilddubiousfile.setUserid(Long.parseLong(userToken.getUserid()));
|
||||
ocrtaskchilddubiousfile.setCreatedate(System.currentTimeMillis());
|
||||
|
||||
|
||||
QueryWrapper<OcrTaskchildPicture> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq("PICTUREID",asd);
|
||||
OcrTaskchildPicture one = ocrtaskchildpictureservice.getOne(wrapper);
|
||||
ocrtaskchilddubiousfile.setTaskchildId(one.getId());
|
||||
|
||||
UpdateWrapper<OcrPicture> updatewrapper = new UpdateWrapper<>();
|
||||
updatewrapper.eq("ID", asd).set("suspiciousfile","1");
|
||||
|
||||
ocrpictureservice.update(updatewrapper);
|
||||
|
||||
list.add(ocrtaskchilddubiousfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return ocrTaskchildDubiousFileService.saveBatch(list)?ResultVoUtil.success():ResultVoUtil.error("当前图片已添加过了");
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrArea;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrAreaMybatisDao extends BaseMapper<OcrArea> {
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrCheckDuplicate;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 查重任务表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-24
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrCheckDuplicateMapper extends BaseMapper<OcrCheckDuplicate> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrCheckDuplicateResult;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-24
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrCheckDuplicateResultMapper extends BaseMapper<OcrCheckDuplicateResult> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureDuplicateHis;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 图片比对历史信息表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-24
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPictureDuplicateHisMapper extends BaseMapper<OcrPictureDuplicateHis> {
|
||||
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPictureclass;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPictureclassMybatisDao extends BaseMapper<OcrPictureclass> {
|
||||
}
|
||||
@ -1,30 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturejob;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPicturejobMybatisDao extends BaseMapper<OcrPicturejob> {
|
||||
/**
|
||||
* 通过主表id删除子表数据
|
||||
*
|
||||
* @param mainId 主表id
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean deleteByMainId(@Param("mainId") String mainId);
|
||||
|
||||
/**
|
||||
* 通过主表id查询子表数据
|
||||
*
|
||||
* @param mainId 主表id
|
||||
* @return List<OcrPicturejob>
|
||||
*/
|
||||
public List<OcrPicturejob> selectByMainId(@Param("mainId") String mainId);
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPicturetype;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPicturetypeMybatisDao extends BaseMapper<OcrPicturetype> {
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrPlan;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrPlanMybatisDao extends BaseMapper<OcrPlan> {
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrProvince;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrProvinceMybatisDao extends BaseMapper<OcrProvince> {
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskPackage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.pagehelper.IPage;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 任务包表 (新20240323) Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-24
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrTaskPackageMapper extends BaseMapper<OcrTaskPackage> {
|
||||
|
||||
Page<Map<String,Object>> getPackageList(Page<Map<String, Object>> page, @Param("packageName") String packageName,
|
||||
@Param("tenantId") String tenantId);
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrTaskchildDubiousFile;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 可疑文件夹 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 你的肉123
|
||||
* @since 2024-03-21
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrTaskchildDubiousFileMapper extends BaseMapper<OcrTaskchildDubiousFile> {
|
||||
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataDao;
|
||||
|
||||
import cn.jyjz.xiaoyao.ocr.dataobject.OcrUpuser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
/**
|
||||
* 数据持久化
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrUpuserMybatisDao extends BaseMapper<OcrUpuser> {
|
||||
}
|
||||
@ -1,114 +0,0 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
||||
|
||||
import cn.jyjz.xiaoyao.admin.dataobject.Tenant;
|
||||
import cn.jyjz.xiaoyao.common.base.jsonDomain.DateNotimeSerializer;
|
||||
import cn.jyjz.xiaoyao.common.base.jsonDomain.DateSerializer;
|
||||
import cn.jyjz.xiaoyao.common.mybatisplus.dto.BaseDto;
|
||||
import cn.jyjz.xiaoyao.common.base.util.requestFormat.SearchQuery;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.AbstractMap.SimpleEntry;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "图片地区管理", title = "图片地区管理")
|
||||
@TableName(value = "ocr_area")
|
||||
public class OcrArea implements BaseDto,java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 8088861709460050761L;
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "id",type = IdType.ASSIGN_ID)
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "创建人")
|
||||
@TableField(value="CREATEBY")
|
||||
private String createby;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonSerialize(using = DateSerializer.class)
|
||||
@TableField(value="CREATETIME")
|
||||
private Long createtime;
|
||||
|
||||
@Schema(description = "修改人")
|
||||
@TableField(value="UPDATEBY")
|
||||
private String updateby;
|
||||
|
||||
@Schema(description = "修改时间")
|
||||
@JsonSerialize(using = DateSerializer.class)
|
||||
@TableField(value="UPDATETIME")
|
||||
private Long updatetime;
|
||||
|
||||
@Schema(description = "租户ID")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="TENANTID")
|
||||
private Long tenantid;
|
||||
|
||||
@Schema(description = "省份主键")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="PROVINCEID")
|
||||
private Long provinceid;
|
||||
|
||||
@Schema(description = "地区名称")
|
||||
@TableField(value="CITYNAME")
|
||||
private String cityname;
|
||||
|
||||
@Schema(description = "排序字段")
|
||||
@TableField(value="REORDER")
|
||||
private Integer reorder;
|
||||
|
||||
//租户对象
|
||||
@TableField(exist = false)
|
||||
private Tenant tenant;
|
||||
|
||||
//保存当前登录用户的数据权限范围的搜索条件
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private SearchQuery searchQueryrolesShowleave;
|
||||
|
||||
@TableField(exist = false)
|
||||
@JsonIgnore
|
||||
private final Map<String,String> query = Stream.of(
|
||||
new SimpleEntry<>("listdept","deptid"),
|
||||
new SimpleEntry<>("ID","id"),
|
||||
new SimpleEntry<>("create_by","createBy"),
|
||||
new SimpleEntry<>("create_time","createTime"),
|
||||
new SimpleEntry<>("update_by","updateBy"),
|
||||
new SimpleEntry<>("update_time","updateTime"),
|
||||
new SimpleEntry<>("TENANTID","tenant_id"),
|
||||
new SimpleEntry<>("PID","pid"),
|
||||
new SimpleEntry<>("HASCHILD","has_child"),
|
||||
new SimpleEntry<>("TYPENAME","typename")
|
||||
)
|
||||
.collect(Collectors.toMap(SimpleEntry::getKey, SimpleEntry::getValue));
|
||||
@Override
|
||||
public String getQueryFiled(String filedname){
|
||||
String obj = null;
|
||||
if(null != query && query.size() > 0){
|
||||
obj = query.get(filedname);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 查重任务表
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-24
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("ocr_check_duplicate")
|
||||
@ApiModel(value="OcrCheckDuplicate对象", description="查重任务表")
|
||||
public class OcrCheckDuplicate implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "id",type = IdType.ASSIGN_ID)
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "查重任务编号")
|
||||
private String checkDuplicateNo;
|
||||
|
||||
@ApiModelProperty(value = "1.执行中 2.执行完毕 3.执行异常")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "完成时间")
|
||||
private Long completionTime;
|
||||
|
||||
@ApiModelProperty(value = "租户标识")
|
||||
private Long tenantId;
|
||||
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Long createTime;
|
||||
|
||||
@ApiModelProperty(value = "查重时的筛选条件")
|
||||
private String searchingJson;
|
||||
|
||||
@ApiModelProperty(value = "主图数量")
|
||||
private Integer pictureCount;
|
||||
|
||||
@ApiModelProperty(value = "0可用 1删除")
|
||||
private Integer isDelete;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package cn.jyjz.xiaoyao.ocr.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author author
|
||||
* @since 2024-03-24
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("ocr_check_duplicate_result")
|
||||
@ApiModel(value="OcrCheckDuplicateResult对象", description="")
|
||||
public class OcrCheckDuplicateResult implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "主键")
|
||||
@TableId(value = "id",type = IdType.ASSIGN_ID)
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@TableField(value="ID")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "图片id")
|
||||
private Long pictureId;
|
||||
|
||||
@ApiModelProperty(value = "当前图片与任务包其他图片比对结果")
|
||||
private String compareResultJson;
|
||||
|
||||
@ApiModelProperty(value = "查重任务id")
|
||||
private Long checkDuplicateId;
|
||||
|
||||
@ApiModelProperty(value = "当前图片在当前任务包下比对最高阈值")
|
||||
private Double maxSimilarity;
|
||||
|
||||
@ApiModelProperty(value = "阈值分组排序值,数值越低排序越靠前,")
|
||||
private Integer similarityGroupOrder;
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue