完善接口

This commit is contained in:
刘名喜 2024-11-28 10:40:23 +08:00
parent d1d2c72fbe
commit fede5e6540
3 changed files with 7 additions and 6 deletions

View File

@ -5,7 +5,7 @@ import com.ktg.mes.md.domain.AP0AE;
import java.util.List;
public interface AP0AEMapper {
List<AP0AE> selectAll();
List<AP0AE> selectOutNewData();
int update(AP0AE ap0ae);
int updateOutDataToOld(AP0AE ap0ae);
}

View File

@ -18,6 +18,6 @@ public class AP0AEServiceImpl implements IAP0AEService {
@DataSource(DataSourceType.SQLSERVER)
@Override
public List<AP0AE> selectAllAP0AE() {
return this.aP0AEMapper.selectAll();
return this.aP0AEMapper.selectOutNewData();
}
}

View File

@ -104,13 +104,14 @@
from AP0AE
</sql>
<select id="selectAll" resultMap="AP0AEResult">
<select id="selectOutNewData" resultMap="AP0AEResult">
<include refid="AP0AESelectAllCol"/>
where UDF07 != 'ED'
</select>
<update id="update">
<update id="updateOutDataToOld">
update AP0AE
set UDF07 = #{UDF07}
set UDF07 = 'ED'
where AE001 = #{AE001}
AND AE002 = #{AE002}
AND AE003 = #{AE003}