|
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="sortNum" column="sort_num" />
|
|
|
<result property="contacts" column="contacts" />
|
|
|
<result property="contactsPhone" column="contacts_phone" />
|
|
|
+ <result property="commonProblem" column="common_problem" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
@@ -44,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectMatterList" parameterType="NascMatter" resultMap="matterResult">
|
|
|
SELECT nm.id, nm.item_name, nm.dept_id, nm.prefix_question, nm.sort_num, nm.del_flag, nm.create_by, nm.create_time,
|
|
|
- nm.update_by, nm.update_time, nm.contacts, nm.contacts_phone, d.dept_name
|
|
|
+ nm.update_by, nm.update_time, nm.contacts, nm.contacts_phone, nm.common_problem, d.dept_name
|
|
|
FROM nasc_matter nm
|
|
|
LEFT JOIN sys_dept d ON nm.dept_id = d.dept_id
|
|
|
WHERE nm.del_flag != -1
|
|
@@ -70,14 +71,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertMatter" parameterType="NascMatter" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT INTO nasc_matter (item_name, dept_id, prefix_question, contacts, contacts_phone, sort_num, create_by, create_time)
|
|
|
- VALUES (#{itemName}, #{deptId}, #{prefixQuestion}, #{contacts}, #{contactsPhone}, #{sortNum}, #{createBy}, sysdate())
|
|
|
+ INSERT INTO nasc_matter (item_name, dept_id, prefix_question, contacts, contacts_phone, common_problem, sort_num, create_by, create_time)
|
|
|
+ VALUES (#{itemName}, #{deptId}, #{prefixQuestion}, #{contacts}, #{contactsPhone}, #{commonProblem}, #{sortNum}, #{createBy}, sysdate())
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateMatter" parameterType="NascMatter">
|
|
|
UPDATE nasc_matter
|
|
|
SET item_name = #{itemName}, dept_id = #{deptId}, prefix_question = #{prefixQuestion}, sort_num = #{sortNum},
|
|
|
- contacts = #{contacts}, contacts_phone = #{contactsPhone}, update_by = #{updateBy}, update_time = sysdate()
|
|
|
+ contacts = #{contacts}, contacts_phone = #{contactsPhone}, common_problem = #{commonProblem}, update_by = #{updateBy}, update_time = sysdate()
|
|
|
WHERE id = #{id}
|
|
|
</update>
|
|
|
|
|
@@ -91,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
|
|
|
|
<select id="getMatterInfo" parameterType="NascMatter" resultMap="matterResult">
|
|
|
- SELECT nm.id, nm.item_name, nm.dept_id, nm.prefix_question, nm.contacts, nm.contacts_phone, nm.sort_num, nm.del_flag, nm.create_by, nm.create_time, nm.update_by, nm.update_time,
|
|
|
+ SELECT nm.id, nm.item_name, nm.dept_id, nm.prefix_question, nm.contacts, nm.contacts_phone, nm.common_problem, nm.sort_num, nm.del_flag, nm.create_by, nm.create_time, nm.update_by, nm.update_time,
|
|
|
d.dept_name, d.dept_id, d.parent_id,
|
|
|
np.id AS printId, np.matter_id, np.content, np.miss_content, np.deny_content, np.disposable_content, np.print_by, np.print_time
|
|
|
FROM nasc_matter nm
|