功能修改
This commit is contained in:
parent
f4bd00b4fb
commit
8d6a68ee8e
|
|
@ -57,9 +57,10 @@
|
||||||
<th style="width:5%" class="center">原编号</th>
|
<th style="width:5%" class="center">原编号</th>
|
||||||
<th style="width:5%" class="center">设备编码</th>
|
<th style="width:5%" class="center">设备编码</th>
|
||||||
<th style="width:9%" class="center">资产属性</th>
|
<th style="width:9%" class="center">资产属性</th>
|
||||||
<th style="width:5%" class="center">合格证</th>
|
<th style="width:6%" class="center">出厂日期</th>
|
||||||
<th style="width:5%" class="center">技术材料</th>
|
<th style="width:4.5%" class="center">合格证</th>
|
||||||
<th style="width:5%" class="center">改造手续</th>
|
<th style="width:4.5%" class="center">技术材料</th>
|
||||||
|
<th style="width:4.5%" class="center">改造手续</th>
|
||||||
<th style="width:6%" class="center">操作手册</th>
|
<th style="width:6%" class="center">操作手册</th>
|
||||||
<th style="width:6%" class="center">二维码</th>
|
<th style="width:6%" class="center">二维码</th>
|
||||||
<th style="width:6%" class="center">机具状态</th>
|
<th style="width:6%" class="center">机具状态</th>
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,7 @@ function getbaseList(index) {
|
||||||
html += "<td style='vertical-align:middle;' class='center'>"+ JY.Object.notEmpty(l.originNum) + "</td>";
|
html += "<td style='vertical-align:middle;' class='center'>"+ JY.Object.notEmpty(l.originNum) + "</td>";
|
||||||
html += "<td style='vertical-align:middle;' class='center'>"+ JY.Object.notEmpty(l.deviceCode) + "</td>";
|
html += "<td style='vertical-align:middle;' class='center'>"+ JY.Object.notEmpty(l.deviceCode) + "</td>";
|
||||||
html += "<td style='vertical-align:middle;' class='center'>"+ JY.Object.notEmpty(l.companyName) + "</td>";
|
html += "<td style='vertical-align:middle;' class='center'>"+ JY.Object.notEmpty(l.companyName) + "</td>";
|
||||||
|
html += "<td style='vertical-align:middle;' class='center'>"+ JY.Object.notEmpty(l.outFactortTime) + "</td>";
|
||||||
if(l.fileName == null || l.fileName == 'null' || l.fileName == ''){
|
if(l.fileName == null || l.fileName == 'null' || l.fileName == ''){
|
||||||
html += "<td style='vertical-align:middle;' class='center'><a href='javascript:void(0)' onclick = 'uploadImg("+l.id+",1)'>上传</a></td>";
|
html += "<td style='vertical-align:middle;' class='center'><a href='javascript:void(0)' onclick = 'uploadImg("+l.id+",1)'>上传</a></td>";
|
||||||
html += "<td style='vertical-align:middle;' class='center'><a href='javascript:void(0)' onclick = 'uploadMaterials("+l.id+",2)'>上传</a></td>";
|
html += "<td style='vertical-align:middle;' class='center'><a href='javascript:void(0)' onclick = 'uploadMaterials("+l.id+",2)'>上传</a></td>";
|
||||||
|
|
|
||||||
|
|
@ -753,7 +753,7 @@
|
||||||
mat.UNIT AS unit,
|
mat.UNIT AS unit,
|
||||||
mat.LEASE_PRICE AS
|
mat.LEASE_PRICE AS
|
||||||
leasePrice,
|
leasePrice,
|
||||||
ROUND(CONVERT ( ( mr.PAY_PRICE ), DECIMAL ( 10, 2 ) )) AS
|
ROUND(CONVERT ( ( mat.PAY_PRICE ), DECIMAL ( 10, 2 ) )) AS
|
||||||
payPrice,
|
payPrice,
|
||||||
ROUND(mat.BUY_PRICE) AS buyPrice,
|
ROUND(mat.BUY_PRICE) AS buyPrice,
|
||||||
mat.IS_TEST AS isTest,
|
mat.IS_TEST AS isTest,
|
||||||
|
|
@ -815,15 +815,22 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateModel" parameterType="com.bonus.ma.beans.MachineTypeBean">
|
<update id="updateModel" parameterType="com.bonus.ma.beans.MachineTypeBean">
|
||||||
update mm_type
|
UPDATE mm_type
|
||||||
set `NAME`
|
<set>
|
||||||
= #{name},
|
`NAME` = #{name},
|
||||||
WEIGHT = #{weight},
|
<if test="weight != null and weight != ''">
|
||||||
UNIT = #{unit},
|
WEIGHT = #{weight},
|
||||||
IS_COUNT = #{isCount},
|
</if>
|
||||||
RFID_POWER=#{rfidPower}
|
UNIT = #{unit},
|
||||||
|
IS_COUNT = #{isCount},
|
||||||
where id = #{id}
|
<if test="rfidPower != null and rfidPower != ''">
|
||||||
|
RFID_POWER = #{rfidPower},
|
||||||
|
</if>
|
||||||
|
LEASE_PRICE = #{leasePrice},
|
||||||
|
BUY_PRICE = #{buyPrice},
|
||||||
|
PAY_PRICE = #{payPrice}
|
||||||
|
</set>
|
||||||
|
WHERE id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateOrgModel" parameterType="com.bonus.ma.beans.MachineTypeBean">
|
<update id="updateOrgModel" parameterType="com.bonus.ma.beans.MachineTypeBean">
|
||||||
|
|
|
||||||
|
|
@ -543,7 +543,7 @@
|
||||||
mt2.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
mt2.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
||||||
OR mt.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
OR mt.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
||||||
OR wir.`CODE` LIKE CONCAT('%',#{keyWord},'%')
|
OR wir.`CODE` LIKE CONCAT('%',#{keyWord},'%')
|
||||||
|
OR wir.REMARK LIKE CONCAT('%',#{keyWord},'%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
ORDER BY wir.TIME DESC
|
ORDER BY wir.TIME DESC
|
||||||
|
|
@ -887,7 +887,8 @@
|
||||||
AND(
|
AND(
|
||||||
mt2.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
mt2.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
||||||
OR mt.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
OR mt.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
||||||
OR wir.`CODE` LIKE CONCAT('%',#{keyWord},'%')
|
OR wir.`CODE` LIKE CONCAT('%',#{keyWord},'%')
|
||||||
|
OR mm.REMARK LIKE CONCAT('%',#{keyWord},'%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
ORDER BY wir.TIME DESC
|
ORDER BY wir.TIME DESC
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue