Commit 8fe69db9 authored by yff's avatar yff

升级产品基数

parent c5ee146c
...@@ -98,6 +98,10 @@ public class WebMvcConfig implements WebMvcConfigurer{ ...@@ -98,6 +98,10 @@ public class WebMvcConfig implements WebMvcConfigurer{
* 设置用户静态资源 * 设置用户静态资源
*/ */
if(StringUtils.isNotEmpty(resourceConfig.getStorePath())){ if(StringUtils.isNotEmpty(resourceConfig.getStorePath())){
if (!resourceConfig.getStorePath().endsWith("\\") &&
!resourceConfig.getStorePath().endsWith("/")) {
resourceConfig.seStorePath(resourceConfig.getStorePath()+"/");
}
registry.addResourceHandler(Constants.RES_FILE_PATH) registry.addResourceHandler(Constants.RES_FILE_PATH)
.addResourceLocations("file:" + resourceConfig.getStorePath()) .addResourceLocations("file:" + resourceConfig.getStorePath())
.resourceChain(false); .resourceChain(false);
......
...@@ -347,7 +347,9 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa ...@@ -347,7 +347,9 @@ public class KmesBoardServiceImpl extends BaseEditServiceImpl implements KmesBoa
PcslVO pcslVO = new PcslVO(); PcslVO pcslVO = new PcslVO();
Gpfkjg gpfkjg = gpfkcxDao.queryZGpfk(new Date()); Gpfkjg gpfkjg = gpfkcxDao.queryZGpfk(new Date());
if(gpfkjg != null){ if(gpfkjg != null){
pcslVO.setWgsl(gpfkjg.getFksl()==null?0.0:gpfkjg.getFksl()); double cpjs =commonService.getDoubleOptionValue(KwellParamEnum.DASHBOARD_CPJS.getId());
double fksl = gpfkjg.getFksl()==null?0.0:gpfkjg.getFksl();
pcslVO.setWgsl(NumberUtils.plus(cpjs,fksl));
} }
return pcslVO; return pcslVO;
} }
......
...@@ -9,6 +9,7 @@ import java.util.List; ...@@ -9,6 +9,7 @@ import java.util.List;
@GavelParams("901000000") @GavelParams("901000000")
public enum KwellParamEnum { public enum KwellParamEnum {
DASHBOARD_CPJS("KWELL007", "产品基数", "B", "产品基数", "S","", "0", "纯数字,例1、2"),
DASHBOARD_KGRQ("KWELL006", "安全开工日期", "B", "安全开工日期", "S","", "2022-03-11", "日期格式为XXXX-XX-XX (年-月-日)"), DASHBOARD_KGRQ("KWELL006", "安全开工日期", "B", "安全开工日期", "S","", "2022-03-11", "日期格式为XXXX-XX-XX (年-月-日)"),
DASHBOARD_ZPZT("KWELL002", "在制品装配工序设置", "B", "在制品装配工序设置", "E", DASHBOARD_ZPZT("KWELL002", "在制品装配工序设置", "B", "在制品装配工序设置", "E",
"select BZGX_ID as ID, BZGX_CODE as CODE,CONCAT(BZGX_NAME,'--',isnull(GZZX_NAME,'')) as NAME from BZGX left join GZZX on GZZX_ID = BZGX_GZZXID where isnull(BZGX_TYBZ,'N')='N' order by BZGX_CODE", "", ""), "select BZGX_ID as ID, BZGX_CODE as CODE,CONCAT(BZGX_NAME,'--',isnull(GZZX_NAME,'')) as NAME from BZGX left join GZZX on GZZX_ID = BZGX_GZZXID where isnull(BZGX_TYBZ,'N')='N' order by BZGX_CODE", "", ""),
......
...@@ -2,3 +2,4 @@ timer.enable=false ...@@ -2,3 +2,4 @@ timer.enable=false
server.isEnableSwagger=true server.isEnableSwagger=true
spring.session.store-type=none spring.session.store-type=none
reg.mode = dev reg.mode = dev
file.staticRealPath=D://DPKB/video
\ No newline at end of file
...@@ -284,5 +284,5 @@ ...@@ -284,5 +284,5 @@
} }
/* video */ /* video */
function getVideo(){ function getVideo(){
$("video").attr('src','getVideo') $("video").attr('src','/mes/api/file/v1.mp4')
} }
\ No newline at end of file
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