Commit b49f67ca by 宋祥
parents dacc9c28 1f338b73
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<select id="query" resultClass="com.baosight.hpjx.hp.kc.domain.HPKC010"> <select id="query" resultClass="com.baosight.hpjx.hp.kc.domain.HPKC010">
SELECT <include refid="column"/> SELECT <include refid="column"/>
FROM hpjx.T_HPKC010 FROM hpjx.T_HPKC010
WHERE 1=1 WHERE 1=1 AND AMOUNT!=0
<include refid="condition"/> <include refid="condition"/>
<include refid="customCondition"/> <include refid="customCondition"/>
<dynamic prepend="ORDER BY"> <dynamic prepend="ORDER BY">
......
...@@ -4,6 +4,7 @@ import cn.hutool.core.util.PageUtil; ...@@ -4,6 +4,7 @@ import cn.hutool.core.util.PageUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baosight.hpjx.common.DdynamicEnum; import com.baosight.hpjx.common.DdynamicEnum;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoBase;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.core.security.UserSessionUtils; import com.baosight.hpjx.core.security.UserSessionUtils;
import com.baosight.hpjx.hp.constant.HPConstant; import com.baosight.hpjx.hp.constant.HPConstant;
...@@ -128,6 +129,7 @@ public class ServiceHPMT002 extends ServiceBase { ...@@ -128,6 +129,7 @@ public class ServiceHPMT002 extends ServiceBase {
} }
Map sqlMap = new HashMap(); Map sqlMap = new HashMap();
sqlMap.put("companyCode", companyCode); sqlMap.put("companyCode", companyCode);
sqlMap.put("queryMonth", queryMonth);
List<Map> rows = this.dao.query("HPMT002.pmQuality", sqlMap); List<Map> rows = this.dao.query("HPMT002.pmQuality", sqlMap);
EiInfo outInfo = new EiInfo(); EiInfo outInfo = new EiInfo();
EiBlock eiBlock = new EiBlock(EiConstant.resultBlock); EiBlock eiBlock = new EiBlock(EiConstant.resultBlock);
...@@ -183,6 +185,13 @@ public class ServiceHPMT002 extends ServiceBase { ...@@ -183,6 +185,13 @@ public class ServiceHPMT002 extends ServiceBase {
if (StrUtil.isEmpty(companyCode)) { if (StrUtil.isEmpty(companyCode)) {
outInfo.setMsg("账号异常"); outInfo.setMsg("账号异常");
} }
String ROOT_PATH= "";
Map hashMap = new HashMap();
hashMap.put("fkey","docRootDir");
List<Map> queryPath = DaoBase.getInstance().query("EDCC03.query",hashMap);
if (queryPath.get(0).get("fvalue")!=null) {
ROOT_PATH= (String) queryPath.get(0).get("fvalue");
}
Map Map = new HashMap(); Map Map = new HashMap();
Map.put("checkId", id); Map.put("checkId", id);
Map.put("docType",1); Map.put("docType",1);
...@@ -194,7 +203,7 @@ public class ServiceHPMT002 extends ServiceBase { ...@@ -194,7 +203,7 @@ public class ServiceHPMT002 extends ServiceBase {
String docId = hpzl001A.getDocId(); String docId = hpzl001A.getDocId();
dirId.put("docId", docId); dirId.put("docId", docId);
List<Map> query = this.dao.query("HPMT002.queryFile", dirId); List<Map> query = this.dao.query("HPMT002.queryFile", dirId);
File file = new File(UploadUtils.ROOT_PATH + "/A/" + query.get(0).get("CHG_NAME")); File file = new File(ROOT_PATH + "/A/" + query.get(0).get("CHG_NAME"));
BufferedImage bf = ImageIO.read(file); BufferedImage bf = ImageIO.read(file);
String imgBase64 = UploadUtils.imageToBase64(bf); String imgBase64 = UploadUtils.imageToBase64(bf);
imgList.add(imgBase64); imgList.add(imgBase64);
...@@ -211,7 +220,7 @@ public class ServiceHPMT002 extends ServiceBase { ...@@ -211,7 +220,7 @@ public class ServiceHPMT002 extends ServiceBase {
String docId = hpzl001A.getDocId(); String docId = hpzl001A.getDocId();
dirId.put("docId", docId); dirId.put("docId", docId);
List<Map> query = this.dao.query("HPMT002.queryFile", dirId); List<Map> query = this.dao.query("HPMT002.queryFile", dirId);
File file = new File(UploadUtils.ROOT_PATH + "/A/" + query.get(0).get("CHG_NAME")); File file = new File(ROOT_PATH+ "/A/" + query.get(0).get("CHG_NAME"));
BufferedImage bf = ImageIO.read(file); BufferedImage bf = ImageIO.read(file);
String imgBase64 = UploadUtils.imageToBase64(bf); String imgBase64 = UploadUtils.imageToBase64(bf);
imgList2.add(imgBase64); imgList2.add(imgBase64);
......
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
<select id="queryFvalue" resultClass="java.util.HashMap"> <select id="queryFvalue" resultClass="java.util.HashMap">
SELECT FVALUE AS "fvalue" FROM iplat.TEDCC03 WHERE FKEY='docRootDir' SELECT DISTINCT FVALUE AS "fvalue" FROM iplat.TEDCC03 WHERE FKEY='docRootDir'
</select> </select>
......
package com.baosight.hpjx.hp.mt.untils; package com.baosight.hpjx.hp.mt.untils;
import com.baosight.hpjx.core.dao.DaoBase;
import com.baosight.iplat4j.core.data.ibatis.dao.Dao; import com.baosight.iplat4j.core.data.ibatis.dao.Dao;
import com.baosight.iplat4j.core.data.id.UUIDHexIdGenerator; import com.baosight.iplat4j.core.data.id.UUIDHexIdGenerator;
import com.baosight.iplat4j.core.exception.PlatException; import com.baosight.iplat4j.core.exception.PlatException;
...@@ -116,7 +117,9 @@ public class UploadUtils { ...@@ -116,7 +117,9 @@ public class UploadUtils {
public static Map<String, String> getRealPath(String path) { public static Map<String, String> getRealPath(String path) {
String postPath = preparePath(path); String postPath = preparePath(path);
String dirId = initPath(postPath); String dirId = initPath(postPath);
List<Map> query = dao.query("HPMT002.queryFvalue"); Map hashMap = new HashMap();
hashMap.put("fkey","docRootDir");
List<Map> query = DaoBase.getInstance().query("EDCC03.query",hashMap);
if (query.get(0).get("fvalue")!=null) { if (query.get(0).get("fvalue")!=null) {
ROOT_PATH= (String) query.get(0).get("fvalue"); ROOT_PATH= (String) query.get(0).get("fvalue");
} }
......
package com.baosight.hpjx.hp.mt.untils; package com.baosight.hpjx.hp.mt.untils;
import com.baosight.hpjx.core.dao.DaoBase;
import com.baosight.iplat4j.core.data.ibatis.dao.Dao; import com.baosight.iplat4j.core.data.ibatis.dao.Dao;
import com.baosight.iplat4j.core.data.id.UUIDHexIdGenerator; import com.baosight.iplat4j.core.data.id.UUIDHexIdGenerator;
import com.baosight.iplat4j.core.exception.PlatException; import com.baosight.iplat4j.core.exception.PlatException;
...@@ -32,10 +33,16 @@ public class UploadUtils2 { ...@@ -32,10 +33,16 @@ public class UploadUtils2 {
String docName = multipartFile.getOriginalFilename(); String docName = multipartFile.getOriginalFilename();
Long docSize = multipartFile.getSize(); Long docSize = multipartFile.getSize();
HashMap<String, String> inMap = new HashMap(); HashMap<String, String> inMap = new HashMap();
String configPathDefine=null;
Map<String, String> returnMap = null; Map hashMap = new HashMap();
hashMap.put("fkey","docRootDir");
List<Map> query = DaoBase.getInstance().query("EDCC03.query",hashMap);
if (query.get(0).get("fvalue")!=null) {
configPathDefine= (String) query.get(0).get("fvalue");
}
returnMap = PlatFileUploadUtils.uploadFile(multipartFile, inMap); inMap.put("configPathDefine", configPathDefine);
Map<String, String> returnMap = PlatFileUploadUtils.uploadFile(multipartFile, inMap);
String docId = (String)returnMap.get("docId"); String docId = (String)returnMap.get("docId");
String docUrl = (String)returnMap.get("docUrl"); String docUrl = (String)returnMap.get("docUrl");
docId = docId == null ? "" : docId; docId = docId == null ? "" : docId;
......
...@@ -381,26 +381,8 @@ function checkIn(id) { ...@@ -381,26 +381,8 @@ function checkIn(id) {
callbackName: checkInCallback callbackName: checkInCallback
}); });
} }
checkInCallback = function () { checkInCallback = function (e) {
var block = detailGrid.getEiBlock(); detailGrid.setEiInfo(e);
var result = resultGrid.getCheckedRows()
if (rows.length < 1) {
message("请选择数据");
return;
}
if (block != null) {
block.setRows([]);
detailGrid.setEiBlock(block);
}
var info = new EiInfo()
var productionOrderNo = result[0]['prodOrderNo'];
info.set("productionOrderNo",productionOrderNo);
EiCommunicator.send("HPSC006","queryDetail",info,{
onSuccess:function(ei){//返回结果集
detailGrid.setEiInfo(ei);
},onFail:function(ei){}
},{async:false});
} }
let selectStock = function (id) { let selectStock = function (id) {
JSColorbox.open({ JSColorbox.open({
......
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