Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
03b9e4ce8c
|
|
@ -210,6 +210,21 @@ public class MachineController extends BaseController {
|
|||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 电子标签编码查询接口
|
||||
*
|
||||
* @param machine
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "电子标签编码查询接口")
|
||||
@GetMapping("/findMaMsgById")
|
||||
public AjaxResult findMaMsgById(Machine machine) {
|
||||
try {
|
||||
return success(machineService.findMaMsgById(machine));
|
||||
} catch (Exception e) {
|
||||
return error("系统错误, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据标签信息查询出库单
|
||||
|
|
|
|||
|
|
@ -330,5 +330,7 @@ public class Machine extends BaseEntity {
|
|||
|
||||
private String type;
|
||||
|
||||
private String repairMan;
|
||||
|
||||
private Integer manageType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -227,4 +227,6 @@ public interface MachineMapper
|
|||
int updateMaStatus(BoxBindWarehouseDto boxMa);
|
||||
|
||||
List<Machine> getNewByMaCode(Machine machine);
|
||||
|
||||
List<Machine> findMaMsgById(Machine machine);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -144,4 +144,6 @@ public interface IMachineService
|
|||
AjaxResult editMachineStatus(Machine machine);
|
||||
|
||||
List<Machine> getNewByMaCode(Machine machine);
|
||||
|
||||
List<Machine> findMaMsgById(Machine machine);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -587,6 +587,11 @@ public class MachineServiceImpl implements IMachineService
|
|||
return machineMapper.getNewByMaCode(machine);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Machine> findMaMsgById(Machine machine) {
|
||||
return machineMapper.findMaMsgById(machine);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编码铭牌信息
|
||||
* @param machine
|
||||
|
|
|
|||
|
|
@ -995,8 +995,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
update ma_machine set ma_status = 1 where ma_id = #{maId}
|
||||
</update>
|
||||
|
||||
<select id="getNewByMaCode" resultMap="MachineResult">
|
||||
<select id="getNewByMaCode" resultType="com.bonus.material.ma.domain.Machine">
|
||||
|
||||
SELECT
|
||||
mm.ma_id AS maId,
|
||||
mt2.type_name as materialName,
|
||||
mt.type_name as materialModel,
|
||||
mm.ma_code as maCode,
|
||||
LEFT(mm.this_check_time, 10) AS thisCheckTime,
|
||||
LEFT(mm.next_check_time, 10) AS nextCheckTime,
|
||||
mm.check_man as repairMan,
|
||||
ifnull(mm.inspect_man,"高民") as checkMan,
|
||||
"0551-63703966" as phone,
|
||||
"合格" as result,mm.ex_code AS reportCode,mm.ex_url AS reportUrl,
|
||||
is_jj as type,
|
||||
mt.jiju_type as devType
|
||||
FROM ma_machine mm
|
||||
LEFT JOIN ma_type mt on mm.type_id = mt.type_id
|
||||
LEFT JOIN ma_type mt2 on mt.parent_id = mt2.type_id
|
||||
WHERE mm.ma_code LIKE CONCAT('%',#{maCode},'%') and mt.MANAGE_TYPE =0
|
||||
UNION
|
||||
SELECT
|
||||
mi.id as maId,
|
||||
mi.ma_name as materialName,
|
||||
|
|
@ -1013,23 +1031,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM
|
||||
ws_ma_info mi
|
||||
WHERE mi.ma_code LIKE CONCAT('%',#{maCode},'%') and mi.is_active = 1
|
||||
UNION
|
||||
|
||||
LIMIT 60
|
||||
</select>
|
||||
|
||||
<select id="findMaMsgById" resultType="com.bonus.material.ma.domain.Machine">
|
||||
SELECT
|
||||
mm.ma_id AS id,
|
||||
mt2.type_name as maName,
|
||||
mt.type_name as maModel,
|
||||
mm.ma_code as maCode,
|
||||
LEFT(mm.this_check_time, 10) AS thisCheckTime,
|
||||
LEFT(mm.next_check_time, 10) AS nextCheckTime,
|
||||
mm.check_man as repairMan,
|
||||
ifnull(mm.inspect_man,"高民") as checkMan,
|
||||
"0551-63703966" as phone,
|
||||
"合格" as result,mm.ex_code AS reportCode,mm.ex_url AS reportUrl,
|
||||
is_jj as type,
|
||||
mt.jiju_type as devType
|
||||
FROM ma_machine mm
|
||||
LEFT JOIN ma_type mt on mm.type_id = mt.type_id
|
||||
LEFT JOIN ma_type mt2 on mt.parent_id = mt2.type_id
|
||||
WHERE mm.ma_code LIKE CONCAT('%',#{maCode},'%') and mt.MANAGE_TYPE =0
|
||||
mi.id as maId,
|
||||
mi.ma_name as materialName,
|
||||
mi.ma_model as materialModel,
|
||||
mi.ma_code as maCode,
|
||||
LEFT(mi.this_check_time, 10) AS thisCheckTime,
|
||||
LEFT(mi.next_check_time, 10) AS nextCheckTime,
|
||||
mi.repair_man as repairMan,
|
||||
mi.check_man as checkMan,
|
||||
mi.phone,
|
||||
mi.result,null AS reportCode,null AS reportUrl,
|
||||
mi.type,
|
||||
'1' as devType
|
||||
FROM
|
||||
ws_ma_info mi
|
||||
WHERE mi.id =#{maId}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue