|
@@ -6,6 +6,7 @@ import org.jeecg.modules.openApi.service.ISenYuDataSourceOne;
|
|
import org.jeecg.modules.openApi.service.ISenYuDataSourceThree;
|
|
import org.jeecg.modules.openApi.service.ISenYuDataSourceThree;
|
|
import org.jeecg.modules.openApi.service.ISenYuDataSourceTwo;
|
|
import org.jeecg.modules.openApi.service.ISenYuDataSourceTwo;
|
|
import org.jeecg.modules.system.util.JsonChangeUtils;
|
|
import org.jeecg.modules.system.util.JsonChangeUtils;
|
|
|
|
+import org.jeecg.modules.system.util.oConvertUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -26,9 +27,12 @@ public class Rdrecord11ServiceImpl implements IRdrecord11Service {
|
|
public JSONObject getRdrecord(String org, String cCode) throws Exception{
|
|
public JSONObject getRdrecord(String org, String cCode) throws Exception{
|
|
JSONObject resultJson=new JSONObject();
|
|
JSONObject resultJson=new JSONObject();
|
|
//主表查询SQl
|
|
//主表查询SQl
|
|
- String hsql="select * From rdrecord11 where cCode='"+cCode+"'";
|
|
|
|
- //子表查询SQl
|
|
|
|
- String bsql="select a.* From rdrecords11 a,rdrecord11 b where a.id=b.id and b.cCode='"+cCode+"'";
|
|
|
|
|
|
+ String hsql="select top 1 a.ccode,c.cVenName,a.cMPoCode,a.dDate,b.cDefine22,d.cWhName " +
|
|
|
|
+ "From rdrecord11 a left join rdrecords11 b on a.id=b.id left join Vendor c on a.cVenCode=c.cVenCode " +
|
|
|
|
+ "left join Warehouse d on a.cWhCode=d.cWhCode where a.cCode='"+cCode+"'";
|
|
|
|
+ //子表查询SQl 件数/KG不确认
|
|
|
|
+ String bsql="select b.cbatch,b.cbatchproperty9,b.iquantity,b.cfree5,b.cinvcode,b.cfree4,b.cfree1,b.cfree6 " +
|
|
|
|
+ "From rdrecord11 a join rdrecords11 b on a.id=b.id where a.cCode='"+cCode+"'";
|
|
if(org.equals("101")){
|
|
if(org.equals("101")){
|
|
List<Map<String, Object>> hresult = senYuDataSourceOne.queryForList(hsql);
|
|
List<Map<String, Object>> hresult = senYuDataSourceOne.queryForList(hsql);
|
|
List<Map<String, Object>> bresult = senYuDataSourceOne.queryForList(bsql);
|
|
List<Map<String, Object>> bresult = senYuDataSourceOne.queryForList(bsql);
|
|
@@ -62,6 +66,7 @@ public class Rdrecord11ServiceImpl implements IRdrecord11Service {
|
|
throw new Exception(cCode+"单号查询有误,请确认数据!");
|
|
throw new Exception(cCode+"单号查询有误,请确认数据!");
|
|
}
|
|
}
|
|
resultJson.put("b",JsonChangeUtils.toJSONObject(result));
|
|
resultJson.put("b",JsonChangeUtils.toJSONObject(result));
|
|
|
|
+ oConvertUtils.generateQRCodeImage(JsonChangeUtils.toJSONObject(result).toString(),350,350,"C:/Users/AF/Desktop/text.png");
|
|
}else if(org.equals("102")){
|
|
}else if(org.equals("102")){
|
|
|
|
|
|
}else if(org.equals("103")){
|
|
}else if(org.equals("103")){
|