|
@@ -23,12 +23,19 @@ import java.util.List;
|
|
|
@Mapper
|
|
|
public interface InOrOutOfWarehouseDao {
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据入库单号 或者 入库时间 来查询数据
|
|
|
+ *
|
|
|
+ * @param page 分页对象
|
|
|
+ * @param param currentPage pageSize startTime endTime inDocuNo:入库单号
|
|
|
+ * @return 返回分页的数据
|
|
|
+ */
|
|
|
@Select("<script>" +
|
|
|
"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 " +
|
|
|
- "and serial = yp_in_detl.serial and code = charge_code),* " +
|
|
|
+ "charge_code_name = (select name from yp_zd_dict where " +
|
|
|
+ " serial = yp_in_detl.serial and code = charge_code),* " +
|
|
|
"from yp_in_detl where 1=1 " +
|
|
|
"<if test=\"param.startTime!=null and param.startTime!=''\">" +
|
|
|
"and in_date >= #{param.startTime} and in_date<=#{param.endTime} " +
|
|
@@ -40,11 +47,23 @@ public interface InOrOutOfWarehouseDao {
|
|
|
List<YpInDetl> queryRuKuXinXi(IPage<InOrOutOfWarehousePojo> page, @Param("param") InOrOutOfWarehousePojo param);
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据不同拼音码 和 不同的表格来查询数据
|
|
|
+ *
|
|
|
+ * @param tableName 要查询的表格名称
|
|
|
+ * @param pyCode 拼音码
|
|
|
+ * @return 返回多个 code 和 name
|
|
|
+ */
|
|
|
@Select("select code,rtrim(name)name from ${tableName} where py_code like #{pyCode} and isnull(del_flag,0)=0")
|
|
|
List<GetDropdownBox> queryCode(@Param("tableName") String tableName,
|
|
|
@Param("pyCode") String pyCode);
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新 入库信息
|
|
|
+ *
|
|
|
+ * @param param 要更新的字段
|
|
|
+ */
|
|
|
@Update("update yp_in_detl set in_docu_no=#{inDocuNo},supply_code=#{supplyCode},rept_no=#{reptNo}, " +
|
|
|
"purchaser=#{purchaser},fp_no=#{fpNo},manu_no=#{manuNo},manu_code=#{manuCode}," +
|
|
|
"license_no=#{licenseNo},in_comment=#{inComment}, " +
|
|
@@ -54,6 +73,13 @@ public interface InOrOutOfWarehouseDao {
|
|
|
void xiuGiRuKuXinXi(YpInDetl param);
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据入库单号 或者 入库时间 来查询数据
|
|
|
+ *
|
|
|
+ * @param page 分页对象
|
|
|
+ * @param param currentPage pageSize startTime endTime drawNo:出库单号
|
|
|
+ * @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," +
|
|
|
"out_amt,manu_no, " +
|
|
@@ -73,12 +99,27 @@ public interface InOrOutOfWarehouseDao {
|
|
|
List<YpOutDetl> queryChuKuXinXi(IPage<InOrOutOfWarehousePojo> page, @Param("param") InOrOutOfWarehousePojo param);
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取到科室的code
|
|
|
+ *
|
|
|
+ * @return 返回全部的科室 code name
|
|
|
+ */
|
|
|
@Select("select code,rtrim(name)name from zd_unit_code")
|
|
|
List<GetDropdownBox> queryDeptCode();
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取 药房的 code name
|
|
|
+ *
|
|
|
+ * @return 返回code name
|
|
|
+ */
|
|
|
@Select("select group_no code,rtrim(group_name) name from yp_zd_group_name")
|
|
|
List<GetDropdownBox> queryGroupNo();
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新 出库的信息
|
|
|
+ *
|
|
|
+ * @param param 要更新的字段
|
|
|
+ */
|
|
|
@Update("update yp_out_detl set draw_no=#{drawNo},out_seri=#{outSeri},in_draw_no=#{inDrawNo}, " +
|
|
|
"in_date=#{inDate},group_no=#{groupNo}," +
|
|
|
"out_amt=#{outAmt},manu_no=#{manuNo}," +
|