You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
2.0 KiB
37 lines
2.0 KiB
<?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.pjb.springbootjjwt.mapper.MessageEntryMapper">
|
|
<resultMap id="BaseResultMap" type="com.pjb.springbootjjwt.entity.MessageEntry" >
|
|
<result column="itempuid" property="itemPuid" jdbcType="VARCHAR" />
|
|
<result column="datasetpuid" property="datasetPuid" jdbcType="VARCHAR" />
|
|
<result column="pdfpuid" property="pdfPuid" jdbcType="VARCHAR" />
|
|
<result column="stage" property="stage" jdbcType="VARCHAR" />
|
|
<result column="signinfo" property="signinfos" jdbcType="VARCHAR" />
|
|
<result column="taskpuid" property="taskpuid" jdbcType="VARCHAR" />
|
|
<result column="tcrelation" property="tcrelation" jdbcType="VARCHAR" />
|
|
<result column="tcstatus" property="tcstatus" jdbcType="VARCHAR" />
|
|
</resultMap>
|
|
<select id="selectByDepartmentId" resultMap="BaseResultMap">
|
|
select itempuid,datasetpuid,pdfpuid,stage,signinfo,taskpuid,tcrelation,tcstatus
|
|
from connor_pdfmessage
|
|
where departmentid = #{deparmentId} and stage != '转换PDF完成'
|
|
</select>
|
|
<select id="findCount" parameterType="com.pjb.springbootjjwt.entity.MessageEntry" resultType="java.lang.Integer">
|
|
select count(puid) from PIMANRELATION where rprimary_objectu=#{itemPuid} and rsecondary_objectu=#{pdfPuid}
|
|
</select>
|
|
<update id="updatePDFPuid" parameterType="com.pjb.springbootjjwt.entity.MessageEntry">
|
|
update connor_pdfmessage
|
|
<set>
|
|
pdfpuid=#{pdfPuid},stage=#{stage}
|
|
</set>
|
|
where itempuid=#{itemPuid} and datasetpuid=#{datasetPuid}
|
|
</update>
|
|
|
|
<update id="updateMessage" parameterType="com.pjb.springbootjjwt.entity.MessageEntry">
|
|
update connor_pdfmessage
|
|
<set>
|
|
stage=#{stage}
|
|
</set>
|
|
where itempuid=#{itemPuid} and datasetpuid=#{datasetPuid}
|
|
</update>
|
|
</mapper> |