星空对接接口开发
This commit is contained in:
parent
c7a8432cfe
commit
1fd5b4d93d
|
@ -285,6 +285,37 @@ public class PoundBill extends BaseEntity
|
|||
@Excel(name = "最后修改人")
|
||||
private String lstedtopr;
|
||||
|
||||
//打印次数
|
||||
private Long printcount;
|
||||
|
||||
//星空ID
|
||||
private String fid;
|
||||
|
||||
//星空分录ID
|
||||
private String fentity_fentryid;
|
||||
|
||||
//直供商id
|
||||
private String zgsId;
|
||||
|
||||
//直供商名称
|
||||
private String zgsName;
|
||||
|
||||
public String getZgsId() {
|
||||
return zgsId;
|
||||
}
|
||||
|
||||
public void setZgsId(String zgsId) {
|
||||
this.zgsId = zgsId;
|
||||
}
|
||||
|
||||
public String getZgsName() {
|
||||
return zgsName;
|
||||
}
|
||||
|
||||
public void setZgsName(String zgsName) {
|
||||
this.zgsName = zgsName;
|
||||
}
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
|
@ -295,6 +326,30 @@ public class PoundBill extends BaseEntity
|
|||
return id;
|
||||
}
|
||||
|
||||
public String getFid() {
|
||||
return fid;
|
||||
}
|
||||
|
||||
public void setFid(String fid) {
|
||||
this.fid = fid;
|
||||
}
|
||||
|
||||
public String getFentity_fentryid() {
|
||||
return fentity_fentryid;
|
||||
}
|
||||
|
||||
public void setFentity_fentryid(String fentity_fentryid) {
|
||||
this.fentity_fentryid = fentity_fentryid;
|
||||
}
|
||||
|
||||
public Long getPrintcount() {
|
||||
return printcount;
|
||||
}
|
||||
|
||||
public void setPrintcount(Long printcount) {
|
||||
this.printcount = printcount;
|
||||
}
|
||||
|
||||
public void setBillstate(String billstate)
|
||||
{
|
||||
this.billstate = billstate;
|
||||
|
|
|
@ -156,6 +156,28 @@ public class Poundappli extends BaseEntity
|
|||
//星空单据类型
|
||||
private String oabilltype;
|
||||
|
||||
//直供商id
|
||||
private String zgsId;
|
||||
|
||||
//直供商名称
|
||||
private String zgsName;
|
||||
|
||||
public String getZgsId() {
|
||||
return zgsId;
|
||||
}
|
||||
|
||||
public void setZgsId(String zgsId) {
|
||||
this.zgsId = zgsId;
|
||||
}
|
||||
|
||||
public String getZgsName() {
|
||||
return zgsName;
|
||||
}
|
||||
|
||||
public void setZgsName(String zgsName) {
|
||||
this.zgsName = zgsName;
|
||||
}
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
|
|
|
@ -210,6 +210,28 @@ public class Poundmst extends BaseEntity
|
|||
@Excel(name = "生产车间编号")
|
||||
private String sccjNum;
|
||||
|
||||
//直供商id
|
||||
private String zgsId;
|
||||
|
||||
//直供商名称
|
||||
private String zgsName;
|
||||
|
||||
public String getZgsId() {
|
||||
return zgsId;
|
||||
}
|
||||
|
||||
public void setZgsId(String zgsId) {
|
||||
this.zgsId = zgsId;
|
||||
}
|
||||
|
||||
public String getZgsName() {
|
||||
return zgsName;
|
||||
}
|
||||
|
||||
public void setZgsName(String zgsName) {
|
||||
this.zgsName = zgsName;
|
||||
}
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
|
|
|
@ -0,0 +1,233 @@
|
|||
package com.ruoyi.webApi;
|
||||
|
||||
import com.ruoyi.bill.domain.PoundBill;
|
||||
import com.ruoyi.bill.domain.Poundappli;
|
||||
import com.ruoyi.bill.service.IPoundBillService;
|
||||
import com.ruoyi.bill.service.IPoundappliService;
|
||||
import com.ruoyi.system.service.ISysConfigService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
* 各个单据回传星空接口(单据更新,单据下推)
|
||||
* @author 16358
|
||||
* @date 2025/6/16
|
||||
*/
|
||||
@Component("apiPostBack")
|
||||
public class ApiPostBack {
|
||||
@Autowired
|
||||
private ISysConfigService sysConfigService;
|
||||
|
||||
private ApiTask apiTask;
|
||||
|
||||
private IPoundBillService poundBillService;
|
||||
|
||||
/**
|
||||
* 磅单信息对象更新回星空
|
||||
* @return 回传成功报文/错误日志信息
|
||||
*/
|
||||
|
||||
public String makePoundBillFormData(String id){
|
||||
|
||||
PoundBill poundBill = poundBillService.selectPoundBillById(id);
|
||||
if(poundBill == null) throw new RuntimeException("磅单不存在!");
|
||||
// 目标URL
|
||||
String url = sysConfigService.selectConfigByKey("OA_Url")+"/k3cloud/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.save.common.kdsvc";
|
||||
|
||||
String jsonInputString = "";
|
||||
String oabilltype = poundBill.getSrcblltype();
|
||||
if("SAL_DELIVERYNOTICE".equals(oabilltype)){
|
||||
//发货通知单
|
||||
jsonInputString = "{\n" +
|
||||
" \"Formid\": \"SAL_DELIVERYNOTICE\",\n" +
|
||||
" \"data\": {\n" +
|
||||
" \"NeedUpDateFields\": [],\n" +
|
||||
" \"NeedReturnFields\": [],\n" +
|
||||
" \"IsDeleteEntry\": \"true\",\n" +
|
||||
" \"IsAutoAdjustField\": \"true\",\n" +
|
||||
" \"Model\": {\n" +
|
||||
" \"FID\": \""+poundBill.getFid()+"\",\n" +
|
||||
" \"F_GMSHDW\": \""+poundBill.getRecunitid()+"\",\n" +
|
||||
" \"F_CYDW\": \""+poundBill.getTrnunitid()+"\",\n" +
|
||||
" \"F_BDMC\":\""+poundBill.getPoundname()+" \",\n" +
|
||||
" \"FEntity\": [\n" +
|
||||
" {\n" +
|
||||
" \"FEntryID\": "+poundBill.getFentity_fentryid()+",\n" +
|
||||
" \"F_JLHCSL\": \""+poundBill.getNetmqty()+"\",\n" +
|
||||
" \"F_YMZ\": \""+poundBill.getSrcwghmqty()+"\",\n" +
|
||||
" \"F_YPZ\": \""+poundBill.getSrcempmqty()+"\",\n" +
|
||||
" \"F_JS\": \""+poundBill.getNetmqty()+"\"\n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
}else if("PUR_ReceiveBill".equals(oabilltype)){
|
||||
//收料通知单
|
||||
jsonInputString = "{\n" +
|
||||
" \"Formid\": \"PUR_ReceiveBill\",\n" +
|
||||
" \"data\": {\n" +
|
||||
" \"NeedUpDateFields\": [],\n" +
|
||||
" \"NeedReturnFields\": [],\n" +
|
||||
" \"IsDeleteEntry\": \"true\",\n" +
|
||||
" \"IsAutoAdjustField\": \"true\",\n" +
|
||||
" \"Model\": {\n" +
|
||||
" \"FID\": \""+poundBill.getFid()+"\",\n" +
|
||||
" \"F_GMSHDW\": \""+poundBill.getRecunitid()+"\",\n" +
|
||||
" \"F_CYDW\": \""+poundBill.getTrnunitid()+"\",\n" +
|
||||
" \"F_BDMC\":\""+poundBill.getPoundname()+" \",\n" +
|
||||
" \"FDetailEntity\": [\n" +
|
||||
" {\n" +
|
||||
" \"FEntryID\": "+poundBill.getFentity_fentryid()+",\n" +
|
||||
" \"F_JLHCSL\": \""+poundBill.getNetmqty()+"\",\n" +
|
||||
" \"F_YMZ\": \""+poundBill.getSrcwghmqty()+"\",\n" +
|
||||
" \"F_YPZ\": \""+poundBill.getSrcempmqty()+"\",\n" +
|
||||
" \"F_JS\": \""+poundBill.getNetmqty()+"\"\n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
}else if("STK_TRANSFERAPPLY".equals(oabilltype)){
|
||||
//调拨申请单
|
||||
jsonInputString = "{\n" +
|
||||
" \"Formid\": \"STK_TRANSFERAPPLY\",\n" +
|
||||
" \"data\": {\n" +
|
||||
" \"NeedUpDateFields\": [],\n" +
|
||||
" \"NeedReturnFields\": [],\n" +
|
||||
" \"IsDeleteEntry\": \"true\",\n" +
|
||||
" \"IsAutoAdjustField\": \"true\",\n" +
|
||||
" \"Model\": {\n" +
|
||||
" \"FID\": \""+poundBill.getFid()+"\",\n" +
|
||||
" \"F_DYCS\": "+poundBill.getPrintcount()+", \n" +
|
||||
" \"F_CYDW\": \""+poundBill.getTrnunitid()+"\", \n" +
|
||||
" \"F_FHDW\": \""+poundBill.getSendunitid()+"\", \n" +
|
||||
" \"F_SHDW\": \""+poundBill.getRecunitid()+"\", \n" +
|
||||
" \"F_ZGS\": "+poundBill.getZgsId()+", \n" +
|
||||
" \"FEntity\": [\n" +
|
||||
" {\n" +
|
||||
" \"FEntryID\": "+poundBill.getFentity_fentryid()+",\n" +
|
||||
" \"F_JLHCSL\": \""+poundBill.getNetmqty()+"\" \n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
}else if("SP_InStock".equals(oabilltype)){
|
||||
//简单生产入库单
|
||||
jsonInputString = "{\n" +
|
||||
" \"Formid\": \"SP_InStock\",\n" +
|
||||
" \"data\": {\n" +
|
||||
" \"NeedUpDateFields\": [],\n" +
|
||||
" \"NeedReturnFields\": [],\n" +
|
||||
" \"IsDeleteEntry\": \"true\",\n" +
|
||||
" \"IsAutoAdjustField\": \"true\",\n" +
|
||||
" \"Model\": {\n" +
|
||||
" \"FID\": \""+poundBill.getFid()+"\",\n" +
|
||||
" \"F_YWBD\": \""+poundBill.getPoundid()+"\",\n" +
|
||||
" \"F_SJYWBD\": \""+poundBill.getPoundid()+"\",\n" +
|
||||
" \"F_ZGS\": "+poundBill.getZgsId()+", \n" +
|
||||
" \"F_FHDW\": \""+poundBill.getSendunitid()+"\", \n" +
|
||||
" \"F_SHDW\": \""+poundBill.getRecunitid()+"\", \n" +
|
||||
" \"FEntity\": [\n" +
|
||||
" {\n" +
|
||||
" \"FEntryID\": "+poundBill.getFentity_fentryid()+",\n" +
|
||||
" \"FMaterialId\": {\n" +
|
||||
" \"FNumber\": \"\"\n" +
|
||||
" },\n" +
|
||||
" \"FInStockType\": \"1\",\n" +
|
||||
" \"FMustQty\": "+poundBill.getNetmqty()+",\n" +
|
||||
" \"FRealQty\": "+poundBill.getNetmqty()+",\n" +
|
||||
" \"FStockId\": {\n" +
|
||||
" \"FNumber\": \"\"\n" +
|
||||
" },\n" +
|
||||
" \"FWorkShopId1\": {\n" +
|
||||
" \"FNumber\": \"\"\n" +
|
||||
" },\n" +
|
||||
" \"FShiftGroupId\": {\n" +
|
||||
" \"FNumber\": \"\"\n" +
|
||||
" },\n" +
|
||||
" \"F_CZ\": 0,\n" +
|
||||
" \"FMemo\": \""+poundBill.getRemark()+"\",\n" +
|
||||
" \"F_LC\": \""+poundBill.getBoilerno()+"\",\n" +
|
||||
" \"F_GH\": 0,\n" +
|
||||
" \"F_GANGH\": \""+poundBill.getSteeno()+"\",\n" +
|
||||
" \"F_ZKS\": 0,\n" +
|
||||
" \"F_KH\": 0,\n" +
|
||||
" \"F_PJZL\": 0,\n" +
|
||||
" \"F_XCLX\": \""+poundBill.getLinetype()+"\",\n" +
|
||||
" \"F_PH\": \""+poundBill.getBatno()+"\"\n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
}else {
|
||||
throw new RuntimeException("单据类型错误!");
|
||||
}
|
||||
|
||||
//记录错误日志
|
||||
StringBuilder errorLog = new StringBuilder();
|
||||
try {
|
||||
// 创建URL对象
|
||||
URL apiUrl = new URL(url);
|
||||
// 打开连接
|
||||
HttpURLConnection connection = (HttpURLConnection) apiUrl.openConnection();
|
||||
|
||||
// 设置请求方法为POST
|
||||
connection.setRequestMethod("POST");
|
||||
|
||||
// 设置请求头
|
||||
// Content-Type 指定发送的数据格式是JSON,并且字符集为UTF-8
|
||||
connection.setRequestProperty("Content-Type", "application/json; utf-8");
|
||||
// Accept 指定期望接收的数据格式是JSON
|
||||
connection.setRequestProperty("Accept", "application/json");
|
||||
// 设置请求头,包含token
|
||||
String token = apiTask.getToken();
|
||||
if (token != null && !token.isEmpty()) {
|
||||
connection.setRequestProperty("kdservice-sessionid", token);
|
||||
} else {
|
||||
throw new RuntimeException("获取到的Token为空,无法设置请求头。");
|
||||
}
|
||||
// 允许写入请求体
|
||||
connection.setDoOutput(true);
|
||||
|
||||
// 获取输出流,发送请求体数据
|
||||
try (OutputStream os = connection.getOutputStream()) {
|
||||
byte[] input = jsonInputString.getBytes("utf-8");
|
||||
os.write(input, 0, input.length);
|
||||
}
|
||||
|
||||
// 获取响应码
|
||||
int responseCode = connection.getResponseCode();
|
||||
|
||||
// 读取响应内容
|
||||
StringBuilder response = new StringBuilder();
|
||||
try (BufferedReader br = new BufferedReader(
|
||||
new InputStreamReader(connection.getInputStream(), "utf-8"))) {
|
||||
String responseLine = null;
|
||||
while ((responseLine = br.readLine()) != null) {
|
||||
response.append(responseLine.trim());
|
||||
}
|
||||
return response.toString();
|
||||
}catch (Exception e) {
|
||||
// throw new RuntimeException("因未知原因导致获取数据失败!");
|
||||
errorLog.append("因未知原因导致数据回传星空失败!\n");
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
// throw new RuntimeException(e);
|
||||
errorLog.append("回传数据失败!: " + e.getMessage()+ "\n");
|
||||
}
|
||||
|
||||
return errorLog.toString();
|
||||
}
|
||||
|
||||
}
|
|
@ -287,11 +287,7 @@ public class ApiTask {
|
|||
poundappli.setFentity_fentryid(fentryid);
|
||||
poundappli.setSrcbillusrcode(sourceBillNo);
|
||||
poundappli.setOabilltype(formid);//星空单据类型
|
||||
if("SAL_DELIVERYNOTICE".equals(formid)){
|
||||
poundappli.setSrcbilltype("发货通知单");//来源单据类型
|
||||
}else {
|
||||
poundappli.setSrcbilltype("收料通知单");//来源单据类型
|
||||
}
|
||||
poundappli.setSrcbilltype(formid);//来源单据类型
|
||||
|
||||
poundappliService.insertPoundappliDpi(poundappli);
|
||||
}
|
||||
|
@ -338,7 +334,7 @@ public class ApiTask {
|
|||
poundmst.setSccjNum(sccjNumber);
|
||||
poundmst.setBbno(bbno);
|
||||
poundmst.setOabilltype(formid);//星空单据类型
|
||||
poundmst.setSrcbllknd("简单生产入库单");//来源单据类型
|
||||
poundmst.setSrcbllknd(formid);//来源单据类型
|
||||
|
||||
poundmstService.insertPoundmstDpi(poundmst);
|
||||
}
|
||||
|
@ -371,7 +367,7 @@ public class ApiTask {
|
|||
poundmst.setQty(qty);
|
||||
poundmst.setFentity_fentryid(fentryid);
|
||||
poundmst.setOabilltype(formid);//星空单据类型
|
||||
poundmst.setSrcbllknd("调拨申请单");//来源单据类型
|
||||
poundmst.setSrcbllknd(formid);//来源单据类型
|
||||
|
||||
poundmstService.insertPoundmstDpi(poundmst);
|
||||
}
|
||||
|
|
|
@ -67,6 +67,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="lqty" column="lqty" />
|
||||
<result property="bdcode" column="bdcode" />
|
||||
<result property="crtorgid" column="crtorgid" />
|
||||
<result property="printcount" column="printcount" />
|
||||
<result property="zgsId" column="zgsId" />
|
||||
<result property="zgsName" column="zgsName" />
|
||||
<result property="fid" column="fid" />
|
||||
<result property="fentity_fentryid" column="fentity_fentryid" />
|
||||
<result property="isinuse" column="isinuse" />
|
||||
<result property="crtdt" column="crtdt" />
|
||||
<result property="crtopr" column="crtopr" />
|
||||
|
@ -75,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectPoundBillVo">
|
||||
select id, billstate, usrcode, carno, wghmqty, empmqty, netmqty, wghdt, empdt, srcpunmqty, srcwghmqty, srcempmqty, srcnetmqty, itmname, wghdtoprname, empdtoprname, specification, msrname, poundid, poundname, empsysid, empusrcode, wghsysid, wghusrcode, recunitid, recunitname, sendunitid, sendunitname, trnunitid, trnunitname, bsnunitid, bsnunitname, bsndptid, bsndptname, wghtype, scltype, cardriver, srcblltype, pondsrc, wetusrcode, srcbllusrcode, remark, boilerno,agnstatus,agngrossmqty,agntaremqty,agnnetmqty,ductmqty,ductmqtypre, steeno, unitlen, indexid, carnolz, steeltype, linetype, batno, lzno, lqty, bdcode, crtorgid, isinuse, crtdt, crtopr, lstedtdt, lstedtopr from t_data_poundbill
|
||||
select id, billstate, usrcode, carno, wghmqty, empmqty, netmqty, wghdt, empdt, srcpunmqty, srcwghmqty, srcempmqty, srcnetmqty, itmname, wghdtoprname, empdtoprname, specification, msrname, poundid, poundname, empsysid, empusrcode, wghsysid, wghusrcode, recunitid, recunitname, sendunitid, sendunitname, trnunitid, trnunitname, bsnunitid, bsnunitname, bsndptid, bsndptname, wghtype, scltype, cardriver, srcblltype, pondsrc, wetusrcode, srcbllusrcode, remark, boilerno,agnstatus,agngrossmqty,agntaremqty,agnnetmqty,ductmqty,ductmqtypre, steeno, unitlen, indexid, carnolz, steeltype, linetype, batno, lzno, lqty, bdcode, crtorgid, printcount, zgsId, zgsName, fid, fentity_fentryid, isinuse, crtdt, crtopr, lstedtdt, lstedtopr from t_data_poundbill
|
||||
</sql>
|
||||
|
||||
<select id="selectPoundBillList" parameterType="PoundBill" resultMap="PoundBillResult">
|
||||
|
@ -133,6 +138,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lqty != null "> and lqty = #{lqty}</if>
|
||||
<if test="bdcode != null and bdcode != ''"> and bdcode = #{bdcode}</if>
|
||||
<if test="crtorgid != null "> and crtorgid = #{crtorgid}</if>
|
||||
<if test="printcount != null "> and printcount = #{printcount}</if>
|
||||
<if test="zgsId != null "> and zgsId = #{zgsId}</if>
|
||||
<if test="zgsName != null "> and zgsName = #{zgsName}</if>
|
||||
<if test="fid != null "> and fid = #{fid}</if>
|
||||
<if test="fentity_fentryid != null "> and fentity_fentryid = #{fentity_fentryid}</if>
|
||||
<if test="isinuse != null and isinuse != ''"> and isinuse = #{isinuse}</if>
|
||||
<if test="crtdt != null "> and crtdt = #{crtdt}</if>
|
||||
<if test="crtopr != null and crtopr != ''"> and crtopr = #{crtopr}</if>
|
||||
|
@ -204,6 +214,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lqty != null">lqty,</if>
|
||||
<if test="bdcode != null">bdcode,</if>
|
||||
<if test="crtorgid != null">crtorgid,</if>
|
||||
<if test="printcount != null">printcount,</if>
|
||||
<if test="zgsId != null">zgsId,</if>
|
||||
<if test="zgsName != null">zgsName,</if>
|
||||
<if test="fid != null">fid,</if>
|
||||
<if test="fentity_fentryid != null">fentity_fentryid,</if>
|
||||
<if test="isinuse != null">isinuse,</if>
|
||||
<if test="crtdt != null">crtdt,</if>
|
||||
<if test="crtopr != null">crtopr,</if>
|
||||
|
@ -265,6 +280,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lqty != null">#{lqty},</if>
|
||||
<if test="bdcode != null">#{bdcode},</if>
|
||||
<if test="crtorgid != null">#{crtorgid},</if>
|
||||
<if test="printcount != null">#{printcount},</if>
|
||||
<if test="zgsId != null">#{zgsId},</if>
|
||||
<if test="zgsName != null">#{zgsName},</if>
|
||||
<if test="fid != null">#{fid},</if>
|
||||
<if test="fentity_fentryid != null">#{fentity_fentryid},</if>
|
||||
<if test="isinuse != null">#{isinuse},</if>
|
||||
<if test="crtdt != null">#{crtdt},</if>
|
||||
<if test="crtopr != null">#{crtopr},</if>
|
||||
|
@ -328,7 +348,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lzno != null">lzno = #{lzno},</if>
|
||||
<if test="lqty != null">lqty = #{lqty},</if>
|
||||
<if test="bdcode != null">bdcode = #{bdcode},</if>
|
||||
<if test="crtorgid != null">crtorgid = #{crtorgid},</if>
|
||||
<if test="crtorgid != null">crtorgid = #{crtorgid},</if>=
|
||||
<if test="printcount != null">printcount = #{printcount},</if>
|
||||
<if test="zgsId != null">zgsId = #{zgsId},</if>
|
||||
<if test="zgsName != null">zgsName = #{zgsName},</if>
|
||||
<if test="fid != null">fid = #{fid},</if>
|
||||
<if test="fentity_fentryid != null">fentity_fentryid = #{fentity_fentryid},</if>
|
||||
<if test="isinuse != null">isinuse = #{isinuse},</if>
|
||||
<if test="crtdt != null">crtdt = #{crtdt},</if>
|
||||
<if test="crtopr != null">crtopr = #{crtopr},</if>
|
||||
|
|
|
@ -39,11 +39,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="fid" column="fid" />
|
||||
<result property="fentity_fentryid" column="fentity_fentryid" />
|
||||
<result property="oabilltype" column="oabilltype" />
|
||||
<result property="zgsId" column="zgsId" />
|
||||
<result property="zgsName" column="zgsName" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPoundappliVo">
|
||||
select id, bllstate, usrcode, bsndt, carno, itmname, specification, sendunitid, sendunitname, recentname, trnentname,srcbsndt, srcpunbll, srcwghmqty, srcempmqty, srccleanmqty, srcbsndt, msrunit, msrname, itmno, cardriver, poundid, poundname,srcbilltype, srcbillusrcode, crtorgid, isinuse, crtdt, crtopr, lstedtdt, lstedtopr, fid, fentity_fentryid, oabilltype, remark from t_data_poundappli
|
||||
select id, bllstate, usrcode, bsndt, carno, itmname, specification, sendunitid, sendunitname, recentname, trnentname,srcbsndt, srcpunbll, srcwghmqty, srcempmqty, srccleanmqty, srcbsndt, msrunit, msrname, itmno, cardriver, poundid, poundname,srcbilltype, srcbillusrcode, crtorgid, isinuse, crtdt, crtopr, lstedtdt, lstedtopr, fid, zgsId, zgsName, fentity_fentryid, oabilltype, remark from t_data_poundappli
|
||||
</sql>
|
||||
|
||||
<select id="selectPoundappliList" parameterType="Poundappli" resultMap="PoundappliResult">
|
||||
|
@ -78,6 +80,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtdt != null "> and lstedtdt = #{lstedtdt}</if>
|
||||
<if test="lstedtopr != null and lstedtopr != ''"> and lstedtopr = #{lstedtopr}</if>
|
||||
<if test="fid != null and fid != ''"> and fid = #{fid}</if>
|
||||
<if test="zgsId != null and zgsId != ''"> and zgsId = #{zgsId}</if>
|
||||
<if test="zgsName != null and zgsName != ''"> and zgsName = #{zgsName}</if>
|
||||
<if test="fentity_fentryid != null and fentity_fentryid != ''"> and fentity_fentryid = #{fentity_fentryid}</if>
|
||||
<if test="oabilltype != null and oabilltype != ''"> and oabilltype = #{oabilltype}</if>
|
||||
</where>
|
||||
|
@ -122,6 +126,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtdt != null">lstedtdt,</if>
|
||||
<if test="lstedtopr != null">lstedtopr,</if>
|
||||
<if test="fid != null">fid,</if>
|
||||
<if test="zgsId != null">zgsId,</if>
|
||||
<if test="zgsName != null">zgsName,</if>
|
||||
<if test="fentity_fentryid != null">fentity_fentryid,</if>
|
||||
<if test="oabilltype != null">oabilltype,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
|
@ -158,6 +164,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtdt != null">#{lstedtdt},</if>
|
||||
<if test="lstedtopr != null">#{lstedtopr},</if>
|
||||
<if test="fid != null">#{fid},</if>
|
||||
<if test="zgsId != null">#{zgsId},</if>
|
||||
<if test="zgsName != null">#{zgsName},</if>
|
||||
<if test="fentity_fentryid != null">#{fentity_fentryid},</if>
|
||||
<if test="oabilltype != null">#{oabilltype},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
|
@ -202,6 +210,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtdt != null">lstedtdt = #{lstedtdt},</if>
|
||||
<if test="lstedtopr != null">lstedtopr = #{lstedtopr},</if>
|
||||
<if test="fid != null">fid = #{fid},</if>
|
||||
<if test="zgsId != null">zgsId = #{zgsId},</if>
|
||||
<if test="zgsName != null">zgsName = #{zgsName},</if>
|
||||
<if test="fentity_fentryid != null">fentity_fentryid = #{fentity_fentryid},</if>
|
||||
<if test="oabilltype != null">oabilltype = #{oabilltype},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
|
|
|
@ -46,6 +46,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="lstedtdt" column="lstedtdt" />
|
||||
<result property="lstedtopr" column="lstedtopr" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="zgsId" column="zgsId" />
|
||||
<result property="zgsName" column="zgsName" />
|
||||
<result property="fid" column="fid" />
|
||||
<result property="fentity_fentryid" column="fentity_fentryid" />
|
||||
<result property="oabilltype" column="oabilltype" />
|
||||
|
@ -55,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectPoundmstVo">
|
||||
select id, usrcode, srcbllknd, srcbllid, bsndt, bsnid, bllstt, itmno, itmcode, itmname, specification, msrunit, trnunitid, trnunitname, bsunitid, bsunitname, sendunitid, sendunitname, recunitid, recunitname, poundid, poundname, boilerno, steeno, unitlen, carnosum, carmqtysum, qty, resQty, indexid, steeltype, linetype, lzno, bbno, crtorgid, isinuse, crtdt, crtopr, lstedtdt, lstedtopr, remark, fid, fentity_fentryid, oabilltype, cangKuName, cangKuNumber, sccjNum from t_data_poundmst
|
||||
select id, usrcode, srcbllknd, srcbllid, bsndt, bsnid, bllstt, itmno, itmcode, itmname, specification, msrunit, trnunitid, trnunitname, bsunitid, bsunitname, sendunitid, sendunitname, recunitid, recunitname, poundid, poundname, boilerno, steeno, unitlen, carnosum, carmqtysum, qty, resQty, indexid, steeltype, linetype, lzno, bbno, crtorgid, isinuse, crtdt, crtopr, lstedtdt, lstedtopr, remark, zgsId, zgsName, fid, fentity_fentryid, oabilltype, cangKuName, cangKuNumber, sccjNum from t_data_poundmst
|
||||
</sql>
|
||||
|
||||
<select id="selectPoundmstList" parameterType="Poundmst" resultMap="PoundmstResult">
|
||||
|
@ -158,6 +160,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtdt != null">lstedtdt,</if>
|
||||
<if test="lstedtopr != null">lstedtopr,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="zgsId != null">zgsId,</if>
|
||||
<if test="zgsName != null">zgsName,</if>
|
||||
<if test="fid != null">fid,</if>
|
||||
<if test="fentity_fentryid != null">fentity_fentryid,</if>
|
||||
<if test="oabilltype != null">oabilltype,</if>
|
||||
|
@ -208,6 +212,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtdt != null">#{lstedtdt},</if>
|
||||
<if test="lstedtopr != null">#{lstedtopr},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="zgsId != null">#{zgsId},</if>
|
||||
<if test="zgsName != null">#{zgsName},</if>
|
||||
<if test="fid != null">#{fid},</if>
|
||||
<if test="fentity_fentryid != null">#{fentity_fentryid},</if>
|
||||
<if test="oabilltype != null">#{oabilltype},</if>
|
||||
|
@ -266,6 +272,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="lstedtdt != null">lstedtdt = #{lstedtdt},</if>
|
||||
<if test="lstedtopr != null">lstedtopr = #{lstedtopr},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="zgsId != null">zgsId = #{zgsId},</if>
|
||||
<if test="zgsName != null">zgsName = #{zgsName},</if>
|
||||
<if test="fid != null">fid = #{fid},</if>
|
||||
<if test="fentity_fentryid != null">fentity_fentryid = #{fentity_fentryid},</if>
|
||||
<if test="oabilltype != null">oabilltype = #{oabilltype},</if>
|
||||
|
|
Loading…
Reference in New Issue