Browse Source

zww- 工具接收-工具实例生成BUG修改

master
zuowenwen 5 years ago
parent
commit
f467042f10
  1. 10
      src/main/resources/mapper/app/DepartmentMapper.xml
  2. 2
      src/main/resources/mapper/toolman/ToolDetailMapper.xml
  3. 1
      src/main/resources/static/js/pda/toolBorrowing.js

10
src/main/resources/mapper/app/DepartmentMapper.xml

@ -24,15 +24,15 @@
</sql> </sql>
<select id="getDepartmentList" resultMap="BaseResultMap"> <select id="getDepartmentList" resultMap="BaseResultMap">
<!--@mbg.generated--> <!--@mbg.generated-->
select
<include refid="Base_Column_List"/>
from department
select A.id,A.site,A.department_no,A.department_desc,A.active,A.created_by,A.created_date,A.remark,A.update_by
,A.updated_date,A.delflag,A.version
from department A
<where> <where>
<if test="site != null"> <if test="site != null">
and site=#{site,jdbcType=VARCHAR}
and A.site=#{site,jdbcType=VARCHAR}
</if> </if>
<if test="active != null"> <if test="active != null">
and active=#{active,jdbcType=CHAR}
and A.active=#{active,jdbcType=CHAR}
</if> </if>
</where> </where>
</select> </select>

2
src/main/resources/mapper/toolman/ToolDetailMapper.xml

@ -249,7 +249,7 @@
and Site=#{site,jdbcType=VARCHAR} and Site=#{site,jdbcType=VARCHAR}
</if> </if>
<if test="toolId != null and toolId != ''"> <if test="toolId != null and toolId != ''">
and ToolInstanceID LIKE #{toolId,jdbcType=VARCHAR}+'%'
and ToolID = #{toolId,jdbcType=VARCHAR}
</if> </if>
</where> </where>
</select> </select>

1
src/main/resources/static/js/pda/toolBorrowing.js

@ -21,6 +21,7 @@ $(function(){
function initWorkCenter(){ function initWorkCenter(){
var jsonData = { var jsonData = {
site : site, site : site,
active : 'Y',
} }
$.ajax({ $.ajax({
url: "/toolPda/getDepartmentList", url: "/toolPda/getDepartmentList",

Loading…
Cancel
Save