WarehouseMapper.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.usoftchina.saas.document.mapper.WarehouseMapper">
  4. <resultMap id="WarehouseResultMapper" type="com.usoftchina.saas.document.entities.Warehouse">
  5. <id column="wh_id" property="id" jdbcType="INTEGER" />
  6. <result column="wh_code" property="wh_code" jdbcType="VARCHAR" />
  7. <result column="wh_type" property="wh_type" jdbcType="VARCHAR" />
  8. <result column="wh_description" property="wh_description" jdbcType="VARCHAR" />
  9. <result column="wh_statuscode" property="wh_statuscode" jdbcType="VARCHAR" />
  10. <result column="wh_status" property="wh_status" jdbcType="TIMESTAMP" />
  11. <result column="wh_recordid" property="wh_recordid" jdbcType="INTEGER" />
  12. <result column="wh_recorder" property="wh_recorder" jdbcType="INTEGER" />
  13. <result column="wh_date" property="wh_date" jdbcType="INTEGER" />
  14. <result column="companyid" property="companyId" jdbcType="INTEGER" />
  15. <result column="updatemanid" property="updaterId" jdbcType="INTEGER" />
  16. <result column="updatedate" property="updateTime" jdbcType="TIMESTAMP" />
  17. <result column="wh_text1" property="wh_text1" jdbcType="VARCHAR" />
  18. <result column="wh_text2" property="wh_text2" jdbcType="VARCHAR" />
  19. <result column="wh_text3" property="wh_text3" jdbcType="VARCHAR" />
  20. <result column="wh_text4" property="wh_text4" jdbcType="VARCHAR" />
  21. <result column="wh_text5" property="wh_text5" jdbcType="VARCHAR" />
  22. </resultMap>
  23. <select id="callProcedure" parameterMap="paramMap" statementType="CALLABLE">
  24. CALL SP_COMMITPRODINOUT(?, ?, ?, ?, ?)
  25. </select>
  26. <parameterMap id="paramMap" type="java.util.Map">
  27. <parameter property="inoutNo" jdbcType="VARCHAR" mode="IN" />
  28. <parameter property="class" jdbcType="VARCHAR" mode="IN" />
  29. <parameter property="commitid" jdbcType="INTEGER" mode="IN" />
  30. <parameter property="companyid" jdbcType="INTEGER" mode="IN" />
  31. <parameter property="result" jdbcType="VARCHAR" mode="OUT" />
  32. </parameterMap>
  33. <select id="validPeriod" parameterType="map" resultType="java.lang.Short">
  34. SELECT IFNULL(PD_STATUS,0) PD_STATUS FROM PERIODSDETAIL WHERE COMPANYID=#{companyId} AND PD_DETNO=#{period}
  35. </select>
  36. </mapper>