ruqinhu 5 éve
szülő
commit
35d7b74694

+ 4 - 0
src/main/java/com/ygj/yuemum/service/customer/CustomerInfoFollowService.java

@@ -9,6 +9,7 @@ import com.ygj.yuemum.domain.customer.CustomerInfoServiceLog;
 import com.ygj.yuemum.domain.customer.dto.CustomerInfoFollowCyDto;
 import com.ygj.yuemum.domain.customer.dto.CustomerInfoFollowDto;
 import com.ygj.yuemum.service.admin.JlAdminUserService;
+import org.apache.commons.lang.StringUtils;
 import org.apache.shiro.SecurityUtils;
 import org.springframework.stereotype.Service;
 
@@ -34,6 +35,9 @@ public class CustomerInfoFollowService {
 	JlAdminUserService jladminuserService;
 
 	public int insert(CustomerInfoFollow customerInfoFollow) {
+		if (StringUtils.isEmpty(customerInfoFollow.getPhotos())) {
+			customerInfoFollow.setPhotos("");
+		}
 		int sl_no = customerInfoFollowMapper.insert(customerInfoFollow);
 		if (sl_no != 0) {
 			this.insertServiceLog(customerInfoFollow.getId(), "新增", customerInfoFollow);