Commit 5aaa015d authored by 韩桐桐's avatar 韩桐桐

feat(jg):设备办理jg业务log接口

parent e9183a18
...@@ -39,6 +39,9 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> { ...@@ -39,6 +39,9 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
Map<String, Object> getUserPhone(String name ,String companyCode); Map<String, Object> getUserPhone(String name ,String companyCode);
Map<String, Object> equOnJgServiceOperationRecords(String record);
/** /**
* 统计指定设备流程中的引用次数(12个流程中,非待提交、非已撤回、非已驳回) * 统计指定设备流程中的引用次数(12个流程中,非待提交、非已撤回、非已驳回)
* @param record 设备唯一标识 * @param record 设备唯一标识
......
...@@ -95,6 +95,18 @@ ...@@ -95,6 +95,18 @@
and name = #{name} and name = #{name}
AND is_delete = 0 AND is_delete = 0
</select> </select>
<select id="equOnJgServiceOperationRecords" resultType="java.util.Map">
select
sequenceNbr,
businessName,
recUserId,
recUserName,
DATE_FORMAT(recDate,'%Y-%m-%d %H:%i:%s') as recDate
from idx_biz_view_jg_equ_log
where sequenceNbr = #{record}
order by recDate ASC
</select>
<select id="selectPromoterData" resultType="java.lang.String"> <select id="selectPromoterData" resultType="java.lang.String">
select select
promoter promoter
......
...@@ -436,11 +436,13 @@ public class CommonController extends BaseController { ...@@ -436,11 +436,13 @@ public class CommonController extends BaseController {
return ResponseHelper.buildResponse(result); return ResponseHelper.buildResponse(result);
} }
/** @TycloudOperation(ApiLevel = UserType.AGENCY)
* 查询当前登录用户公司下的管理员对应联系方式 @GetMapping(value = "/equOnJgServiceOperationRecords")
* @ApiOperation(httpMethod = "GET", value = "查询设备在jg业务中的记录", notes = "查询设备在jg业务中的记录")
* @return public ResponseModel<Map<String, Object>> equOnJgServiceOperationRecords(@RequestParam(value = "record") String record) {
*/ return ResponseHelper.buildResponse(commonService.equOnJgServiceOperationRecords(record));
}
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/getUserPhone") @GetMapping(value = "/getUserPhone")
@ApiOperation(httpMethod = "GET", value = "查询当前登录用户公司下的管理员对应联系方式", notes = "查询当前登录用户公司下的管理员对应联系方式,证件编号") @ApiOperation(httpMethod = "GET", value = "查询当前登录用户公司下的管理员对应联系方式", notes = "查询当前登录用户公司下的管理员对应联系方式,证件编号")
......
...@@ -90,6 +90,9 @@ public interface ICommonService { ...@@ -90,6 +90,9 @@ public interface ICommonService {
Map<String, Object> getUserPhone(String name); Map<String, Object> getUserPhone(String name);
Map<String, Object> equOnJgServiceOperationRecords(String record);
/** /**
* 执行流程时前置校验 * 执行流程时前置校验
* *
......
...@@ -534,6 +534,17 @@ public class CommonServiceImpl implements ICommonService { ...@@ -534,6 +534,17 @@ public class CommonServiceImpl implements ICommonService {
} }
/** /**
* 查询设备在jg业务中的记录
*
* @param record
* @return
*/
@Override
public Map<String, Object> equOnJgServiceOperationRecords(String record) {
return commonMapper.equOnJgServiceOperationRecords(record);
}
/**
* 查询当前登录用户公司下的管理员对应联系方式 * 查询当前登录用户公司下的管理员对应联系方式
* *
* @param name * @param name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment