
10 changed files with 107 additions and 23 deletions
@ -1,4 +1,37 @@ |
|||||
<?xml version="1.0" encoding="UTF-8" ?> |
<?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"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.yxt.anrui.flowable.biz.flowcc.FlowCcMapper"> |
<mapper namespace="com.yxt.anrui.flowable.biz.flowcc.FlowCcMapper"> |
||||
|
<select id="selectByBusinessSid" resultType="com.yxt.anrui.flowable.api.flowcc.FlowCc"> |
||||
|
select * |
||||
|
from flow_cc |
||||
|
where businessSid = #{businessSid} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertFlowCc"> |
||||
|
insert into flow_cc |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
sid, |
||||
|
<if test="businessSid != null"> |
||||
|
businessSid, |
||||
|
</if> |
||||
|
<if test="ccSids != null"> |
||||
|
ccSids, |
||||
|
</if> |
||||
|
<if test="ccNames != null"> |
||||
|
ccNames, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
UUID(), |
||||
|
<if test="businessSid != null"> |
||||
|
#{businessSid}, |
||||
|
</if> |
||||
|
<if test="ccSids != null"> |
||||
|
#{ccSids}, |
||||
|
</if> |
||||
|
<if test="ccNames != null"> |
||||
|
#{ccNames}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
</mapper> |
</mapper> |
Loading…
Reference in new issue