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