物料同步
This commit is contained in:
parent
d53c7ae117
commit
d564ef3efe
|
@ -21,8 +21,10 @@ public interface IZjMaterielSynchronizationEventDao extends IBaseDao<ZjMaterielS
|
|||
|
||||
List<InventoryEntity> queryInventoryEntity(ZjMaterielSynchronizationEventDto entity);
|
||||
|
||||
Integer queryMaxLsh(ZjMaterielSynchronizationEventEntity entity);
|
||||
String queryMaxLsh(ZjMaterielSynchronizationEventEntity entity);
|
||||
|
||||
Integer updatewlbm(ZjMaterielSynchronizationEventEntity entity);
|
||||
|
||||
List<ZjMaterielSynchronizationEventEntity> queryById(ZjMaterielSynchronizationEventEntity entity1);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,8 +29,8 @@ public class ZjMaterielSynchronizationEventDaoImpl extends MybatisGenericDao<ZjM
|
|||
|
||||
@Override
|
||||
@DS("#entity.dataSourceCode")
|
||||
public Integer queryMaxLsh(ZjMaterielSynchronizationEventEntity entity) {
|
||||
return super.getCount(getSqlIdPrifx() + "queryMaxLsh",entity);
|
||||
public String queryMaxLsh(ZjMaterielSynchronizationEventEntity entity) {
|
||||
return (String) super.selectOne(getSqlIdPrifx() + "queryMaxLsh",entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -38,5 +38,11 @@ public class ZjMaterielSynchronizationEventDaoImpl extends MybatisGenericDao<ZjM
|
|||
public Integer updatewlbm(ZjMaterielSynchronizationEventEntity entity) {
|
||||
return super.update(getSqlIdPrifx() + "updatewlbm",entity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#entity.dataSourceCode")
|
||||
public List<ZjMaterielSynchronizationEventEntity> queryById(ZjMaterielSynchronizationEventEntity entity) {
|
||||
return (List<ZjMaterielSynchronizationEventEntity>) super.selectList(getSqlIdPrifx() + "queryById",entity);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.plugin.zjmaterielsynchronizationevent.dao.impl.ZjMaterielSynchronizationEventDaoImpl">
|
||||
|
||||
<select id="entity_list_base" resultType="com.hzya.frame.plugin.zjmaterielsynchronizationevent.entity.ZjMaterielSynchronizationEventEntity"
|
||||
<select id="queryById" resultType="com.hzya.frame.plugin.zjmaterielsynchronizationevent.entity.ZjMaterielSynchronizationEventEntity"
|
||||
parameterType = "com.hzya.frame.plugin.zjmaterielsynchronizationevent.entity.ZjMaterielSynchronizationEventEntity">
|
||||
select
|
||||
*
|
||||
|
@ -30,8 +30,8 @@
|
|||
</trim>
|
||||
</select>
|
||||
|
||||
<select id="queryMaxLsh" resultType="java.lang.Integer"
|
||||
parameterType = "com.hzya.frame.plugin.zjmaterielsynchronizationevent.entity.ZjMaterielSynchronizationEventDto">
|
||||
<select id="queryMaxLsh" resultType="java.lang.String"
|
||||
parameterType = "com.hzya.frame.plugin.zjmaterielsynchronizationevent.entity.ZjMaterielSynchronizationEventEntity">
|
||||
SELECT max(cInvCode) from Inventory
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="field0043code != null and field0043code != ''"> and cInvCCode = #{field0043code} and cInvCode like concat(#{field0043code},'%') </if>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1978,7 +1978,7 @@
|
|||
<if test="cCommodity != null and cCommodity !='' "> cCommodity, </if>
|
||||
<if test="iRecipeBatch != null and iRecipeBatch !='' "> iRecipeBatch, </if>
|
||||
<if test="cNotPatentName != null and cNotPatentName !='' "> cNotPatentName, </if>
|
||||
<if test="pubufts != null and pubufts !='' "> pubufts, </if>
|
||||
pubufts,
|
||||
<if test="bPromotSales != null and bPromotSales !='' "> bPromotSales, </if>
|
||||
<if test="iPlanPolicy != null and iPlanPolicy !='' "> iPlanPolicy, </if>
|
||||
<if test="iROPMethod != null and iROPMethod !='' "> iROPMethod, </if>
|
||||
|
@ -2238,7 +2238,7 @@
|
|||
<if test="cCommodity != null and cCommodity !='' "> #{cCommodity}, </if>
|
||||
<if test="iRecipeBatch != null and iRecipeBatch !='' "> #{iRecipeBatch}, </if>
|
||||
<if test="cNotPatentName != null and cNotPatentName !='' "> #{cNotPatentName}, </if>
|
||||
<if test="pubufts != null and pubufts !='' "> #{pubufts}, </if>
|
||||
DEFAULT,
|
||||
<if test="bPromotSales != null and bPromotSales !='' "> #{bPromotSales}, </if>
|
||||
<if test="iPlanPolicy != null and iPlanPolicy !='' "> #{iPlanPolicy}, </if>
|
||||
<if test="iROPMethod != null and iROPMethod !='' "> #{iROPMethod}, </if>
|
||||
|
|
Loading…
Reference in New Issue