|
@@ -78,7 +78,7 @@ public interface InOrOutOfWarehouseDao {
|
|
|
* @return 返回分页的数据
|
|
|
*/
|
|
|
@Select("<script>" +
|
|
|
- "select charge_code,out_seri,draw_no,in_draw_no,in_date,group_no,group_no_out,dept_code,out_date,confirm_date," +
|
|
|
+ "select charge_code,out_seri,out_seri old_out_seri,draw_no,draw_no old_draw_no,in_draw_no,in_date,group_no,group_no_out,dept_code,out_date,confirm_date," +
|
|
|
"out_amt,manu_no, " +
|
|
|
"dept_code_name = (select name from zd_unit_code where code = dept_code), " +
|
|
|
"group_no_name = (select group_name from yp_zd_group_name where group_no = yp_out_detl.group_no) ," +
|
|
@@ -129,9 +129,16 @@ public interface InOrOutOfWarehouseDao {
|
|
|
"group_no_out=#{groupNoOut},dept_code=#{deptCode},out_date=#{outDate}, " +
|
|
|
"sys_date=#{outDate}, " +
|
|
|
"confirm_date=#{confirmDate} " +
|
|
|
- "where out_seri=#{outSeri} and draw_no=#{oldDrawNo} and charge_code = #{chargeCode}")
|
|
|
+ "where out_seri=#{oldOutSeri} and draw_no=#{oldDrawNo} and charge_code = #{chargeCode}")
|
|
|
void xiuGaiChuKu(YpOutDetl param);
|
|
|
|
|
|
+
|
|
|
+ @Update("update yp_in_detl_yf set " +
|
|
|
+ "manu_no=#{manuNo},buy_amt = #{outAmt},group_no=#{groupNo} " +
|
|
|
+ "where charge_code = #{chargeCode} and out_draw_no = #{oldDrawNo} and in_seri = #{oldOutSeri}")
|
|
|
+ void xiuGaiYaoFangRuKuXinXi(YpOutDetl param);
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 删除出库的一条记录
|
|
|
*
|
|
@@ -151,5 +158,10 @@ public interface InOrOutOfWarehouseDao {
|
|
|
@Param("outSeri") Integer outSeri,
|
|
|
@Param("inDrawNo") String inDrawNo);
|
|
|
|
|
|
+ @Delete("delete from yp_in_detl_yf where out_draw_no=#{outDrawNo} and charge_code=#{chargeCode} and in_seri=#{inSeri}")
|
|
|
+ Integer shanChuYaoFangShuJu(@Param("outDrawNo") String outDrawNo,
|
|
|
+ @Param("chargeCode") String chargeCode,
|
|
|
+ @Param("inSeri") Integer inSeri);
|
|
|
+
|
|
|
|
|
|
}
|