image test
This commit is contained in:
@@ -37,7 +37,9 @@ public class CustomerPictureService extends AbstractService {
|
||||
|
||||
public boolean addCustomerPicture(CustomerPictureValue customerPictureValue) {
|
||||
Optional<Customer> customerOpt = queryService.callNamedQuerySingleResult(Customer.FIND_BY_NUMBER, new Param(Customer.PARAM_NUMBER, customerPictureValue.customerNumber()));
|
||||
Customer customer = customerOpt.orElseGet(() -> new Customer.Builder().customerNumber(customerPictureValue.customerNumber()).name(customerPictureValue.pharmacyName()).build());
|
||||
Customer customer = customerOpt.orElseGet(() -> new Customer.Builder().customerNumber(customerPictureValue.customerNumber()).name(customerPictureValue.pharmacyName())
|
||||
.city(customerPictureValue.city()).zip(customerPictureValue.zip())
|
||||
.build());
|
||||
customer = entityManager.merge(customer);
|
||||
|
||||
Picture picture = new Picture.Builder().customer(customer).username(customerPictureValue.username())
|
||||
|
||||
@@ -227,7 +227,8 @@ class _CustomerWidgetState extends State<CustomerWidget> {
|
||||
flex: 3,
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text(pictureDto.comment ?? "", style: dataStyle),
|
||||
// FIXME: child: Text(pictureDto.comment ?? "", style: dataStyle),
|
||||
child: Text(pictureDto.thumbnailSizeUrl, style: dataStyle),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
|
||||
Reference in New Issue
Block a user