|
@@ -8,6 +8,7 @@ import org.apache.ibatis.annotations.Update;
|
|
|
import thyyxxk.webserver.entity.datamodify.GetDropdownBox;
|
|
|
import thyyxxk.webserver.entity.datamodify.InOrOutOfWarehousePojo;
|
|
|
import thyyxxk.webserver.entity.datamodify.YpInDetl;
|
|
|
+import thyyxxk.webserver.entity.datamodify.YpOutDetl;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@@ -26,7 +27,7 @@ public interface InOrOutOfWarehouseDao {
|
|
|
"select supply_code_name = (select name from yp_zd_supply where code = supply_code), " +
|
|
|
"manu_code_name = (select name from yp_zd_manufactory where code = manu_code)," +
|
|
|
"purchaser_name = (select name from a_employee_mi where code = purchaser)," +
|
|
|
- "charge_code_name = (select name from yp_zd_dict where isnull(del_flag,0) = 0 " +
|
|
|
+ "charge_code_name = (select name from yp_zd_dict where isnull(del_flag,0) = 0 " +
|
|
|
"and serial = yp_in_detl.serial and code = charge_code),* " +
|
|
|
"from yp_in_detl where in_date >= #{param.startTime} and in_date<=#{param.endTime} " +
|
|
|
"<if test=\"param.inDocuNo!=null and param.inDocuNo!=''\">" +
|
|
@@ -46,6 +47,37 @@ public interface InOrOutOfWarehouseDao {
|
|
|
"license_no=#{licenseNo},in_comment=#{inComment}, " +
|
|
|
"in_date=#{inDate},sys_date=#{inDate},confirm_date=#{confirmDate}," +
|
|
|
"fp_date=#{fpDate},eff_date=#{effDate} " +
|
|
|
- "where in_docu_no = #{oldInDocuNo} and charge_code = #{chargeCode}")
|
|
|
+ "where in_docu_no = #{oldInDocuNo} and charge_code = #{chargeCode} and in_seri=#{inSeri}")
|
|
|
void xiuGiRuKuXinXi(YpInDetl param);
|
|
|
+
|
|
|
+
|
|
|
+ @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, " +
|
|
|
+ "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) ," +
|
|
|
+ "group_no_out_name = (select group_name from yp_zd_group_name where group_no = yp_out_detl.group_no) ," +
|
|
|
+ "charge_code_name = (select name from yp_zd_dict where " +
|
|
|
+ "code = charge_code and serial = yp_out_detl.serial) " +
|
|
|
+ "from yp_out_detl where out_date >= #{param.startTime} and out_date<=#{param.endTime} " +
|
|
|
+ "<if test=\"param.inDrawNo!=null and param.inDrawNo!=''\">" +
|
|
|
+ "and in_draw_no=#{param.inDrawNo}" +
|
|
|
+ "</if>" +
|
|
|
+ "</script>")
|
|
|
+ List<YpOutDetl> queryChuKuXinXi(IPage<InOrOutOfWarehousePojo> page, @Param("param") InOrOutOfWarehousePojo param);
|
|
|
+
|
|
|
+
|
|
|
+ @Select("select code,rtrim(name)name from zd_unit_code")
|
|
|
+ List<GetDropdownBox> queryDeptCode();
|
|
|
+
|
|
|
+ @Select("select group_no code,rtrim(group_name) name from yp_zd_group_name")
|
|
|
+ List<GetDropdownBox> queryGroupNo();
|
|
|
+
|
|
|
+ @Update("update yp_out_detl set draw_no=#{drawNo},out_seri=#{outSeri},in_draw_no=#{inDrawNo}, " +
|
|
|
+ "in_date=#{inDate},group_no=#{groupNo},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}")
|
|
|
+ void xiuGaiChuKu(YpOutDetl param);
|
|
|
+
|
|
|
+
|
|
|
}
|