fix(employee-hosts): 补充保存时缺失的countryEng字段赋值
This commit is contained in:
@@ -132,6 +132,7 @@ public class EmployeeHostsServiceImpl implements EmployeeHostsService {
|
|||||||
newHostsDOArrayList.add(newHostsDO);
|
newHostsDOArrayList.add(newHostsDO);
|
||||||
EmployeeHostsDO employeeHostsDO = BeanUtils.toBean(employeeHostsSaveReqVO, EmployeeHostsDO.class);
|
EmployeeHostsDO employeeHostsDO = BeanUtils.toBean(employeeHostsSaveReqVO, EmployeeHostsDO.class);
|
||||||
employeeHostsDO.setOperationStatus(0);
|
employeeHostsDO.setOperationStatus(0);
|
||||||
|
employeeHostsDO.setCountryEng(employeeHostsSaveReqVO.getCountryEng());
|
||||||
employeeHostsDOS.add(employeeHostsDO);
|
employeeHostsDOS.add(employeeHostsDO);
|
||||||
}
|
}
|
||||||
Long tenantId = TenantContextHolder.getTenantId();
|
Long tenantId = TenantContextHolder.getTenantId();
|
||||||
|
|||||||
@@ -97,12 +97,12 @@
|
|||||||
INSERT IGNORE INTO server_employee_hosts
|
INSERT IGNORE INTO server_employee_hosts
|
||||||
(hosts_id, user_id, hosts_level, hosts_coins, Invitation_type,
|
(hosts_id, user_id, hosts_level, hosts_coins, Invitation_type,
|
||||||
online_fans, fans, fllowernum, yesterday_coins, country,
|
online_fans, fans, fllowernum, yesterday_coins, country,
|
||||||
operation_status, hosts_kind)
|
operation_status, hosts_kind,country_eng)
|
||||||
VALUES
|
VALUES
|
||||||
<foreach collection="list" item="item" separator=",">
|
<foreach collection="list" item="item" separator=",">
|
||||||
(#{item.hostsId}, #{item.userId}, #{item.hostsLevel}, #{item.hostsCoins}, #{item.invitationType},
|
(#{item.hostsId}, #{item.userId}, #{item.hostsLevel}, #{item.hostsCoins}, #{item.invitationType},
|
||||||
#{item.onlineFans}, #{item.fans}, #{item.fllowernum}, #{item.yesterdayCoins}, #{item.country},
|
#{item.onlineFans}, #{item.fans}, #{item.fllowernum}, #{item.yesterdayCoins}, #{item.country},
|
||||||
#{item.operationStatus}, #{item.hostsKind})
|
#{item.operationStatus}, #{item.hostsKind}, #{item.countryEng,jdbcType=VARCHAR})
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user