10 changed files with 85 additions and 8 deletions
			
			
		| @ -1,6 +1,45 @@ | |||
| <?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.epmet.dao.indexcoll.AgencyScoreDao"> | |||
| <mapper namespace="com.epmet.dao.indexscore.AgencyScoreDao"> | |||
| 
 | |||
|     <!-- 【街道】中间表插入 --> | |||
|     <insert id="insertStreetRecord"> | |||
|         INSERT INTO fact_index_agency_score (ID, CUSTOMER_ID, AGENCY_ID, PARENT_AGENCY_ID, YEAR_ID, QUARTER_ID, MONTH_ID, DATA_TYPE, IS_TOTAL, SCORE, INDEX_CODE, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME ) | |||
|         VALUES | |||
|         <foreach collection="lists" item="item" separator=","> | |||
|         ( | |||
|             REPLACE ( UUID(), '-', '' ), | |||
|             #{item.customerId}, | |||
|             #{item.agencyId}, | |||
|             #{item.parentAgencyId}, | |||
|             #{item.yearId}, | |||
|             #{item.quarterId}, | |||
|             #{item.monthId}, | |||
|             #{item.dataType}, | |||
|             #{item.isTotal}, | |||
|             #{item.score}, | |||
|             #{item.indexCode}, | |||
|             #{item.delFlag}, | |||
|             #{item.revision}, | |||
|             #{item.createdBy}, | |||
|             NOW(), | |||
|             #{item.updatedBy}, | |||
|             NOW() | |||
|         ) | |||
|         </foreach> | |||
|     </insert> | |||
| 
 | |||
|     <!-- 删除旧记录 --> | |||
|     <delete id="deleteOldRecord"> | |||
|         DELETE | |||
|         FROM | |||
|             fact_index_agency_score | |||
|         WHERE | |||
|             del_flag = '0' | |||
|           AND customer_id = #{customerId} | |||
|           AND month_id = #{monthId} | |||
|           AND index_code = #{indexCode} | |||
|           AND data_type = #{dateType} | |||
|     </delete> | |||
| </mapper> | |||
| @ -1,6 +1,6 @@ | |||
| <?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.epmet.dao.indexcoll.DeptScoreDao"> | |||
| <mapper namespace="com.epmet.dao.indexscore.DeptScoreDao"> | |||
| 
 | |||
| </mapper> | |||
					Loading…
					
					
				
		Reference in new issue