app后端接口,生物安全查询修改
This commit is contained in:
140
zhyc-module/src/main/resources/mapper/app/AppErrorLogMapper.xml
Normal file
140
zhyc-module/src/main/resources/mapper/app/AppErrorLogMapper.xml
Normal file
@@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhyc.module.app.mapper.AppErrorLogMapper">
|
||||
|
||||
<resultMap type="AppErrorLog" id="AppErrorLogResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="deviceId" column="device_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="appVersion" column="app_version" />
|
||||
<result property="appCode" column="app_code" />
|
||||
<result property="platform" column="platform" />
|
||||
<result property="osVersion" column="os_version" />
|
||||
<result property="errorType" column="error_type" />
|
||||
<result property="errorCode" column="error_code" />
|
||||
<result property="errorMessage" column="error_message" />
|
||||
<result property="stackTrace" column="stack_trace" />
|
||||
<result property="pageUrl" column="page_url" />
|
||||
<result property="apiUrl" column="api_url" />
|
||||
<result property="apiParams" column="api_params" />
|
||||
<result property="networkType" column="network_type" />
|
||||
<result property="screenWidth" column="screen_width" />
|
||||
<result property="screenHeight" column="screen_height" />
|
||||
<result property="customData" column="custom_data" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAppErrorLogVo">
|
||||
select id, device_id, user_id, app_version, app_code, platform, os_version, error_type, error_code, error_message, stack_trace, page_url, api_url, api_params, network_type, screen_width, screen_height, custom_data, create_time from app_error_log
|
||||
</sql>
|
||||
|
||||
<select id="selectAppErrorLogList" parameterType="AppErrorLog" resultMap="AppErrorLogResult">
|
||||
<include refid="selectAppErrorLogVo"/>
|
||||
<where>
|
||||
<if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="appVersion != null and appVersion != ''"> and app_version = #{appVersion}</if>
|
||||
<if test="appCode != null "> and app_code = #{appCode}</if>
|
||||
<if test="platform != null and platform != ''"> and platform = #{platform}</if>
|
||||
<if test="osVersion != null and osVersion != ''"> and os_version = #{osVersion}</if>
|
||||
<if test="errorType != null and errorType != ''"> and error_type = #{errorType}</if>
|
||||
<if test="errorCode != null and errorCode != ''"> and error_code = #{errorCode}</if>
|
||||
<if test="errorMessage != null and errorMessage != ''"> and error_message = #{errorMessage}</if>
|
||||
<if test="stackTrace != null and stackTrace != ''"> and stack_trace = #{stackTrace}</if>
|
||||
<if test="pageUrl != null and pageUrl != ''"> and page_url = #{pageUrl}</if>
|
||||
<if test="apiUrl != null and apiUrl != ''"> and api_url = #{apiUrl}</if>
|
||||
<if test="apiParams != null and apiParams != ''"> and api_params = #{apiParams}</if>
|
||||
<if test="networkType != null and networkType != ''"> and network_type = #{networkType}</if>
|
||||
<if test="screenWidth != null "> and screen_width = #{screenWidth}</if>
|
||||
<if test="screenHeight != null "> and screen_height = #{screenHeight}</if>
|
||||
<if test="customData != null and customData != ''"> and custom_data = #{customData}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectAppErrorLogById" parameterType="Long" resultMap="AppErrorLogResult">
|
||||
<include refid="selectAppErrorLogVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertAppErrorLog" parameterType="AppErrorLog" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into app_error_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="appVersion != null and appVersion != ''">app_version,</if>
|
||||
<if test="appCode != null">app_code,</if>
|
||||
<if test="platform != null">platform,</if>
|
||||
<if test="osVersion != null">os_version,</if>
|
||||
<if test="errorType != null">error_type,</if>
|
||||
<if test="errorCode != null">error_code,</if>
|
||||
<if test="errorMessage != null">error_message,</if>
|
||||
<if test="stackTrace != null">stack_trace,</if>
|
||||
<if test="pageUrl != null">page_url,</if>
|
||||
<if test="apiUrl != null">api_url,</if>
|
||||
<if test="apiParams != null">api_params,</if>
|
||||
<if test="networkType != null">network_type,</if>
|
||||
<if test="screenWidth != null">screen_width,</if>
|
||||
<if test="screenHeight != null">screen_height,</if>
|
||||
<if test="customData != null">custom_data,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="appVersion != null and appVersion != ''">#{appVersion},</if>
|
||||
<if test="appCode != null">#{appCode},</if>
|
||||
<if test="platform != null">#{platform},</if>
|
||||
<if test="osVersion != null">#{osVersion},</if>
|
||||
<if test="errorType != null">#{errorType},</if>
|
||||
<if test="errorCode != null">#{errorCode},</if>
|
||||
<if test="errorMessage != null">#{errorMessage},</if>
|
||||
<if test="stackTrace != null">#{stackTrace},</if>
|
||||
<if test="pageUrl != null">#{pageUrl},</if>
|
||||
<if test="apiUrl != null">#{apiUrl},</if>
|
||||
<if test="apiParams != null">#{apiParams},</if>
|
||||
<if test="networkType != null">#{networkType},</if>
|
||||
<if test="screenWidth != null">#{screenWidth},</if>
|
||||
<if test="screenHeight != null">#{screenHeight},</if>
|
||||
<if test="customData != null">#{customData},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateAppErrorLog" parameterType="AppErrorLog">
|
||||
update app_error_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id = #{deviceId},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="appVersion != null and appVersion != ''">app_version = #{appVersion},</if>
|
||||
<if test="appCode != null">app_code = #{appCode},</if>
|
||||
<if test="platform != null">platform = #{platform},</if>
|
||||
<if test="osVersion != null">os_version = #{osVersion},</if>
|
||||
<if test="errorType != null">error_type = #{errorType},</if>
|
||||
<if test="errorCode != null">error_code = #{errorCode},</if>
|
||||
<if test="errorMessage != null">error_message = #{errorMessage},</if>
|
||||
<if test="stackTrace != null">stack_trace = #{stackTrace},</if>
|
||||
<if test="pageUrl != null">page_url = #{pageUrl},</if>
|
||||
<if test="apiUrl != null">api_url = #{apiUrl},</if>
|
||||
<if test="apiParams != null">api_params = #{apiParams},</if>
|
||||
<if test="networkType != null">network_type = #{networkType},</if>
|
||||
<if test="screenWidth != null">screen_width = #{screenWidth},</if>
|
||||
<if test="screenHeight != null">screen_height = #{screenHeight},</if>
|
||||
<if test="customData != null">custom_data = #{customData},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteAppErrorLogById" parameterType="Long">
|
||||
delete from app_error_log where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteAppErrorLogByIds" parameterType="String">
|
||||
delete from app_error_log where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
114
zhyc-module/src/main/resources/mapper/app/AppSettingsMapper.xml
Normal file
114
zhyc-module/src/main/resources/mapper/app/AppSettingsMapper.xml
Normal file
@@ -0,0 +1,114 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhyc.module.app.mapper.AppSettingsMapper">
|
||||
|
||||
<resultMap type="com.zhyc.module.app.domain.AppSettings" id="AppSettingsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="settingKey" column="setting_key" />
|
||||
<result property="settingValue" column="setting_value" />
|
||||
<result property="settingType" column="setting_type" />
|
||||
<result property="settingGroup" column="setting_group" />
|
||||
<result property="settingDesc" column="setting_desc" />
|
||||
<result property="platform" column="platform" />
|
||||
<result property="versionRange" column="version_range" />
|
||||
<result property="status" column="status" />
|
||||
<result property="logical" column="logical" />
|
||||
<result property="customData" column="custom_data" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAppSettingsVo">
|
||||
select id, user_id, setting_key, setting_value, setting_type, setting_group, setting_desc, platform, version_range, status, logical, custom_data, create_time, update_time from app_settings
|
||||
</sql>
|
||||
|
||||
<select id="selectAppSettingsList" parameterType="AppSettings" resultMap="AppSettingsResult">
|
||||
<include refid="selectAppSettingsVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="settingKey != null and settingKey != ''"> and setting_key = #{settingKey}</if>
|
||||
<if test="settingValue != null and settingValue != ''"> and setting_value = #{settingValue}</if>
|
||||
<if test="settingType != null and settingType != ''"> and setting_type = #{settingType}</if>
|
||||
<if test="settingGroup != null and settingGroup != ''"> and setting_group = #{settingGroup}</if>
|
||||
<if test="settingDesc != null and settingDesc != ''"> and setting_desc = #{settingDesc}</if>
|
||||
<if test="platform != null and platform != ''"> and platform = #{platform}</if>
|
||||
<if test="versionRange != null and versionRange != ''"> and version_range = #{versionRange}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="logical != null "> and logical = #{logical}</if>
|
||||
<if test="customData != null and customData != ''"> and custom_data = #{customData}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectAppSettingsById" parameterType="Long" resultMap="AppSettingsResult">
|
||||
<include refid="selectAppSettingsVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertAppSettings" parameterType="AppSettings" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into app_settings
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="settingKey != null and settingKey != ''">setting_key,</if>
|
||||
<if test="settingValue != null">setting_value,</if>
|
||||
<if test="settingType != null">setting_type,</if>
|
||||
<if test="settingGroup != null">setting_group,</if>
|
||||
<if test="settingDesc != null">setting_desc,</if>
|
||||
<if test="platform != null">platform,</if>
|
||||
<if test="versionRange != null">version_range,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="logical != null">logical,</if>
|
||||
<if test="customData != null">custom_data,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="settingKey != null and settingKey != ''">#{settingKey},</if>
|
||||
<if test="settingValue != null">#{settingValue},</if>
|
||||
<if test="settingType != null">#{settingType},</if>
|
||||
<if test="settingGroup != null">#{settingGroup},</if>
|
||||
<if test="settingDesc != null">#{settingDesc},</if>
|
||||
<if test="platform != null">#{platform},</if>
|
||||
<if test="versionRange != null">#{versionRange},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="logical != null">#{logical},</if>
|
||||
<if test="customData != null">#{customData},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateAppSettings" parameterType="AppSettings">
|
||||
update app_settings
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="settingKey != null and settingKey != ''">setting_key = #{settingKey},</if>
|
||||
<if test="settingValue != null">setting_value = #{settingValue},</if>
|
||||
<if test="settingType != null">setting_type = #{settingType},</if>
|
||||
<if test="settingGroup != null">setting_group = #{settingGroup},</if>
|
||||
<if test="settingDesc != null">setting_desc = #{settingDesc},</if>
|
||||
<if test="platform != null">platform = #{platform},</if>
|
||||
<if test="versionRange != null">version_range = #{versionRange},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="logical != null">logical = #{logical},</if>
|
||||
<if test="customData != null">custom_data = #{customData},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteAppSettingsById" parameterType="Long">
|
||||
delete from app_settings where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteAppSettingsByIds" parameterType="String">
|
||||
delete from app_settings where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhyc.module.stock.mapper.WzMaterialsManagementMapper">
|
||||
|
||||
<resultMap type="WzMaterialsManagement" id="WzMaterialsManagementResult">
|
||||
<resultMap type="com.zhyc.module.stock.domain.WzMaterialsManagement" id="WzMaterialsManagementResult">
|
||||
<result property="materialManagementCode" column="material_management_code" />
|
||||
<result property="materialId" column="material_id" />
|
||||
<result property="materialName" column="material_name" />
|
||||
|
||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhyc.module.work.mapper.WorkOrderMapper">
|
||||
|
||||
<resultMap type="WorkOrder" id="WorkOrderResult">
|
||||
<resultMap type="com.zhyc.module.work.domain.WorkOrder" id="WorkOrderResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="planId" column="plan_id" />
|
||||
|
||||
Reference in New Issue
Block a user