JtBusinessServiceImpl.java 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. package com.goafanti.business.service.impl;
  2. import java.util.ArrayList;
  3. import java.util.Date;
  4. import java.util.HashMap;
  5. import java.util.List;
  6. import java.util.Map;
  7. import java.util.UUID;
  8. import org.apache.poi.poifs.property.Child;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.beans.factory.annotation.Value;
  11. import org.springframework.stereotype.Service;
  12. import com.goafanti.business.bo.JtBusinessCategoryBo;
  13. import com.goafanti.business.bo.JtBusinessCategoryTree;
  14. import com.goafanti.business.bo.JtBusinessProjectResult;
  15. import com.goafanti.business.bo.makeMoneyCategoryListBo;
  16. import com.goafanti.business.service.JtBusinessService;
  17. import com.goafanti.comment.bo.CommentDetailResult;
  18. import com.goafanti.common.bo.MyCollection;
  19. import com.goafanti.common.dao.JtBusinessCategoryMapper;
  20. import com.goafanti.common.dao.JtBusinessProjectMapper;
  21. import com.goafanti.common.dao.JtCollectSearchMapper;
  22. import com.goafanti.common.dao.JtCommodityCommentMapper;
  23. import com.goafanti.common.dao.JtTagMapper;
  24. import com.goafanti.common.enums.BusinessCategoryModule;
  25. import com.goafanti.common.enums.ProjectAuditStatus;
  26. import com.goafanti.common.enums.UserAuthentication;
  27. import com.goafanti.common.enums.collectType;
  28. import com.goafanti.common.model.JtBusinessCategory;
  29. import com.goafanti.common.model.JtBusinessProject;
  30. import com.goafanti.common.model.JtCollectSearch;
  31. import com.goafanti.common.model.JtTag;
  32. import com.goafanti.common.utils.StringUtils;
  33. import com.goafanti.core.mybatis.BaseMybatisDao;
  34. import com.goafanti.core.mybatis.page.Pagination;
  35. import com.goafanti.core.shiro.token.TokenManager;
  36. import com.goafanti.order.enums.AuditState;
  37. @Service
  38. public class JtBusinessServiceImpl extends BaseMybatisDao<JtBusinessProjectMapper> implements JtBusinessService{
  39. @Autowired
  40. JtBusinessCategoryMapper jtBusinessCategoryMapper;
  41. @Autowired
  42. JtBusinessProjectMapper jtBusinessProjectMapper;
  43. @Autowired
  44. private JtTagMapper jtTagMapper;
  45. @Autowired
  46. private JtCommodityCommentMapper jtCommodityCommentMapper;
  47. @Value(value="${collect_flag}")
  48. private Boolean collectFlag ;
  49. @Autowired
  50. private JtCollectSearchMapper jtCollectSearchMapper;
  51. @Override
  52. public JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer, String name) {
  53. // TODO Auto-generated method stub
  54. return jtBusinessCategoryMapper.getBusinessCategoryByLayerAndName(layer, name);
  55. }
  56. @Override
  57. public List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size) {
  58. // TODO Auto-generated method stub
  59. return jtBusinessCategoryMapper.getBusinessCategoryBySuperId(id,size);
  60. }
  61. @Override
  62. public List<JtBusinessProject> getBusinessProjectByCategoryId(String id,Integer size,Integer isHot) {
  63. // TODO Auto-generated method stub
  64. return jtBusinessProjectMapper.getBusinessProjectByCategoryId(id,size,isHot);
  65. }
  66. @Override
  67. public JtBusinessProjectResult getBusinessProjectDetail(String id) {
  68. String uid=TokenManager.getUserId();
  69. JtBusinessProjectResult j=jtBusinessProjectMapper.selectByPrimaryKeyWithModule(id,uid);
  70. j.setCommentDetailResult(jtCommodityCommentMapper.selectByProjectId(id));
  71. j.setTags(jtTagMapper.selectProjectTag(id));
  72. if (StringUtils.isBlank(j.getAdvertisement()))j.setAdvertisement("暂无描述");
  73. return j;
  74. }
  75. @Override
  76. public JtBusinessCategoryTree getCategoryTree(String id) {
  77. // TODO Auto-generated method stub
  78. return jtBusinessCategoryMapper.getCategoryTree(id);
  79. }
  80. public List<JtBusinessCategoryBo>getCategoryBoList(Integer module){
  81. return jtBusinessCategoryMapper.getCategoryBoList(module);
  82. }
  83. /*
  84. * 登录用户0 项目列表页1 privateProject
  85. * ownerId优先级高于privateProject
  86. *
  87. * ordetType---0 发布时间 1价格 2成交量
  88. * orderSort ----0大->小 1小->大
  89. *
  90. *
  91. * */
  92. @SuppressWarnings("unchecked")
  93. @Override
  94. public Pagination<JtBusinessProjectResult> getProjects(String tag,String topId, String secondId, String name, Integer pageSize,
  95. Integer pageNo,Integer privateProject,Integer auditStatus,Integer module,Integer isHot,Integer orderType,Integer orderSort,String ownerId) {
  96. if(orderType==null)orderType=0;
  97. if(orderSort==null)orderSort=0;
  98. // TODO Auto-generated method stub
  99. if (pageNo == null || pageNo < 0) {
  100. pageNo = 1;
  101. }
  102. if (pageSize == null || pageSize < 0 ) {
  103. pageSize = 10;
  104. }
  105. Map<String, Object> params=disposeParams(topId, secondId, name);
  106. if(auditStatus!=null ) {
  107. params.put("auditStatus", auditStatus);
  108. }
  109. if(privateProject!=null && privateProject ==0)
  110. params.put("ownerId", TokenManager.getUserId());
  111. if(StringUtils.isNotBlank(ownerId)) {
  112. params.put("ownerId", ownerId);
  113. }
  114. if(module!=null)params.put("module", module);
  115. if(isHot!=null)params.put("isHot", isHot);
  116. if(orderType!=null)params.put("orderType", orderType);
  117. if(orderSort!=null)params.put("orderSort", orderSort);
  118. if(StringUtils.isNotBlank(tag))params.put("tag", tag);
  119. Pagination<JtBusinessProjectResult> pagination=(Pagination<JtBusinessProjectResult>)findPage("findJtBusinessProjectByPage","findJtBusinessCountByPage",params,pageNo,pageSize);
  120. List<JtBusinessProjectResult> list =(List<JtBusinessProjectResult>) pagination.getList();
  121. for (JtBusinessProjectResult j : list) {
  122. if (StringUtils.isBlank(j.getAdvertisement()))j.setAdvertisement("暂无描述");
  123. }
  124. return pagination;
  125. }
  126. private Map<String, Object> disposeParams(String topId, String secondId, String name) {
  127. Map<String, Object> params = new HashMap<>();
  128. if (StringUtils.isNotBlank(topId)) {
  129. params.put("topId", topId);
  130. }
  131. if (StringUtils.isNotBlank(secondId)) {
  132. params.put("secondId", secondId);
  133. }
  134. if (StringUtils.isNotBlank(name)) {
  135. params.put("name", name);
  136. }
  137. return params;
  138. }
  139. @Override
  140. public int insertCategory(JtBusinessCategory jtBusinessCategory) {
  141. // TODO Auto-generated method stub
  142. // jtBusinessCategoryMapper.autoIncreaseSort(jtBusinessCategory.getLayer(),jtBusinessCategory.getSort());
  143. if(jtBusinessCategory.getSuperId()!=null && jtBusinessCategory.getLayer().intValue()==1 && jtBusinessCategory.getSuperId().length()>0)return -2;
  144. //String number="BC";
  145. String number=BusinessCategoryModule.getStatus(jtBusinessCategory.getModule()).toString();
  146. if(jtBusinessCategory.getLayer().intValue()==2) {
  147. //2层,先加第一层
  148. //找到当前品类父级品类
  149. JtBusinessCategory sp=jtBusinessCategoryMapper.selectByPrimaryKey(jtBusinessCategory.getSuperId());
  150. if(sp==null || sp.getLayer()!=1) {
  151. //找到的父级品类层数不是1 或者未找到
  152. return -2;
  153. }
  154. //加前层
  155. //父级品类层数为1的情况下 第一层编号为父级sort序号
  156. int size1=sp.getSort();
  157. if(size1>99)return -1;
  158. if(size1<10)number+="0";
  159. number+=size1;
  160. }
  161. //加层
  162. int size2;
  163. //通过父级id获取当前层列表
  164. List<JtBusinessCategory>businessCategories =jtBusinessCategoryMapper.getBusinessCategoryBySuperId(jtBusinessCategory.getSuperId(), null);
  165. //列表为0,当前层编号size2设置为1,大于0 设置为当前最大sort+1
  166. if(businessCategories.size()>0)
  167. size2=businessCategories.get(businessCategories.size()-1).getSort()+1;
  168. else size2=1;
  169. //每层最多99个
  170. if(size2>99)return -1;
  171. //增加0
  172. if(size2<10)number+="0";
  173. //完成编号
  174. number+=size2;
  175. jtBusinessCategory.setNumber(number);
  176. //设置sort序号
  177. jtBusinessCategory.setSort(size2);
  178. jtBusinessCategory.setCreateTime(new Date());
  179. jtBusinessCategory.setId(UUID.randomUUID().toString());
  180. return jtBusinessCategoryMapper.insertSelective(jtBusinessCategory);
  181. }
  182. @Override
  183. public int deleteCategoryById(String id) {
  184. // TODO Auto-generated method stub
  185. //查找品类
  186. JtBusinessCategory sp=jtBusinessCategoryMapper.selectByPrimaryKey(id);
  187. //查找子品类 存在子品类不允许删除
  188. List<JtBusinessCategory> chidren=jtBusinessCategoryMapper.getBusinessCategoryBySuperId(sp.getId(), null);
  189. if(chidren.size()>0) {
  190. return -1;
  191. }
  192. List<JtBusinessProject> childrenProject=jtBusinessProjectMapper.getBusinessProjectByCategoryId(id, 100,null);
  193. if(childrenProject!= null && childrenProject.size()>0) {
  194. return -1;
  195. }
  196. return jtBusinessCategoryMapper.deleteByPrimaryKey(id);
  197. }
  198. @Override
  199. public JtBusinessCategory getCategoryById(String id) {
  200. // TODO Auto-generated method stub
  201. return jtBusinessCategoryMapper.selectByPrimaryKey(id);
  202. }
  203. @Override
  204. public int updateCategory(JtBusinessCategory jtBusinessCategory) {
  205. // 层级不会变
  206. // TODO Auto-generated method stub
  207. //修改不影响结构的数据
  208. JtBusinessCategory category = new JtBusinessCategory();
  209. category.setId(jtBusinessCategory.getId());
  210. category.setImgUrl(jtBusinessCategory.getImgUrl());
  211. category.setName(jtBusinessCategory.getName());
  212. category.setSummary(jtBusinessCategory.getSummary());
  213. category.setPcIndex(jtBusinessCategory.getPcIndex());
  214. category.setAppIndex(jtBusinessCategory.getAppIndex());
  215. jtBusinessCategoryMapper.updateByPrimaryKeySelective(category);
  216. //是否修改了模块类别
  217. boolean moduleChange = null != jtBusinessCategory.getModule() ? !jtBusinessCategory.getModule().equals(jtBusinessCategory.getNextModule()) : false;
  218. //是否有上级id,并且改变了上级id
  219. boolean existSuperId = StringUtils.isNotBlank(jtBusinessCategory.getSuperId()) ? !jtBusinessCategory.getSuperId().equals(jtBusinessCategory.getOldSuperId()) : false;
  220. //获得更改前的自己的number
  221. String oldNumber = jtBusinessCategoryMapper.selectByPrimaryKey(jtBusinessCategory.getId()).getNumber();
  222. String number = null;
  223. //一级更换模块
  224. if(moduleChange && !existSuperId){
  225. jtBusinessCategory.setLayer(1);
  226. //根据模块获得字母前缀
  227. String prefix = BusinessCategoryModule.getStatus(jtBusinessCategory.getNextModule()).toString();
  228. jtBusinessCategory.setNumber(prefix + "__");
  229. number = prefix;
  230. category.setModule(jtBusinessCategory.getNextModule());
  231. jtBusinessCategory.setModule(jtBusinessCategory.getNextModule());
  232. }
  233. //存在上级说明是二级修改到不同模块的某品类中
  234. if(existSuperId){
  235. JtBusinessCategory b = jtBusinessCategoryMapper.selectByPrimaryKey(jtBusinessCategory.getSuperId());
  236. category.setModule(b.getModule());
  237. jtBusinessCategory.setLayer(2);
  238. jtBusinessCategory.setModule(b.getModule());
  239. number = b.getNumber();
  240. //获得前缀
  241. String prefix = BusinessCategoryModule.getStatus(b.getModule()).toString();
  242. number = prefix + number.substring(prefix.length()) ;
  243. jtBusinessCategory.setNumber(number + "__");
  244. category.setSuperId(jtBusinessCategory.getSuperId());//上级id也要修改
  245. }
  246. if((!moduleChange && !existSuperId) && !existSuperId){
  247. return 1;
  248. }
  249. //获得当前更改后模块的最大值
  250. String newNumber = jtBusinessCategoryMapper.getCurrentMaxNumber(jtBusinessCategory);
  251. Integer n = null != newNumber ? Integer.valueOf(newNumber.substring(newNumber.length() - 2)) : 0;
  252. if(n < 99){
  253. //将最大值加一
  254. n += 1;
  255. newNumber = number + (n<10? "0"+ n : n);
  256. } else {
  257. newNumber = jtBusinessCategoryMapper.getCurrentMaxNumber(jtBusinessCategory);
  258. n = Integer.valueOf(newNumber.substring(newNumber.length() - 2));
  259. if(n == 1 || n == 01){
  260. return -1;
  261. }
  262. //将最小值减一
  263. n -= 1;
  264. newNumber = number + (n<10? "0"+ n : n);
  265. }
  266. //修改自己和自己下级的前缀
  267. jtBusinessCategory.setLayer(newNumber.length() + 1);//截取前缀的长度位置
  268. jtBusinessCategory.setNumber(oldNumber + "%");
  269. jtBusinessCategory.setName(newNumber );
  270. //将模块前面字母替换
  271. jtBusinessCategoryMapper.updateNumberPrefix(jtBusinessCategory);
  272. //得到sort
  273. category.setSort(n);
  274. //修改自己的number
  275. category.setNumber(newNumber);
  276. //修改自己的模块
  277. jtBusinessCategoryMapper.updateByPrimaryKeySelective(category);
  278. return 1;//jtBusinessCategoryMapper.updateByPrimaryKeySelective(jtBusinessCategory);
  279. }
  280. private Map<String, Object> disposeCategoryParams(String name,Integer layer ) {
  281. Map<String, Object> params = new HashMap<>();
  282. if (layer!=null) {
  283. params.put("layer", layer);
  284. }
  285. if (StringUtils.isNotBlank(name)) {
  286. params.put("name", name);
  287. }
  288. return params;
  289. }
  290. @Override
  291. public int insertProject(JtBusinessProject jtBusinessProject) {
  292. // TODO Auto-generated method stub
  293. jtBusinessProject.setCreateTime(new Date());
  294. jtBusinessProject.setId(UUID.randomUUID().toString());
  295. jtBusinessProject.setOwnerId(TokenManager.getUserId());
  296. jtBusinessProject.setAuditStatus(ProjectAuditStatus.CREATE.getCode());
  297. List<JtBusinessProject>projects=jtBusinessProjectMapper.findProjectOrderByNumber();
  298. int cSize = 1;
  299. if(projects!=null && projects.size()>0)
  300. {
  301. String number=projects.get(projects.size()-1).getNumber();
  302. if(number!=null && number.length()==6)
  303. {
  304. String nbString=number.substring(2);
  305. try {
  306. cSize=Integer.parseInt(nbString)+1;
  307. cSize=Math.max(cSize, projects.size()+1);
  308. }catch (Exception e) {
  309. // TODO: handle exception
  310. return -1;
  311. }
  312. }
  313. else cSize=1;
  314. }
  315. else cSize=1;
  316. String nbString="BP";
  317. String sizeString="000"+cSize;
  318. sizeString=sizeString.substring(sizeString.length()-4);
  319. nbString+=sizeString;
  320. jtBusinessProject.setNumber(nbString);
  321. jtBusinessProjectMapper.insertSelective(jtBusinessProject);
  322. return 1;
  323. }
  324. @Override
  325. public int deleteProjectById(String id) {
  326. return jtBusinessProjectMapper.deleteByPrimaryKey(id);
  327. }
  328. @Override
  329. public int updateProject(JtBusinessProject jtBusinessProject) {
  330. jtBusinessProjectMapper.updateByPrimaryKeySelective(jtBusinessProject);
  331. if(StringUtils.isNotBlank(jtBusinessProject.getTag())){
  332. String str=jtBusinessProject.getTag();
  333. String[] strs = str.split(",");
  334. jtTagMapper.deleteByProjectId(jtBusinessProject.getId());
  335. for (String s : strs) {
  336. jtTagMapper.insertProjectTag(UUID.randomUUID().toString(),s,jtBusinessProject.getId());
  337. }
  338. }
  339. return 1;
  340. }
  341. @Override
  342. public List<JtBusinessProject> getProjectsLimit(Integer size) {
  343. // TODO Auto-generated method stub
  344. return jtBusinessProjectMapper.findProjectOrderByNumber();
  345. }
  346. @Override
  347. public int deleteByIdAndUid(String id) {
  348. // TODO Auto-generated method stub
  349. if(TokenManager.getUserId()==null)return -1;
  350. return jtBusinessProjectMapper.deleteByIdAndUid(id,TokenManager.getUserId());
  351. }
  352. @SuppressWarnings("unchecked")
  353. @Override
  354. public Pagination<JtBusinessProject> listProjectIInterestedIn(Integer pageNo,Integer pageSize) {
  355. // TODO Auto-generated method stub
  356. if (pageNo == null || pageNo < 0) {
  357. pageNo = 1;
  358. }
  359. if (pageSize == null || pageSize < 0 || pageSize > 10) {
  360. pageSize = 10;
  361. }
  362. Map<String,Object> params=new HashMap<String,Object>();
  363. params.put("uid", TokenManager.getUserId());
  364. //params.put("uid", "1180fa62-7c42-44be-bc41-5583814d69f4");
  365. return (Pagination<JtBusinessProject>) findPage("findInterestedProjcet", "findInterestedProjcetCount", params, pageNo, pageSize);
  366. }
  367. @SuppressWarnings("unchecked")
  368. @Override
  369. public Pagination<MyCollection> myCollectionProject(Integer pageNo, Integer pageSize) {
  370. if (pageNo == null || pageNo < 0) pageNo = 1;
  371. if (pageSize == null || pageSize < 0 || pageSize > 10) pageSize = 10;
  372. Map<String,Object> params=new HashMap<String,Object>();
  373. params.put("uid", TokenManager.getUserId());
  374. // params.put("uid", "1180fa62-7c42-44be-bc41-5583814d69f4");
  375. return (Pagination<MyCollection>) findPage("myCollectionProjectList", "myCollectionProjectCount", params, pageNo, pageSize);
  376. }
  377. @Override
  378. public List<makeMoneyCategoryListBo> makeMoneyCategoryList() {
  379. List<makeMoneyCategoryListBo> l=new ArrayList<makeMoneyCategoryListBo>();
  380. //所属模块 0科技服务 1知识产权服务 2高新技术企业服务 3军民融合 4科技咨询 5科技项目
  381. l.add(new makeMoneyCategoryListBo(2,"高新技术企业服务"));
  382. l.add(new makeMoneyCategoryListBo(3,"军民融合"));
  383. l.add(new makeMoneyCategoryListBo(4,"科技咨询"));
  384. l.add(new makeMoneyCategoryListBo(5,"科技项目"));
  385. for (makeMoneyCategoryListBo m : l) {
  386. m.setList(getCategoryBoList(m.getModule()));
  387. }
  388. return l;
  389. }
  390. @SuppressWarnings("unchecked")
  391. @Override
  392. public Pagination<MyCollection> recommendedApplication(Integer type,Integer pageNo, Integer pageSize) {
  393. Map<String,Object> params=new HashMap<String,Object>();
  394. if (null!=type)params.put("type", type);
  395. return (Pagination<MyCollection>) findPage("recommendedApplicationList", "recommendedApplicationCount", params, pageNo, pageSize);
  396. }
  397. @Override
  398. public List<JtBusinessCategory> getCategoryByModule(Integer module) {
  399. return jtBusinessCategoryMapper.getCategoryByModule(module);
  400. }
  401. @Override
  402. public List<JtBusinessProject> getKJListByIds(Integer module,
  403. Integer isHost, Integer size) {
  404. return jtBusinessProjectMapper.getKJListByIds( module, isHost, size);
  405. }
  406. @Override
  407. public List<JtBusinessProject> getModuleByName(String name, Integer isHost,
  408. Integer size) {
  409. return jtBusinessProjectMapper.getModuleByName(name, isHost, size);
  410. }
  411. @Override
  412. public int updateProjectMoveUp(String id) {
  413. JtBusinessCategory j1=jtBusinessCategoryMapper.selectByPrimaryKey(id);
  414. JtBusinessCategory j2=jtBusinessCategoryMapper.selectFirstLevel(id,j1.getModule(),j1.getSuperId(),0);
  415. if(null==j2){
  416. return -1;
  417. }
  418. Integer i=j1.getSort();
  419. JtBusinessCategory jtBusinessCategory=new JtBusinessCategory();
  420. jtBusinessCategory.setId(j1.getId());
  421. jtBusinessCategory.setSort(j2.getSort());
  422. jtBusinessCategoryMapper.updateByPrimaryKeySelective(jtBusinessCategory);
  423. jtBusinessCategory.setId(j2.getId());
  424. jtBusinessCategory.setSort(i);
  425. jtBusinessCategoryMapper.updateByPrimaryKeySelective(jtBusinessCategory);
  426. return 1;
  427. }
  428. @Override
  429. public int updateProjectSetTop(String id) {
  430. JtBusinessCategory j1=jtBusinessCategoryMapper.selectByPrimaryKey(id);
  431. JtBusinessCategory j2=jtBusinessCategoryMapper.selectFirstLevel(id,j1.getModule(),j1.getSuperId(),1);
  432. if(null==j2){
  433. return -1;
  434. }
  435. Integer i=j1.getSort();
  436. JtBusinessCategory jtBusinessCategory=new JtBusinessCategory();
  437. jtBusinessCategory.setId(j1.getId());
  438. jtBusinessCategory.setSort(j2.getSort());
  439. jtBusinessCategoryMapper.updateByPrimaryKeySelective(jtBusinessCategory);
  440. jtBusinessCategory.setId(j2.getId());
  441. jtBusinessCategory.setSort(i);
  442. jtBusinessCategoryMapper.updateByPrimaryKeySelective(jtBusinessCategory);
  443. return 1;
  444. }
  445. @Override
  446. public void addJtCollectSearch(JtBusinessProject jtBusinessProject) {
  447. if(collectFlag){
  448. JtCollectSearch r=new JtCollectSearch();
  449. r.setFromTable(collectType.PROJECT.getDesc());
  450. r.setKeyword(jtBusinessProject.getKeyword());
  451. r.setTitle(jtBusinessProject.getName());
  452. r.setRowId(jtBusinessProject.getId());
  453. jtCollectSearchMapper.insertSelective(r);
  454. }
  455. }
  456. @Override
  457. public void updateJtCollectSearch(String id) {
  458. if(collectFlag)jtCollectSearchMapper.deleteByrowId(id);
  459. }
  460. }