|
|
|
@ -59,7 +59,7 @@ |
|
|
|
,isnull(C.can_auth_flag ,'N') as strCanAuthFlag |
|
|
|
,(case B.ApproveResult when 'Y' then '已通过' else '未通过' end) as strApproveResult |
|
|
|
,B.EnterDate as enterDate ,brl.role_desc |
|
|
|
,D.FamilyName as familyName |
|
|
|
,D.FamilyName as familyName,A.lifespan , A.toolInstanceId tool_instance_id |
|
|
|
from PRDetail A |
|
|
|
left join PRHeader B on A.RequisitionNo = B.RequisitionNo and A.Site = B.Site |
|
|
|
left join business_role_list brl on brl.role_item_no = B.OrderType |
|
|
|
@ -206,7 +206,9 @@ |
|
|
|
<if test="outworkorderflag!=null">OutWorkOrderFlag,</if> |
|
|
|
<if test="internalleadtime!=null">InternalLeadTime,</if> |
|
|
|
<if test="lastupdateby!=null">LastUpdateBy,</if> |
|
|
|
<if test="prtopotemp!=null">PRTOPOTemp</if> |
|
|
|
<if test="prtopotemp!=null">PRTOPOTemp,</if> |
|
|
|
<if test="lifespan!=null">lifespan,</if> |
|
|
|
<if test="toolInstanceId!=null">toolInstanceId</if> |
|
|
|
</trim> |
|
|
|
VALUES |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
@ -240,7 +242,9 @@ |
|
|
|
<if test="outworkorderflag!=null">#{outworkorderflag,jdbcType=CHAR},</if> |
|
|
|
<if test="internalleadtime!=null">#{internalleadtime,jdbcType=FLOAT},</if> |
|
|
|
<if test="lastupdateby!=null">#{lastupdateby,jdbcType=VARCHAR},</if> |
|
|
|
<if test="prtopotemp!=null">#{prtopotemp,jdbcType=VARCHAR}</if> |
|
|
|
<if test="prtopotemp!=null">#{prtopotemp,jdbcType=VARCHAR},</if> |
|
|
|
<if test="lifespan!=null">#{lifespan},</if> |
|
|
|
<if test="toolInstanceId!=null">#{toolInstanceId}</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<update id="updatePRDetail"> |
|
|
|
|