| | |
| | | <result column="iz_print_return" property="izPrintReturn" /> |
| | | |
| | | </resultMap> |
| | | <resultMap id="resultMapDTO" type="com.zy.kingdee.entity.IcmoDTO" > |
| | | <id column="FInterID" property="finterid" jdbcType="INTEGER" /> |
| | | <result column="FBrNo" property="fbrno" jdbcType="VARCHAR" /> |
| | | <result column="FBillNo" property="fbillno" jdbcType="VARCHAR" /> |
| | | <result column="FTranType" property="ftrantype" jdbcType="SMALLINT" /> |
| | | <result column="FStatus" property="fstatus" jdbcType="SMALLINT" /> |
| | | <result column="FMRP" property="fmrp" jdbcType="SMALLINT" /> |
| | | <result column="FType" property="ftype" jdbcType="SMALLINT" /> |
| | | <result column="FWorkShop" property="fworkshop" jdbcType="INTEGER" /> |
| | | <result column="FItemID" property="fitemid" jdbcType="INTEGER" /> |
| | | <result column="FQty" property="fqty" jdbcType="DECIMAL" /> |
| | | <result column="FCommitQty" property="fcommitqty" jdbcType="DECIMAL" /> |
| | | <result column="FPlanCommitDate" property="fplancommitdate" jdbcType="TIMESTAMP" /> |
| | | <result column="FPlanFinishDate" property="fplanfinishdate" jdbcType="TIMESTAMP" /> |
| | | <result column="FConveyerID" property="fconveyerid" jdbcType="INTEGER" /> |
| | | <result column="FCommitDate" property="fcommitdate" jdbcType="TIMESTAMP" /> |
| | | <result column="FCheckerID" property="fcheckerid" jdbcType="INTEGER" /> |
| | | <result column="FCheckDate" property="fcheckdate" jdbcType="TIMESTAMP" /> |
| | | <result column="FRequesterID" property="frequesterid" jdbcType="INTEGER" /> |
| | | <result column="FBillerID" property="fbillerid" jdbcType="INTEGER" /> |
| | | <result column="FSourceEntryID" property="fsourceentryid" jdbcType="INTEGER" /> |
| | | <result column="FClosed" property="fclosed" jdbcType="SMALLINT" /> |
| | | <result column="FNote" property="fnote" jdbcType="VARCHAR" /> |
| | | <result column="FUnitID" property="funitid" jdbcType="INTEGER" /> |
| | | <result column="FAuxCommitQty" property="fauxcommitqty" jdbcType="DECIMAL" /> |
| | | <result column="FAuxQty" property="fauxqty" jdbcType="DECIMAL" /> |
| | | <result column="FOrderInterID" property="forderinterid" jdbcType="INTEGER" /> |
| | | <result column="FPPOrderInterID" property="fpporderinterid" jdbcType="INTEGER" /> |
| | | <result column="FParentInterID" property="fparentinterid" jdbcType="INTEGER" /> |
| | | <result column="FCancellation" property="fcancellation" jdbcType="BIT" /> |
| | | <result column="FSupplyID" property="fsupplyid" jdbcType="INTEGER" /> |
| | | <result column="FQtyFinish" property="fqtyfinish" jdbcType="DECIMAL" /> |
| | | <result column="FQtyScrap" property="fqtyscrap" jdbcType="DECIMAL" /> |
| | | <result column="FQtyForItem" property="fqtyforitem" jdbcType="DECIMAL" /> |
| | | <result column="FQtyLost" property="fqtylost" jdbcType="DECIMAL" /> |
| | | <result column="FPlanIssueDate" property="fplanissuedate" jdbcType="TIMESTAMP" /> |
| | | <result column="FRoutingID" property="froutingid" jdbcType="NVARCHAR" /> |
| | | <result column="FStartDate" property="fstartdate" jdbcType="TIMESTAMP" /> |
| | | <result column="FFinishDate" property="ffinishdate" jdbcType="TIMESTAMP" /> |
| | | <result column="FAuxQtyFinish" property="fauxqtyfinish" jdbcType="DECIMAL" /> |
| | | <result column="FAuxQtyScrap" property="fauxqtyscrap" jdbcType="DECIMAL" /> |
| | | <result column="FAuxQtyForItem" property="fauxqtyforitem" jdbcType="DECIMAL" /> |
| | | <result column="FAuxQtyLost" property="fauxqtylost" jdbcType="DECIMAL" /> |
| | | <result column="FMrpClosed" property="fmrpclosed" jdbcType="INTEGER" /> |
| | | <result column="FBomInterID" property="fbominterid" jdbcType="INTEGER" /> |
| | | <result column="FQtyPass" property="fqtypass" jdbcType="DECIMAL" /> |
| | | <result column="FAuxQtyPass" property="fauxqtypass" jdbcType="DECIMAL" /> |
| | | <result column="FQtyBack" property="fqtyback" jdbcType="DECIMAL" /> |
| | | <result column="FAuxQtyBack" property="fauxqtyback" jdbcType="DECIMAL" /> |
| | | <result column="FFinishTime" property="ffinishtime" jdbcType="DECIMAL" /> |
| | | <result column="FReadyTIme" property="freadytime" jdbcType="DECIMAL" /> |
| | | <result column="FPowerCutTime" property="fpowercuttime" jdbcType="DECIMAL" /> |
| | | <result column="FFixTime" property="ffixtime" jdbcType="DECIMAL" /> |
| | | <result column="FWaitItemTime" property="fwaititemtime" jdbcType="DECIMAL" /> |
| | | <result column="FWaitToolTime" property="fwaittooltime" jdbcType="DECIMAL" /> |
| | | <result column="FTaskID" property="ftaskid" jdbcType="INTEGER" /> |
| | | <result column="FWorkTypeID" property="fworktypeid" jdbcType="INTEGER" /> |
| | | <result column="FCostObjID" property="fcostobjid" jdbcType="INTEGER" /> |
| | | <result column="FStockQty" property="fstockqty" jdbcType="DECIMAL" /> |
| | | <result column="FAuxStockQty" property="fauxstockqty" jdbcType="DECIMAL" /> |
| | | <result column="FSuspend" property="fsuspend" jdbcType="BIT" /> |
| | | <result column="FProjectNO" property="fprojectno" jdbcType="INTEGER" /> |
| | | <result column="FProductionLineID" property="fproductionlineid" jdbcType="INTEGER" /> |
| | | <result column="FReleasedQty" property="freleasedqty" jdbcType="DECIMAL" /> |
| | | <result column="FReleasedAuxQty" property="freleasedauxqty" jdbcType="DECIMAL" /> |
| | | <result column="FUnScheduledQty" property="funscheduledqty" jdbcType="DECIMAL" /> |
| | | <result column="FUnScheduledAuxQty" property="funscheduledauxqty" jdbcType="DECIMAL" /> |
| | | <result column="FSubEntryID" property="fsubentryid" jdbcType="INTEGER" /> |
| | | <result column="FScheduleID" property="fscheduleid" jdbcType="INTEGER" /> |
| | | <result column="FPlanOrderInterID" property="fplanorderinterid" jdbcType="INTEGER" /> |
| | | <result column="FProcessPrice" property="fprocessprice" jdbcType="DECIMAL" /> |
| | | <result column="FProcessFee" property="fprocessfee" jdbcType="DECIMAL" /> |
| | | <result column="FGMPBatchNo" property="fgmpbatchno" jdbcType="VARCHAR" /> |
| | | <result column="FGMPCollectRate" property="fgmpcollectrate" jdbcType="DECIMAL" /> |
| | | <result column="FGMPItemBalance" property="fgmpitembalance" jdbcType="DECIMAL" /> |
| | | <result column="FGMPBulkQty" property="fgmpbulkqty" jdbcType="DECIMAL" /> |
| | | <result column="FCustID" property="fcustid" jdbcType="INTEGER" /> |
| | | <result column="FMultiCheckLevel1" property="fmultichecklevel1" jdbcType="INTEGER" /> |
| | | <result column="FMultiCheckLevel2" property="fmultichecklevel2" jdbcType="INTEGER" /> |
| | | <result column="FMultiCheckLevel3" property="fmultichecklevel3" jdbcType="INTEGER" /> |
| | | <result column="FMultiCheckLevel4" property="fmultichecklevel4" jdbcType="INTEGER" /> |
| | | <result column="FMultiCheckLevel5" property="fmultichecklevel5" jdbcType="INTEGER" /> |
| | | <result column="FMultiCheckLevel6" property="fmultichecklevel6" jdbcType="INTEGER" /> |
| | | <result column="FMultiCheckDate1" property="fmulticheckdate1" jdbcType="TIMESTAMP" /> |
| | | <result column="FMultiCheckDate2" property="fmulticheckdate2" jdbcType="TIMESTAMP" /> |
| | | <result column="FMultiCheckDate3" property="fmulticheckdate3" jdbcType="TIMESTAMP" /> |
| | | <result column="FMultiCheckDate4" property="fmulticheckdate4" jdbcType="TIMESTAMP" /> |
| | | <result column="FMultiCheckDate5" property="fmulticheckdate5" jdbcType="TIMESTAMP" /> |
| | | <result column="FMultiCheckDate6" property="fmulticheckdate6" jdbcType="TIMESTAMP" /> |
| | | <result column="FCurCheckLevel" property="fcurchecklevel" jdbcType="INTEGER" /> |
| | | <result column="FMRPLockFlag" property="fmrplockflag" jdbcType="INTEGER" /> |
| | | <result column="FHandworkClose" property="fhandworkclose" jdbcType="INTEGER" /> |
| | | <result column="FConfirmerID" property="fconfirmerid" jdbcType="INTEGER" /> |
| | | <result column="FConfirmDate" property="fconfirmdate" jdbcType="TIMESTAMP" /> |
| | | <result column="FInHighLimit" property="finhighlimit" jdbcType="DECIMAL" /> |
| | | <result column="FInHighLimitQty" property="finhighlimitqty" jdbcType="DECIMAL" /> |
| | | <result column="FAuxInHighLimitQty" property="fauxinhighlimitqty" jdbcType="DECIMAL" /> |
| | | <result column="FInLowLimit" property="finlowlimit" jdbcType="DECIMAL" /> |
| | | <result column="FInLowLimitQty" property="finlowlimitqty" jdbcType="DECIMAL" /> |
| | | <result column="FAuxInLowLimitQty" property="fauxinlowlimitqty" jdbcType="DECIMAL" /> |
| | | <result column="FChangeTimes" property="fchangetimes" jdbcType="INTEGER" /> |
| | | <result column="FCheckCommitQty" property="fcheckcommitqty" jdbcType="DECIMAL" /> |
| | | <result column="FAuxCheckCommitQty" property="fauxcheckcommitqty" jdbcType="DECIMAL" /> |
| | | <result column="FCloseDate" property="fclosedate" jdbcType="TIMESTAMP" /> |
| | | <result column="FPlanConfirmed" property="fplanconfirmed" jdbcType="INTEGER" /> |
| | | <result column="FPlanMode" property="fplanmode" jdbcType="INTEGER" /> |
| | | <result column="FMTONo" property="fmtono" jdbcType="NVARCHAR" /> |
| | | <result column="FPrintCount" property="fprintcount" jdbcType="INTEGER" /> |
| | | <result column="FFinClosed" property="ffinclosed" jdbcType="INTEGER" /> |
| | | <result column="FFinCloseer" property="ffincloseer" jdbcType="INTEGER" /> |
| | | <result column="FFinClosedate" property="ffinclosedate" jdbcType="TIMESTAMP" /> |
| | | <result column="FStockFlag" property="fstockflag" jdbcType="INTEGER" /> |
| | | <result column="FStartFlag" property="fstartflag" jdbcType="INTEGER" /> |
| | | <result column="FVchBillNo" property="fvchbillno" jdbcType="VARCHAR" /> |
| | | <result column="FVchInterID" property="fvchinterid" jdbcType="INTEGER" /> |
| | | <result column="FCardClosed" property="fcardclosed" jdbcType="INTEGER" /> |
| | | <result column="FHRReadyTime" property="fhrreadytime" jdbcType="DECIMAL" /> |
| | | <result column="FSourceTranType" property="fsourcetrantype" jdbcType="INTEGER" /> |
| | | <result column="FSourceInterId" property="fsourceinterid" jdbcType="INTEGER" /> |
| | | <result column="FSourceBillNo" property="fsourcebillno" jdbcType="NVARCHAR" /> |
| | | <result column="FDiscardStockInQty" property="fdiscardstockinqty" jdbcType="INTEGER" /> |
| | | <result column="FSelDiscardStockInQty" property="fseldiscardstockinqty" jdbcType="INTEGER" /> |
| | | <result column="FPlanCategory" property="fplancategory" jdbcType="NVARCHAR" /> |
| | | <result column="FAuxPropID" property="fauxpropid" jdbcType="INTEGER" /> |
| | | <result column="Tflag" property="tflag" jdbcType="INTEGER" /> |
| | | <result column="T_flag" property="tFlag" jdbcType="INTEGER" /> |
| | | |
| | | <result column="invCode" property="invCode" jdbcType="VARCHAR" /> |
| | | <result column="invName" property="invName" jdbcType="VARCHAR" /> |
| | | <result column="invStd" property="invStd" jdbcType="VARCHAR" /> |
| | | <result column="depId" property="depId" jdbcType="INTEGER" /> |
| | | <result column="depName" property="depName" jdbcType="VARCHAR" /> |
| | | <result column="depCode" property="depCode" jdbcType="VARCHAR" /> |
| | | <result column="soCode" property="soCode" jdbcType="VARCHAR" /> |
| | | <result column="iz_sync_receive" property="izSyncReceive" /> |
| | | <result column="iz_print" property="izPrint" jdbcType="VARCHAR" /> |
| | | <result column="iz_sync_receive_return" property="izSyncReceiveReturn" /> |
| | | <result column="iz_print_return" property="izPrintReturn" jdbcType="VARCHAR" /> |
| | | |
| | | |
| | | <result column="statusId" property="statusId" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <update id="updateMaxNum" > |
| | | update ICMaxNum set fmaxnum =#{finterid,jdbcType=INTEGER} |
| | | where FTableName =#{tableName,jdbcType=VARCHAR} |
| | | </update> |
| | | |
| | | |
| | | <select id="getIcmoDTOList" resultType="com.zy.kingdee.entity.IcmoDTO"> |
| | | select |
| | | inv.FNumber invCode,inv.FName invName,inv.FModel invStd,dep.FName depName,dep.FNumber depCode,so.FBillNo soCode,t.* |
| | | from ICMO t |
| | | left join t_IcItem inv on t.FItemID=inv.FItemID |
| | | left join t_Department dep on t.FWorkShop=dep.FItemID |
| | | left join SeOrder so on t.FOrderInterID=so.FInterID |
| | | where 1=1 and case when so.FBillNo is null then '' else so.FBillNo end !='' |
| | | and t.Fstatus=1 |
| | | <if test="main.finterid != null "> |
| | | and t.finterid= #{main.finterid,jdbcType=VARCHAR} |
| | | </if> |
| | | <if test="main.dateStart != null "> |
| | | and t.fplancommitdate >= #{main.dateStart, jdbcType=TIMESTAMP} |
| | | </if> |
| | | <if test="main.dateEnd != null "> |
| | | and t.fplancommitdate < #{main.dateEnd, jdbcType=TIMESTAMP} |
| | | </if> |
| | | |
| | | <if test="main.fplancommitdate != null "> |
| | | and t.fplancommitdate= #{main.fplancommitdate,jdbcType=TIMESTAMP} |
| | | </if> |
| | | <if test="main.depName != null and main.depName!=''"> |
| | | and dep.FNumber like '%'+#{main.depName}+'%' |
| | | </if> |
| | | <if test="main.depId != null "> |
| | | and t.FWorkShop= #{main.depId,jdbcType=INTEGER} |
| | | </if> |
| | | <if test="main.soCode != null and main.soCode!=''"> |
| | | and so.FBillNo like '%'+#{main.soCode}+'%' |
| | | </if> |
| | | <if test='main.izPrint != null and main.izPrint == "是"'> |
| | | and t.iz_print='是' |
| | | </if> |
| | | <if test='main.izPrint != null and main.izPrint == "否"'> |
| | | and case when t.iz_print is null then '' else t.iz_print end !='是' |
| | | </if> |
| | | |
| | | </select> |
| | | <resultMap id="VendorBaseResultMap" type="com.zy.kingdee.entity.Vendor"> |
| | | <result column="venId" property="venId" jdbcType="INTEGER" /> |
| | | <result column="venName" property="venName" jdbcType="VARCHAR" /> |
| | | <result column="venCode" property="venCode" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | |
| | | <select id="getVendorList" parameterType="com.zy.kingdee.entity.Vendor" resultMap="VendorBaseResultMap"> |
| | | select FItemID venId, FName venName,FNumber venCode |
| | | from t_Supplier |
| | | where 1=1 |
| | | <if test="venId != null "> |
| | | and FItemID= #{venId,jdbcType=INTEGER} |
| | | </if> |
| | | <if test="venCode != null and venCode !='' "> |
| | | and FNumber= #{venCode,jdbcType=VARCHAR} |
| | | </if> |
| | | order by FNumber |
| | | |
| | | </select> |
| | | |
| | | </mapper> |