Commit 5177dd64 by 吴迪

【新增】数据清洗

parent 45691f25
...@@ -510,3 +510,10 @@ ALTER TABLE [dbo].[QRTZ_TRIGGERS] ADD ...@@ -510,3 +510,10 @@ ALTER TABLE [dbo].[QRTZ_TRIGGERS] ADD
) )
GO GO
ALTER TABLE picture
ALTER COLUMN Pic_file varchar(200);
ALTER TABLE product
ALTER COLUMN graph varchar(200);
\ No newline at end of file
...@@ -105,4 +105,15 @@ public class CasesController { ...@@ -105,4 +105,15 @@ public class CasesController {
return R.ok(); return R.ok();
} }
/**
* 信息
*/
@RequestMapping("api/getDetailInfo")
// @RequiresPermissions("manage:partners:info")
public R getDetailInfo(@RequestBody Map<String, String> params){
CasesEntity casesEntity = casesService.getById(params.get("id"));
return R.ok().put("data", casesEntity);
}
} }
...@@ -5,6 +5,7 @@ import java.util.List; ...@@ -5,6 +5,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.office.modules.app.annotation.Login; import io.office.modules.app.annotation.Login;
import io.office.modules.manage.entity.DocEntity; import io.office.modules.manage.entity.DocEntity;
...@@ -100,7 +101,6 @@ public class DocController extends AbstractController { ...@@ -100,7 +101,6 @@ public class DocController extends AbstractController {
return R.ok(); return R.ok();
} }
@Login @Login
@PostMapping("/api/downLoad") @PostMapping("/api/downLoad")
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList") // @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
...@@ -120,5 +120,24 @@ public class DocController extends AbstractController { ...@@ -120,5 +120,24 @@ public class DocController extends AbstractController {
} }
@Login
@PostMapping("/api/list")
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public R listPage(@RequestBody Map<String, Object> params) {
try {
QueryWrapper<DocEntity> docEntityQueryWrapper = new QueryWrapper<>();
docEntityQueryWrapper.eq("category","1");
docEntityQueryWrapper.eq("status","1");
docEntityQueryWrapper.orderByDesc("id");
IPage<NewsEntity> pageData = docService.page(new Page(Integer.parseInt(params.get("page").toString()),Integer.parseInt(params.get("size").toString()) ), docEntityQueryWrapper);
return R.ok().put("data", new PageUtils(pageData));
} catch (Exception e) {
log.error("get4PartyTopNews error: {}", e);
return R.error(e.getMessage());
}
}
} }
...@@ -33,9 +33,9 @@ public class DomainListController { ...@@ -33,9 +33,9 @@ public class DomainListController {
@RequestMapping("/api/list") @RequestMapping("/api/list")
// @RequiresPermissions("manage:doc:list") // @RequiresPermissions("manage:doc:list")
public R list(@RequestParam Map<String, Object> params) { public R list() {
return R.ok().put("data", domainListProperties.getList()); return R.ok().put("data", domainListProperties.getDomain());
} }
......
...@@ -121,13 +121,15 @@ public class EanUpcController { ...@@ -121,13 +121,15 @@ public class EanUpcController {
/** /**
* 详情 * 详情
* @param eanUpcEntity * @param
* @return * @return
*/ */
@Login @Login
@RequestMapping("/api/getDetailById") @RequestMapping("/api/getDetailById")
public R getDetailById(@RequestBody EanUpcEntity eanUpcEntity) { public R getDetailById(@RequestBody Map<String, String> params) {
EanUpcEntity eanUpcEntity = new EanUpcEntity();
eanUpcEntity.setFId(params.get("fId"));
eanUpcEntity.setCode(params.get("code"));
return R.ok().put("data",eanUpcService.getDetailById(eanUpcEntity)); return R.ok().put("data",eanUpcService.getDetailById(eanUpcEntity));
} }
......
...@@ -130,4 +130,15 @@ public class PartnersController extends AbstractController { ...@@ -130,4 +130,15 @@ public class PartnersController extends AbstractController {
} }
/**
* 信息
*/
@RequestMapping("api/getDetailInfo")
// @RequiresPermissions("manage:partners:info")
public R getDetailInfo(@RequestBody Map<String, String> params){
PartnersEntity partners = partnersService.getById(params.get("id"));
return R.ok().put("data", partners);
}
} }
...@@ -97,7 +97,8 @@ public class PlanBranchController { ...@@ -97,7 +97,8 @@ public class PlanBranchController {
QueryWrapper<PlanBranchEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<PlanBranchEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("classnum",planBranch.getClassnum()); queryWrapper.eq("classnum",planBranch.getClassnum());
queryWrapper.orderByDesc("id"); queryWrapper.orderByAsc("id");
return R.ok().put("data",planBranchService.list(queryWrapper)); return R.ok().put("data",planBranchService.list(queryWrapper));
} }
......
...@@ -3,7 +3,7 @@ package io.office.modules.manage.entity; ...@@ -3,7 +3,7 @@ package io.office.modules.manage.entity;
import lombok.Data; import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.List;
/** /**
* *
...@@ -13,7 +13,7 @@ import java.util.List; ...@@ -13,7 +13,7 @@ import java.util.List;
* @date 10:40 2021/12/28 * @date 10:40 2021/12/28
*/ */
@Data @Data
@ConfigurationProperties(prefix = "gs1.domain") //指定ly.upload开头的变量 @ConfigurationProperties(prefix = "gs1") //指定ly.upload开头的变量
public class DomainListProperties { public class DomainListProperties {
private List<String> list; private String domain;
} }
...@@ -22,8 +22,7 @@ public class EanUpcEntity implements Serializable { ...@@ -22,8 +22,7 @@ public class EanUpcEntity implements Serializable {
/** /**
* $column.comments * $column.comments
*/ */
@TableId private String fId;
private Integer fId;
/** /**
* $column.comments * $column.comments
*/ */
......
...@@ -43,6 +43,7 @@ public class CasesServiceImpl extends ServiceImpl<CasesDao, CasesEntity> impleme ...@@ -43,6 +43,7 @@ public class CasesServiceImpl extends ServiceImpl<CasesDao, CasesEntity> impleme
QueryWrapper<CasesEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<CasesEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("status", "1"); queryWrapper.eq("status", "1");
queryWrapper.gt("levels", "0"); queryWrapper.gt("levels", "0");
queryWrapper.orderByDesc("id","levels","showtime","updatedate");
if (params.get("title") != null && StringUtils.isNotBlank(params.get("title").toString())) { if (params.get("title") != null && StringUtils.isNotBlank(params.get("title").toString())) {
queryWrapper.like("title", params.get("title").toString()); queryWrapper.like("title", params.get("title").toString());
} }
......
...@@ -86,7 +86,7 @@ public class PartnersServiceImpl extends ServiceImpl<PartnersDao, PartnersEntity ...@@ -86,7 +86,7 @@ public class PartnersServiceImpl extends ServiceImpl<PartnersDao, PartnersEntity
QueryWrapper<PartnersEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<PartnersEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("status", "1"); queryWrapper.eq("status", "1");
queryWrapper.gt("levels", "0"); queryWrapper.gt("levels", "0");
queryWrapper.orderByDesc("id","levels","updatedate");
if (params.get("firmname") != null && StringUtils.isNotBlank(params.get("firmname").toString())) { if (params.get("firmname") != null && StringUtils.isNotBlank(params.get("firmname").toString())) {
queryWrapper.like("firmname", params.get("firmname").toString()); queryWrapper.like("firmname", params.get("firmname").toString());
} }
......
package io.office.modules.manage.transfer;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
*
* 
 @description:
*
* @author wudi
* @date 16:48 2021/12/30
*/
@Data
@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "directory")
public class DirectoryMap {
private Map<String,String> replaceMap;
}
...@@ -89,9 +89,15 @@ searchDayCountLimitSwitch: 10 ...@@ -89,9 +89,15 @@ searchDayCountLimitSwitch: 10
#域名 #域名
gs1: gs1:
domain: domain: http://81.68.189.225:8080
list:
- http://81.68.189.225
- http://81.68.189.225
#map注入
directory:
replaceMap:
"news/article.aspx": News/msg
"News/article.aspx": News/msg
"news/article_admin.aspx": News/msg
"News/VideoDetails.aspx": News/msgVideo
"/Org/Intro.aspx": /Org/Intro
"News/PicNews.aspx": News/msg
"service/notice/article.aspx": News/NoticeArticle
...@@ -87,8 +87,19 @@ searchDayLimitSwitch: 0 ...@@ -87,8 +87,19 @@ searchDayLimitSwitch: 0
searchDayCountLimitSwitch: 10 searchDayCountLimitSwitch: 10
#域名 #域名
#域名
gs1: gs1:
domain: domain: http://192.168.0.77:80
list:
- http://192.168.0.77
- http://192.168.0.77 directory:
\ No newline at end of file replaceMap:
news/article.aspx: News/msg
News/article.aspx: News/msg
news/article_admin.aspx: News/msg
News/VideoDetails.aspx: News/msgVideo
/Org/Intro.aspx: /Org/Intro
News/PicNews.aspx: News/msg
service/notice/article.aspx: News/NoticeArticle
...@@ -14,7 +14,7 @@ spring: ...@@ -14,7 +14,7 @@ spring:
name: GS1OfficeWebSit name: GS1OfficeWebSit
# 环境 dev|test|prod # 环境 dev|test|prod
profiles: profiles:
active: dev active: test
# jackson时间格式化 # jackson时间格式化
jackson: jackson:
time-zone: GMT+8 time-zone: GMT+8
...@@ -70,3 +70,7 @@ logging: ...@@ -70,3 +70,7 @@ logging:
org: org:
mybatis: debug mybatis: debug
dao: debug dao: debug
...@@ -87,8 +87,8 @@ ...@@ -87,8 +87,8 @@
LEFT JOIN ean_upc b ON a.f_id = b.f_id LEFT JOIN ean_upc b ON a.f_id = b.f_id
LEFT JOIN center_outer.dbo.bulletin c ON c.code = b.code LEFT JOIN center_outer.dbo.bulletin c ON c.code = b.code
WHERE WHERE
a.f_id = '6' a.f_id = #{eanUpcEntity.fId}
AND b.code = '6901009' AND b.code = #{eanUpcEntity.code}
ORDER BY ORDER BY
c.Id DESC c.Id DESC
</select> </select>
......
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