|
@@ -28,6 +28,7 @@
|
|
|
<result property="offerImg" column="offer_img"/>
|
|
|
<result property="newType" column="new_type"/>
|
|
|
<result property="schoolNumberId" column="school_number_id"/>
|
|
|
+ <result property="uploadStatus" column="upload_status"/>
|
|
|
<association property="schoolNumber" column="school_number_id"
|
|
|
select="com.jpsoft.campus.modules.base.dao.SchoolNumberDAO.get"></association>
|
|
|
</resultMap>
|
|
@@ -41,7 +42,7 @@
|
|
|
insert into base_application_primary
|
|
|
(id_,create_by,create_time,update_by,update_time,del_flag,type_,
|
|
|
status_,category_id,now_address,person_id,student_id,street_id,community_id,school_id,hit_,offer_id,
|
|
|
- is_send,send_time,offer_code,offer_img,new_type,school_number_id
|
|
|
+ is_send,send_time,offer_code,offer_img,new_type,school_number_id,upload_status
|
|
|
)
|
|
|
values
|
|
|
(
|
|
@@ -68,6 +69,7 @@
|
|
|
,#{offerImg,jdbcType=VARCHAR}
|
|
|
,#{newType,jdbcType=VARCHAR}
|
|
|
,#{schoolNumberId,jdbcType=VARCHAR}
|
|
|
+ ,#{uploadStatus,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -143,6 +145,9 @@
|
|
|
<if test="schoolNumberId!=null">
|
|
|
school_number_id=#{schoolNumberId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="uploadStatus!=null">
|
|
|
+ upload_status=#{uploadStatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
@@ -375,4 +380,50 @@
|
|
|
</foreach>
|
|
|
order by create_time asc
|
|
|
</select>
|
|
|
+ <select id="findOffice" resultType="com.jpsoft.campus.modules.base.entity.EnrolInfo">
|
|
|
+ SELECT
|
|
|
+ '421003' AS areaCode,
|
|
|
+ '荆州经济技术开发区' AS areaName,
|
|
|
+ a.offer_code AS enrolitemID,
|
|
|
+ b.name_ AS studentName,
|
|
|
+ b.residence_address AS registerAddr,
|
|
|
+ b.id_card AS studentIDNumber,
|
|
|
+ d.name_ AS school,
|
|
|
+ IF
|
|
|
+ ( b.sex_ = 2, '女', '男' ) AS sex,
|
|
|
+ b.address_ AS currentAddr,
|
|
|
+ a.type_ AS sourceType,
|
|
|
+ DATE_FORMAT( STR_TO_DATE( SUBSTR( b.id_card, 7, 8 ), '%Y%m%d' ), '%Y-%m-%d' ) AS birthDate,
|
|
|
+ c.id_card AS guardianIDNumber,
|
|
|
+ c.phone_ AS guardianMobile,
|
|
|
+ c.name_ AS guardianName,
|
|
|
+ '未填写' AS guardianEdu,
|
|
|
+ f.name_ AS guardianRelation,
|
|
|
+ '未填写' AS guardianOrganization,
|
|
|
+ 1 AS Enrolitemconfirm,
|
|
|
+ '审核通过' AS EnrolitemOpinion
|
|
|
+ FROM
|
|
|
+ base_application_primary a
|
|
|
+ LEFT JOIN base_student_info b ON a.student_id = b.id_
|
|
|
+ LEFT JOIN base_person_info c ON a.person_id = c.id_
|
|
|
+ LEFT JOIN base_school_info d ON a.offer_id = d.id_
|
|
|
+ LEFT JOIN base_person_student e ON c.id_ = e.person_id
|
|
|
+ AND b.id_ = e.student_id
|
|
|
+ left join sys_data_dictionary f on e.relationship_ = f.id_
|
|
|
+ WHERE
|
|
|
+ a.del_flag = 0
|
|
|
+ AND b.del_flag = 0
|
|
|
+ AND c.del_flag = 0
|
|
|
+ AND e.del_flag = 0
|
|
|
+ and a.status_ = '90'
|
|
|
+ AND (a.upload_status is null or a.upload_status = '')
|
|
|
+ limit 100
|
|
|
+ </select>
|
|
|
+ <select id="findByOfficeCode" resultMap="ApplicationPrimaryMap">
|
|
|
+ select * from base_application_primary
|
|
|
+ where del_flag=0
|
|
|
+ and status_ = '90'
|
|
|
+ and offer_code = #{officeCode}
|
|
|
+ limit 1
|
|
|
+ </select>
|
|
|
</mapper>
|